[OpenLayers-Users] events.register only fires once?

Van Ulden, Joost jvanulde at nrcan.gc.ca
Wed Sep 3 15:24:36 EDT 2008


Hi Skylar,

Have tried something like:

// bind event
OpenLayers.Event.observe(this.map, "changebaselayer", 
  OpenLayers.Function.bindAsEventListener(myFunction())
  ); 

-----Original Message-----
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org]
On Behalf Of slyon
Sent: September 3, 2008 10:04
To: users at openlayers.org
Subject: [OpenLayers-Users] events.register only fires once?


Hi,

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,

Skylar
--
View this message in context:
http://www.nabble.com/events.register-only-fires-once--tp19293525p192935
25.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users



More information about the Users mailing list