Click or drag to resize

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:  GlobalMapperWrapperNET45 (in GlobalMapperWrapperNET45.dll) Version: 19.1.0.0 (19.1.0.0)
Syntax
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.TypesGM_Layer_t
IN: Tiled online layer to query
aWorldBounds
Type: GlobalMapper.TypesGM_Rectangle_t
(GM_Rectangle_t*) IN: World bounds to convert from or NULL for last drawn
aPixelRect
Type: GlobalMapper.TypesGM_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