Hi,
I am trying to set Layer Extent to the Map by Client Side, but it’s not work out.
Code:
function zoomToRoute(overlayName) {
if (wfMap != undefined) {
var overlay = olMap.getLayer(overlayName);
if (overlay != null)
wfMap.ZoomToExtent(overlay.getExtent());
}
I think problem will be Overlay Extent, can you please check and give me code for setting Layer Extent to the Map.
Thanks,
Riyaz