Answer the question
In order to leave comments, you need to log in
How to update/remove markers on the map that are set by ajax?
The crux of the matter is this.
There is a map. The coordinates of objects are taken from the database and placed with marks on the map, and all this without updating, because it was done on ajax.
Now it would be necessary to fasten the following functionality: when changing the coordinates of objects in the database, it is necessary to change their marks on the map. I made a timer and ajax that calls the php script, which in turn returns a function call with coordinates taken from the database
ShowObjectLocationAndState(" . $data['CoordLatitude'] . ", " . $data['CoordLongitude'].",\"" . $data['Description'] . "\", \"OK\")
Answer the question
In order to leave comments, you need to log in
You're right - it doesn't make sense to move. Recreate the JS object and add labels to it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question