MobileForms Toolkit Documentation

GeoMap.DownloadMapImage Method 

Initializes the synchronous map image request.

public Bitmap DownloadMapImage();

Return Value

A Bitmap object representing the resulting map image.

Remarks

A call to this method blocks the calling thread until the request completes. It either returns a valid Bitmap object or throws a ServiceRequestException describing an error that occurred during the request processing.

Calling this method from the main thread is not recommended. Mind that the request makes a HTTP connection to the location service provider and downloads the result from Internet. Consider using the asynchronous method DownloadMapAsync to do this job on a background thread.

Exceptions

Exception TypeCondition
ServiceRequestExceptionMap image request failed
NotSupportedExceptionA service provider specified by ServiceProvider property does not support this kind of service.

See Also

GeoMap Class | Resco.Location.Services.Map Namespace