[OpenLayers-Users] howto regist. featuremodified instead onModification ?

Eric Lemoine eric.c2c at gmail.com
Mon Dec 15 06:07:57 EST 2008


On Fri, Dec 12, 2008 at 8:19 PM, Alexandre Dube <adube at mapgears.com> 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



More information about the Users mailing list