문제

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