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
Post a Comment