Only render if sources are ready

This commit is contained in:
Tim Schaub
2015-05-08 13:09:01 -06:00
parent d17d470d48
commit 23e2fcefef
2 changed files with 27 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ function color(pixels) {
pixel[0] = 0;
pixel[1] = 255;
pixel[2] = 0;
pixel[3] = 255;
pixel[3] = 128;
} else {
pixel[3] = 0;
}
@@ -70,9 +70,10 @@ var map = new ol.Map({
],
target: 'map',
view: new ol.View({
center: [-9651695.964309687, 4937351.719788862],
center: [-9651695, 4937351],
zoom: 13,
minZoom: 12
minZoom: 12,
maxZoom: 19
})
});