Trigger feature related events with feature information and layer related events with layer information. Also adding events.on and events.un convenience methods. r=crschmidt (closes #1343)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6149 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -115,9 +115,12 @@ OpenLayers.Control.Permalink = OpenLayers.Class(OpenLayers.Control, {
|
||||
this.element.href="";
|
||||
this.div.appendChild(this.element);
|
||||
}
|
||||
this.map.events.register('moveend', this, this.updateLink);
|
||||
this.map.events.register('changelayer', this, this.updateLink);
|
||||
this.map.events.register('changebaselayer', this, this.updateLink);
|
||||
this.map.events.on({
|
||||
'moveend': this.updateLink,
|
||||
'changelayer': this.updateLink,
|
||||
'changebaselayer': this.updateLink,
|
||||
scope: this
|
||||
});
|
||||
return this.div;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user