I will send the map to the global mapper email address.
GetSDKVersion reports 131
My code breaks the call into two pieces. We previously had issue with drawing the entire layer in one call. If i comment out the following code, everything loads quickly:
Code:
//Draw the top half of the image
half_bounds = bounds;
half_bounds.mMinY += ((half_bounds.mMaxY - half_bounds.mMinY) / 2.0);
err = GM_DrawLayerListToMemory( phMapLst, // List of layers to draw or NULL for all (&hLayer) / phMapLst
1, // Number of layers in list (0 for all) / nMapLstNum
m_dwFlags, // GM_DrawFlags_t32 Flags controlling how the draw is performed
&half_bounds, // World bounds to draw or NULL for all
aColorFormat, // GM_ColorFormat_t32 Color format
nWidth, // Width in pixels to draw
nHeight / 2, // Height in pixels to draw
aTxtr.pBits, // Buffer to hold output color data
aTxtr.Pitch // Width of a single row in the array in bytes
);
if (err == 0)
{
//Draw bottom half of the image
half_bounds = bounds;
half_bounds.mMaxY -= ((half_bounds.mMaxY - half_bounds.mMinY) / 2.0);
err = GM_DrawLayerListToMemory( phMapLst, // List of layers to draw or NULL for all (&hLayer) / phMapLst
1, // Number of layers in list (0 for all) / nMapLstNum
m_dwFlags, // GM_DrawFlags_t32 Flags controlling how the draw is performed
&half_bounds, // World bounds to draw or NULL for all
aColorFormat, // GM_ColorFormat_t32 Color format
nWidth, // Width in pixels to draw
nHeight / 2, // Height in pixels to draw
((char*)aTxtr.pBits) + (((nHeight/2)) * aTxtr.Pitch), // Buffer to hold output color data
aTxtr.Pitch // Width of a single row in the array in bytes
);
}