Hi, Anil
Yes, it won’t success if you try to use the custom zoom levels or other methods to restrict the zoom levels of Google or Virtual Earth layer, because these layers will already have established zoom levels. But you can change that depending on your requirements. Please refer to the codes below, and it will set the zoom levels from ZoomLevel14 to ZoomLevel16 (Start from 0) for a Google overlay named as 'Google Map'.
<script type="text/javascript">
var OnOverlaysDrawing = function (layers) {
for (var i = 0, l = layers.length; i < l; i++) {
var layer = layers;
if (layer.id === "Google Map") {
layer.MIN_ZOOM_LEVEL = 15;
layer.MAX_ZOOM_LEVEL = 17;
}
}
}
</script>
Thanks,
Khalil