Thanks Eric and Pierre, I'll try that.
Alexandre Eric Lemoine wrote: > On Fri, Dec 12, 2008 at 8:19 PM, Alexandre Dube <[email protected]> wrote: > >> Well, I don't 100% understand. >> > > An example is worth a lengthy explanation: > > var foobar = {"foo": "bar"}; > layer.events.on({ > featuremodified: function(o) { > // "this" references the foobar object > // created above > console.log(this); > }, > scope: foobar > }); > > Hope this helps, > > -- > Eric > -- Alexandre Dubé Mapgears www.mapgears.com _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
