Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hello all

i load marker location on google map api using javascript from database table ,
how can i refresh location without refresh all page ?
any idea pleas

What I have tried:

..............................................................................................
Posted
Updated 7-May-19 5:09am

1 solution

Without seeing any of your code I cannot provide new code; I can only tell you how I would do it.

1. Have a global array defined for the Map Markers collection.
2. Have a LoadMarkers function to load that collection and display them on the map
3. Have a ClearMarkers function to remove the markers from the map and collection
4. Have a Document.Ready/OnLoad call to LoadMarkers()
5. Define a SetInternal to call ClearMarkers() and then LoadMarkers()
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900