TGetResolutionByLevel

This function takes the zoom level as the input and returns the resolution according to the Zoom Level Resolution table.
public TGetResolutionByLevel(level):Number

Parameters

  • level : Number - the zoom level which you want to use to get a resolution.
  • Returns

  • Number - Returns the corresponding resolution to the zoom lvel given.
  • Example

    The following example shows how to get resolution by level.
    <div id="mapContainer"  style="width: 640px; height: 400px;"></div>
    <script type="text/javascript">
        var level=15;
        var resolution = TGetResolutionByLevel(15);
    </script>
        

    See also

    TGetLevelByResolution() Method