[OpenLayers-Users] a calculate problem with my UTM layer
zhuke198791
zhuke198791 at gmail.com
Tue Feb 19 15:25:59 PST 2013
hello guys , recently , I plan to transplant my flash map to openlayers , and
my old map is based on UTM . I have read some examples and I create a file
in the layer folder , inherits from the TileCache Object .
like this:
OpenLayers.Layer.Terrafly = OpenLayers.Class(OpenLayers.Layer.TileCache, {
....
},
because my map has its own source data , so I should rewrite the getURL()
function of the layer, the problem is my source image is 400X400 , so ,what
size should I asign to the tileSize , and how about the serverResolutions ?
I have asign some number to the new layer based on my old map , but When I
drag the map , some repeat tile or wrong order tile will be displayed ,
that means when calculate which tile will be displayed ,some error occurs .
you can visit
http://131.94.129.57:8080/OpenLayers-2.12/myDemos/terrafly.html and you can
easily see the wrong order of the tiles
my layer's source code :
http://131.94.129.57:8080/OpenLayers-2.12/lib/OpenLayers/Layer/Terrafly.js
I just do not know what is the tileSize and resolution should be given to
the layer I create , that could make my map display correctly .
<http://osgeo-org.1560.n6.nabble.com/file/n5035362/worng.jpg>
Thanks for helping me .
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/a-calculate-problem-with-my-UTM-layer-tp5035362.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list