[Seaside] Google Maps center coordinates
dtrussardi at tiscali.it
dtrussardi at tiscali.it
Mon Mar 1 17:04:46 UTC 2010
Hi,
i work with Google Maps into seaside based on http://seaside.gemstone.com/ss/GoogleMaps .
I rendering the map and all work fine.
The user can move the map with no problem.
I'm interested, when user end the moving of the map, to sender the new center coordinates of the map, to my seaside application.
It's possibly ?
Into documentation i found this script:
googleMap
^GoogleMap new
setCenter: 45.5267 @ -122.8390 zoom: 11;
setUIToDefault;
addScript: 'GEvent.addListener(map, "moveend", function() { var center = map.getCenter(); alert(center.toString());});';
yourself.
It's work fine when the user end the move, it alert the new center coordinates.
Now how i can send this data to my application ?
Thanks for any considerations !!!
Dario
More information about the seaside
mailing list