supportsCancelLoading property

bool supportsCancelLoading
inherited

Indicates to flutter_map internals whether to call getImage (when false) or getImageWithCancelLoadingSupport

The appropriate method must be overriden, else an UnimplementedError will be thrown.

getImageWithCancelLoadingSupport is designed to allow for implementations that can cancel HTTP requests or other processing in-flight, when the underlying tile is disposed before it is loaded. This may increase performance, and may decrease unnecessary tile requests. Note that this only applies to the web platform. For more information, and detailed implementation expectations, see documentation on getImageWithCancelLoadingSupport.

getImage does not support cancellation.

Defaults to false. Only needs to be overridden where getImageWithCancelLoadingSupport is in use.

Implementation

bool get supportsCancelLoading => false;