Domanda

I am building a googlemaps web application that has a series of static markers as well as a series of markers representing staff who are "out on the field" I am able to retrieve a staff members lat, long position via ajax.

But using jquery ui map v3 I cannot update the poistion of the marker with a matching staff ID.

How can i change a markers position and then update the map view?

Thank you

È stato utile?

Soluzione

Use the setPosition() method of Marker to change the position of a marker !

Very simple example here

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top