I'm using OpenLayers - 2.11,GeoServer 2.13, ExtJS 3.4, and Java for developing GIS based web applications. Please guide me to check if all my GeoServer map layers/tiles Loaded in the screen or not. While dragging map is taking time to load next tiles. So that time i want to mask all the map body and unmask after loading all the map tiles.
-
Are you debugging using Firebug? The Net tab and the Script Tab are most used for debugging these kinds of apps.– Devdatta TengsheCommented Oct 11, 2013 at 7:17
-
Dear Devdatta Tengshe,thank you for your response. i'm using Firebug here.But, how we can find out that through coding?– Ramesh T RCommented Oct 11, 2013 at 7:19
Add a comment
|
2 Answers
You can listen to the Layer's loadend
event like this:
layer.events.register("loadend", layer, function (e) {
//<<---Do your process here
});
-
Dear Devdatta Tengshe..thank you.. i'm using different layer groups/layers in my map.Is there any method to check for all the layers? or All map area is loaded or not? Commented Oct 11, 2013 at 9:05
-
1@RamRamesh: There is no event that fires when all layers are loaded. You need to listen to individual layer load events and then use somw custom logic to figure out if all layers are loaded. Commented Oct 11, 2013 at 9:12
-
openlayers.org/dev/examples/layerLoadMonitoring.html example.. Commented Oct 11, 2013 at 10:29
openlayers.org/dev/examples/layerLoadMonitoring.html Example for Openlayers map layer events..
-
-
opening here..just click on that blue link. and check the source code Commented Oct 11, 2013 at 15:14