[OpenLayers-Users] integer overflow while drawing vectors, help!

BrainDrain paulborodaev at gmail.com
Thu Aug 21 05:47:28 EDT 2008


HI
I use OL with mapserver
my output projection is
"+proj=tmerc +lat_0=48.70975 +lon_0=44.51205 +k=1.000000 +x_0=0 +y_0=0
+ellps=krass +towgs84=23.92,-141.27,-80.9,0,0,0,0 +units=m +no_defs"
this produces map images in real world units (meters)
(reprojection from input local coord. sys "+proj=tmerc +lat_0=0 +lon_0=45
+k=1.000000 +x_0=0 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0,0,0
+units=mm +no_defs"), I need this to combine my local web map with google
map layer in OL. But using this output projection I have integer coords calc
overflow during drawing operations (in some scales/resolutions) in vml.js,
for. ex. here
drawCircle:
node.style.left = (geometry.x /resolution).toFixed() - radius;//becomes
invalid
node.style.top = (geometry.y /resolution).toFixed() - radius;//or here
I can change outp. proj to another, but how could I then correlate my
Mapserver map image to match google layer data for my locale? Could I perfom
on the fly reprojection using just OL routines (in co-operation with
proj4js)? Is It REALLY possible? or some other advices to solve my
problem...
THANK YOU VERY, VERY MUCH
"x_0=-20000 +y_0=5000000" in out. proj. fixes problems but this produces
"wrong" coords...

-- 
View this message in context: http://www.nabble.com/integer-overflow-while-drawing-vectors%2C-help%21-tp19085568p19085568.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list