Firing an event when the map loads

2 posts / 0 new
Last post
cloudlocater.maps
Firing an event when the map loads

hi,

Just getting started with MapQuest. Does anyone here know how to fire an event once a map is loaded? I am referring to this example on MapQuest website but I have trouble in getting the on load event working. Thanks

CL


MQBrianCoakley
The Leaflet on load event
The Leaflet on load event seems a little wonky to me - but here is how I got it to work.               map = L.map('map', {layers: mapLayer})               .on('load', function(){alert('we just want to get loaded');}) // sorry, just listened to Primal Scream               .setView([ 40.731701, -73.993411 ], 12)