yagoferrer / map-tools

map-tools.js is a Google Maps Feature-rich Javascript wrapper that makes things like: Marker filtering, asynchronous loading, working with TopoJSON or GeoJSON, animation and more. Much simpler with an easy-to-use API.
MIT License
88 stars 11 forks source link

Add event-handling feature to the Map #228

Closed hergert closed 9 years ago

hergert commented 9 years ago

The API should expose the functionality to add an event to the Map instance in the following way:

            var map = new mapTools({
                id: 'mymap',
                lat: 41.3833,
                lng: 2.1833,
                on: {
                    'zoom_changed': function(e){/**/};
                }

map.on('zoom_changed', function(){});