javascript - Dynamically add markers on changed map - Google Maps API -


i have google map markers retail locations are.

it works fine.

if user change map focus drag , drop (change map extract) want add dynamically new markers if in map extract shop.

i have no idea, find such example or else.

first of need load initial batch of markers , listen "bounds_changed" event. when event fires new coordinates , zoom level , load markers accordingly.

you can find example here: https://developers.google.com/maps/documentation/javascript/events

google.maps.event.addlistener(map, 'bounds_changed', function() {     //get new location , zoom parameters     //and print new markers }); 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -