Load vector tiles for current resolution

This commit is contained in:
Tom Payne
2014-03-26 11:48:00 +01:00
parent 96b7700d63
commit f13debbbc9
3 changed files with 15 additions and 56 deletions

View File

@@ -18,8 +18,7 @@ var vectorSource = new ol.source.TileVector({
tileGrid: new ol.tilegrid.XYZ({
maxZoom: 19
}),
url: 'http://www.somebits.com:8001/rivers/{z}/{x}/{y}.json',
z: 11
url: 'http://www.somebits.com:8001/rivers/{z}/{x}/{y}.json'
});
var styleCache = {};