GetOnlineLayerZoomScale

globalmapper.GetOnlineLayerZoomScale(GM_LayerHandle_t32 aLayer, GM_Rectangle_t aWorldBounds, GM_PixelRect_t aPixelRect, bool aForExport, str aExtraOpts, uint32 aReserved=0) 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 (bool) – Get zoom scale for an export (TRUE) or draw (FALSE)

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

  • aReserved (uint32) – Reserved for future use; defaults to 0

Returns:

Error Code

Return type:

GM_Error_t32

Returns:

Zoom scale that will be used

Return type:

uint32