From: xavier l. <lho...@gm...> - 2014-12-16 19:49:16
|
Hi I'm trying compute the resolutions when CRS=3857 and TileSize=512 I'm using a Javascript with OL3 to do this. var widthE =ol.extent.getWidth(projectionExtent) ; var nbReso = TileMatrixIds.length; var resolutions = new Array(nbReso); var matrixIds = new Array(nbReso); for (var z = 0; z < nbReso; ++z) { var size = widthE / tileSizeListe[z]; resolutions[z] = size / Math.pow(2, z); } It's working well when my tileSize are equal to 256. >From the generated demo web page ,I obtained those value. But I can't figure out how to compute them. //var resolutions2=[132291.9312505292, 66145.9656252646, 26458.386250105836, 19843.789687579378, 13229.193125052918, 5291.677250021167, 2645.8386250105837, 1984.3789687579376, 1322.9193125052918, 529.1677250021168, 264.5838625010584, 132.2919312505292]; If you have an idea .... |