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

有帮助吗?

解决方案

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

Very simple example here

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top