Cleanup and example updates

This commit is contained in:
Andreas Hocevar
2015-06-18 09:49:03 +02:00
parent 31cfa0d952
commit e6f5c2a008
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ var map = new ol.Map({
tileUrlFunction: function(tileCoord) {
return urlTemplate.replace('{z}', (tileCoord[0] - 1).toString())
.replace('{x}', tileCoord[1].toString())
.replace('{y}', tileCoord[2].toString());
.replace('{y}', (-tileCoord[2] - 1).toString());
},
wrapX: true
})