GM_UtilityGetOnlineLayerZoomScale 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)

Syntax
C#
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: GlobalMapperGM_Layer_t
IN: Tiled online layer to query
aWorldBounds
Type: GlobalMapperGM_Rectangle_t
(GM_Rectangle_t*) IN: World bounds to convert from or NULL for last drawn
aPixelRect
Type: GlobalMapperGM_PixelRect_t
(GM_PixelRect_t*) IN: Pixel bounds to convert from or NULL for last drawn
aForExport
Type: SystemBoolean
IN: Get zoom scale for an export (TRUE) or draw (FALSE)
aExtraOpts
Type: SystemString
IN: String with extra options, like RES_MULT
aZoomScale
Type: SystemUInt32
OUT: Zoom scale that will be used
aReserved
Type: SystemObject
IN: (void*) Reserved for future use

Return Value

Type: GM_Error_t32
A GM Error Code
See Also