Click in reference map....

Paul james pauljame at GMAIL.COM
Thu Apr 27 15:29:24 EDT 2006


Hello all...

I´m with a problem with a click in my reference map...I´m using zoomScale in
mapscript to do the reference click, like that:

(C#)
mapaObj.zoomScale(__mapScale, __point, mapaObj.width, mapaObj.height,
__OriginalExtent, null);
I calculated the __point like that:

(JS)
y = (map.height * yReferenceClicked) / referenceMap.height;
x = (map.width  * xReferenceClicked) / referenceMap.width;

Ok...When I´m in original scale, It´s work great... But when a start to zoom
in my Map, the reference click starts to show the wrong place, especially
when the click is in the sides of the reference map...

You can see whats happening here :

http://eabserver.osu.edu/eab_mapserverapp/eab_tiger.phtml?PREVIOUS_MODE=1&ohcnty=Y&ohcnty_anno=Y&ohidx=Y&tiger_roads=Y&tiger_rdanno=Y&MapSize=800%2C600&minx=72979.237684&miny=177658.043136&maxx=81272.604226&maxy=183878.068042&imagewidth=800&imageheight=600&CMD=ZOOM_IN&CMD=ZOOM_IN&KEYMAPXSIZE=156&KEYMAPYSIZE=125&KEYMAP.x=134&KEYMAP.y=9

Try click on the left top side ...

Any ideas? Is zoomScale the best way to simulate a reference click??

TY
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060427/27e8ceb6/attachment.html


More information about the mapserver-users mailing list