Click or drag to resize

GM_GetOnlineLayerZoomScale

Determine the zoom scale that will be used to draw/export from a provided tiled online layer for a given bounds. Very few people will need this function. It would really only be used if you were going to pre-fetch some tiles for a local tiled "online" source so you wanted to know the zoom scale prior to draw/export.

Syntax
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_GetOnlineLayerZoomScale
( 
GM_LayerHandle_t32      aLayer,         // IN: Tiled online layer to query
const GM_Rectangle_t*   aWorldBounds,   // IN: World bounds to convert from or NULL for last drawn
const GM_PixelRect_t*   aPixelRect,     // IN: Pixel bounds to convert from or NULL for last drawn 
boolean                 aForExport,     // IN: Get zoom scale for an export (TRUE) or draw (FALSE)
const char*             aExtraOpts,     // IN: String with extra options, like RES_MULT
uint32*                 aZoomScale,     // OUT: Zoom scale that will be used
void*                   aReserved       // IN: Reserved for future use
);