Google.Maps.Event.MapEvents

Encapsulates the set of events related to fetching and loading the map.

Summary

Public attributes

LoadError = new MapLoadErrorEvent()
Fired when part of the map fails to load.
LoadStart = new MapLoadStartEvent()
Fired immediately before a part of the map begins to load after calling MapsService.LoadMap.
Loaded = new MapLoadedEvent()
Fired when all Feature.MapFeature and Terrain objects from calls to MapsService.LoadMap have been loaded.
Progress = new MapLoadProgressEvent()
Fired whenever a part of the map finishes loading.

Public attributes

LoadError

MapLoadErrorEvent LoadError = new MapLoadErrorEvent()

Fired when part of the map fails to load.

You get fine-grained control over retry behavior by modifying the arguments to this event. For more information, see MapLoadErrorArgs.

LoadStart

MapLoadStartEvent LoadStart = new MapLoadStartEvent()

Fired immediately before a part of the map begins to load after calling MapsService.LoadMap.

If you call LoadMap more than once before earlier calls have finished loading (e.g., while quickly panning around the map), then the event is triggered only once.

Be careful when loading or unloading map regions within this callback as this may cause infinite callback loops. To be safe, consider deferring additional loading until after the LoadStart event has completed.

Loaded

MapLoadedEvent Loaded = new MapLoadedEvent()

Fired when all Feature.MapFeature and Terrain objects from calls to MapsService.LoadMap have been loaded.

If you call LoadMap with an area that has already been loaded, then it triggers the event immediately.

If you call LoadMap more than once before earlier calls have finished loading (e.g., while quickly panning around the map), then the event is triggered only once—after everything has loaded.

If there are errors while loading, then MapLoadedArgs.Errors will be non-zero, and some MapFeatures might not be ready. Call LoadMap again to retry.

Be careful when loading or unloading map regions within this callback as this may cause infinite callback loops. To be safe, consider deferring additional loading until after the Loaded event has completed.

Progress

MapLoadProgressEvent Progress = new MapLoadProgressEvent()

Fired whenever a part of the map finishes loading.

This event allows you to track map loading progress. So for example, you could use it to drive a progress bar.