Retrieves the image of a map displayed in a Map control. The markers and the itineraries displayed on this map will also be found in the image.
// Retrieve the image displayed in the Map control and assign it to an Image control
MapGetImage(MAP_MyMapControl, CallbackMapGetImage)
INTERNAL PROCEDURE CallbackMapGetImage(MapImage is Image)
IMG_Image = MapImage
END
Syntax
MapGetImage(<Map control> , <WLanguage procedure>)
<Map control>: Control name
Name of the Map control to be used. If this parameter corresponds to an empty string (""), the Map control to which the current event belongs will be used.
<WLanguage procedure>: Procedure name
Name of the WLanguage procedure ("callback") called when the Map control image is available.
This procedure has the following format:
PROCEDURE <Procedure name>(<Image>)
where <Image> is an Image variable containing the map displayed in the control.