Add a moveend event to layer. By registering to that event (instead of that at

the map level) strategies need to check that the layer is in range and active
before fetching new features. r=ahocevar (closes #1678)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7874 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2008-08-27 06:27:22 +00:00
parent 72bf882b62
commit 8e0876488b
2 changed files with 8 additions and 1 deletions

View File

@@ -1567,6 +1567,9 @@ OpenLayers.Map = OpenLayers.Class({
}
if (inRange && layer.visibility) {
layer.moveTo(bounds, zoomChanged, dragging);
layer.events.triggerEvent("moveend",
{"zoomChanged": zoomChanged}
);
}
}
}