Skip to main content

From coordinates to markers on a map

1 reply [Last post]
alexismp
Offline
Joined: 2005-01-06
Points: 0

Hi,
I have a batch of coordinates I'd like to put up on a map (Yahoo or Google).
Any easy way to have the jMaki map widget consume some json-formated
version of my collection of longitude/latitude? Maybe using a 'service' attribute?
thanks,
-Alexis

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

You could look up the widget and plot the points. The default jMaki glue code does this. Here is a link to the actual source that you will need.

https://ajax.dev.java.net/source/browse/*checkout*/ajax/ws/lib/scripts/g...

See the geocoderListener block:

This code works on both Yahoo and Google Maps. If you know which widget is the map and the type you can actually cut it down a bit.

There is a blog by Jennifer Ball that you can look at for help: See it here:

http://blogs.sun.com/jenniferb/date/20070104