TMap

(TMap.GetResolution Method)

Returns the resolution of the current map view.
GetResolution():Number

Parameters

  • void
  • Returns

  • instance : Number - Returns the resolution of current map view.
  • Example

    The following example shows how to get the resolution level of the current map view.
    <div id="mapContainer"  style="width: 640px; height: 400px;"></div>
    <script type="text/javascript">
        var map0 = new TMap(mapContainer, 25.7590256665386, -80.3738769902151, 15, mapInit, 1, true, "", "hybrid");
        var level=map0.GetResolution()
        
    </script>
        

    See also

  • GetLevel()