Is the GoogleMapWidget component dynamic?

Hi

I have been playing around with GoogleMapWidget 0.9.4

In particular I would like to be able to move markets about on the map.

I created a GoogleMapWidget and added a marker to it.

And then added some code that changed the title of a marker when the user clicked a button, but the title of the marker did not change.

I also moved the position of the marker - with no result.

I also tried adding another marker - again nothing happened.

Am I correct in thinking that the GoogleMapsWidget is essentially a static component that Vaadin cannot interact with?

Richard

Adding new markers should work, but indeed the current version does not support programmatic changes to previously created markers. Adding these features should be pretty easy, though, the component just needs to send the changes to the client which then updates the map. I’ll add these issues to my todo list (sorry, it’s not online at the moment).

If you are in a hurry about these issues, see
this post
.

Pity

I am working on a project that displays weather information for various locations on a Google map.

I am trying to convince my co workers not to use herds of avascript by rather use a tool like Vaadin or ZK. Tried to write a small demo but it would require interactive components to make it useful.

While I am on the subject, any idea how to display a small grid alongside each marker? - An overlay would require knowledge of the absolute position of the marker - not its latitude / longitude