I want to set the bounds of my map after a Vector (KML) Layer is loaded.

kmllayer.events.register('refresh', kmllayer, function(evt) {

In the documentation there if something like the afterAdd function. But it does not work at all.

I am using version 2 of Openlayers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.