Wednesday, 15 September 2010

javascript - Automatic add marker on Google Maps from database -



javascript - Automatic add marker on Google Maps from database -

i've followed this tutorial plot markers database on gmaps page. have 2 type of markers (green: marker status on db equals zero; red: marker status on database equals one) , need update marker icon everytime alter made on db status column. want adapt code add together markers on map everytime got new line on db. question can't refresh entire page, i'm allowed refresh markers.

someone know way this? i'm using mysql, php , javascript on page.

you have utilize ajax this. can load map via ajax, , utilize setinterval() reload map , show changes. in way not reloading page, can reload contents of <div> map's contents.

javascript php mysql google-maps google-maps-api-3

No comments:

Post a Comment