Skip to content Skip to sidebar Skip to footer

Javascript Google Maps Drawing Events

I'm having a problem with the event listeners provided by Google maps API. The thing is, that some events run, some not. I have a setListeners function which sets the listeners aft

Solution 1:

The events set_at, insert_at, remove_at need to be added to the path of the polygon, not the polygon itself.

related questions:

Solution 2:

Try adding the listener with google.maps.event:

google.maps.event.addListener(self.drost, 'set_at', function() {
   console.log('it works!');
});

Post a Comment for "Javascript Google Maps Drawing Events"