GM_Utility .GetOnlineLayerZoomScale Method |
Determine the zoom scale that will be used to draw/export from a provided
tiled online layer for a given bounds.
Namespace:GlobalMapper
Assembly: GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 18.0.0.0 (18.0.0.0)

C#
Copy
public static GM_Error_t32 GetOnlineLayerZoomScale(
GM_Layer_t aLayer,
GM_Rectangle_t aWorldBounds,
GM_PixelRect_t aPixelRect,
bool aForExport,
string aExtraOpts,
out uint aZoomScale,
Object aReserved
)
Parameters
- aLayer
-
Type:
GlobalMapper
.
GM_Layer_t
IN: Tiled online layer to query - aWorldBounds
-
Type:
GlobalMapper
.
GM_Rectangle_t
(GM_Rectangle_t*) IN: World bounds to convert from or NULL for last drawn - aPixelRect
-
Type:
GlobalMapper
.
GM_PixelRect_t
(GM_PixelRect_t*) IN: Pixel bounds to convert from or NULL for last drawn - aForExport
-
Type:
System
.
Boolean
IN: Get zoom scale for an export (TRUE) or draw (FALSE) - aExtraOpts
-
Type:
System
.
String
IN: String with extra options, like RES_MULT - aZoomScale
-
Type:
System
.
UInt32
OUT: Zoom scale that will be used - aReserved
-
Type:
System
.
Object
IN: (void*) Reserved for future use
Return Value
Type: GM_Error_t32A GM Error Code
