globalmapper.GetOnlineLayerZoomScale

globalmapper.GetOnlineLayerZoomScale(GM_LayerHandle_t32 aLayer, GM_Rectangle_t aWorldBounds, GM_PixelRect_t aPixelRect, boolean aForExport, str aExtraOpts, int aReserved) GM_Error_t32, uint32[source]

Determine the zoom scale that will be used to draw/export from a provided tiled online layer for a given bounds.

Parameters
  • aLayer (GM_LayerHandle_t32) – Tiled online layer to query

  • aWorldBounds (GM_Rectangle_t) – World bounds to convert from or None for last drawn

  • aPixelRect (GM_PixelRect_t) – Pixel bounds to convert from or None for last drawn

  • aForExport (boolean) – Get zoom scale for an export (TRUE) or draw (FALSE)

  • aExtraOpts (str) – str with extra options, like RES_MULT

  • aReserved (int) – Reserved for future use; must be 0.

Returns

Error Code

Return type

GM_Error_t32

Returns

Zoom scale that will be used

Return type

uint32