IMapGetMap Method (Boolean, MapProgress, Boolean) | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Generate a map using current Center, Size and Zoom.
Namespace:
Telogis.GeoBase
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax Image GetMap(
bool isAsync,
MapProgress progressDelegate,
out bool done
)
Function GetMap (
isAsync As Boolean,
progressDelegate As MapProgress,
<OutAttribute> ByRef done As Boolean
) As Image
Parameters
- isAsync
- Type: SystemBoolean
If true, fetch and draw the map asynchronously. - progressDelegate
- Type: Telogis.GeoBaseMapProgress
If isAsync is true, this parameter specifies a delegate to be called
when more of the map is available for rendering. - done
- Type: SystemBoolean
Set to true if the map was rendered completely, false otherwise.
Return Value
Type:
ImageA System.Drawing.Image representation of the current map.
Remarks
If isAsync is true, and parts of the map cannot be drawn immediately (for example,
some of the required tiles are not present in the cache), the map is
still returned immediately, with those parts left blank, or marked with 'loading' as
appropriate. In contrast, GetMap() with isAsync false will not return until it's drawn the
whole map, even if that requires waiting for tiles.
If isAsync is true, and the map can be rendered immediately anyway, done will be true on return,
and the progressDelegate will not be called. Otherwise, done will be false, and progressDelegate
will be called every time more of the map is available, until either it is completed (and the
progressDelegate has been called with isComplete set to true) or CancelAsync() has been called.
See Also