[OpenLayers-Users] events.register only fires once?
eric.c2c at gmail.com
Thu Sep 4 16:44:19 EDT 2008
Hi. If you do map.events.register("changebaselayer", map, yourFunc())
then your function is called and it is its return value that you
actually pass as the third arg of the register call. Instead you
should do map.events.register("changebaselayer", map, yourFunc) to
actually pass register a reference to your function. Hope this helps.
2008/9/3, slyon <skylar at ccri.com>:
> I've set up an events.register("changebaselayer", this.map, myFunction())...
> and when the map first loads the event fires and myFunction is executed.
> However, anytime thereafter that I change base layers the event doesn't
> fire. I can not figure out why; can anyone advise?
> Thank you,
> View this message in context:
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> Users mailing list
> Users at openlayers.org
More information about the Users