Hi,
how to get the current extent and zoom level of the map.
thanks
Get map current extent and zoomlevel
Hi zubair,
Thanks for evaluating our products and welcome to Map Suite discussion forum.
Actually the current extent should be calculated on client side using JavaScript and then post it to server side for use with Map.AjaxCall. Here are some code samples:
<script>
</script>
function Do(){
var currentExtent = Map1.getExtent();
var currentZoom = Map1.getZoom();
Map1.ajaxCallAction(“controller”, “action”, {‘zoom’:currentZoom, ‘extent’:currentExtent}, function(result){
// do something
});
}
Thanks,
Johnny