Skip to main content

Put some information on google map popup

2 replies [Last post]
matabares
Offline
Joined: 2007-07-03

Hi,

I need to put some information on the popup that appear in a map of google map widget. For example i like to put the number of inhabitants assuming that i have this information into a d.b. How i can put this information that i have retrieved from my db?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
carlavmott
Offline
Joined: 2005-02-10

Hi matabares,

We're working on the jmaki 1.1 release and hope to have something out later today. I'll look at this after the release is out.

carla

carlavmott
Offline
Joined: 2005-02-10

You can see the code to do this in the system-glue.js file. We create a div and add information about the location. This code gets called automactically when a message is published to '/jmaki/plotkit*'. The function is jmaki.listeners.geocoderListener. You should be able to modify this code to get the data from the database and add what you want.

hth,
Carla