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:
@@ -1567,6 +1567,9 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
}
|
||||
if (inRange && layer.visibility) {
|
||||
layer.moveTo(bounds, zoomChanged, dragging);
|
||||
layer.events.triggerEvent("moveend",
|
||||
{"zoomChanged": zoomChanged}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user