Hi,
I want to restrict whole map(countries02.shp) with up to some zoom level. No further level will be move.
i mean it should be like ‘Google Map’. In google map, wrap is working but zoom out was restricted to particular zoom.
I tried by setting min and max zoomlevel.
code:
function OnOverlaysDrawing(layers) {
for (var index = 0; index < layers.length; index++) {
var templayer = layers[index];
if (templayer.id == "World Map") {
templayer.MIN_ZOOM_LEVEL = 10;
templayer.MAX_ZOOM_LEVEL = 20;
}
}
}
here i am attaching my sample application.
RestrictedExtent.zip (1.6 KB)
Can you please give me some code to restrict our map(countries02.shp).
Thanks,
Riyaz