GoogleMap
Wisej.Web.Ext.GoogleMaps.GoogleMap
Namespace: Wisej.Web.Ext.GoogleMaps
Assembly: Wisej.Web.Ext.GoogleMaps (3.2.0.0)
Represent an instance of the Google Maps widget.
public class GoogleMap : WidgetPublic Class GoogleMap
Inherits WidgetConstructors
GoogleMap()
Constructs a new GoogleMap control.
Properties
ApiKey
String: Returns or sets the Google Maps API key.
GoogleMapsURL
String: Returns or sets the default location of the Google Maps library. The default is //maps.googleapis.com/maps/api/js
You can assign this value directly or set it under the application keys using the key name "GoogleMaps.URL". It cannot be changed or assigned after the component has been loaded the first time.
InitScript
String: Overridden to create our initialization script.
Libraries
String: Gets or sets the Google Maps libraries to load. See: libraries.
Options
Object: Returns or sets the specified MapOptions: reference#MapOptions
Packages
List<Package>: Overridden to return our list of script resources.
Version
String: The Google Maps version to load.
See: versions.
Methods
AddMarker(markerId, lat, lng, options, center)
Adds a new marker to the map.
AddMarker(markerId, location, options, center)
Adds a new marker to the map.
AddMarker(markerId, address, options, center)
Adds a new marker to the map.
AddRoute(origin, destination, travelMode)
Uses GoogleMaps DirectionService to route and display a path between the origin and destination. See directions.
AddRoute(origin, destination, travelMode)
Uses GoogleMaps DirectionService to route and display a path between the origin and destination. See directions.
CenterMap(lat, lng)
Centers the map at the specified location.
CenterMap(location)
Centers the map at the specified location.
CenterMap(address)
Centers the map at the specified address.
ClearMarkers()
Removes all the markers from the map.
ClearRoutes()
Clears any routes, if they exist.
CloseInfoWindow(markerId)
Closes the google.maps.InfoWindow related to the specified marker.
FitBounds(coordinates)
Centers the map around a set of coordinates.
GetGeocode(callback, address)
Retrieves geocode information.
GetGeocode(callback, location)
Retrieves geocode information.
GetGeocode(callback, lat, lng)
Retrieves geocode information.
GetGeocodeAsync(address)
Asynchronously retrieves geocode information.
Returns: Task<GeocoderResult[]>.
GetGeocodeAsync(location)
Asynchronously retrieves geocode information.
Returns: Task<GeocoderResult[]>.
GetGeocodeAsync(lat, lng)
Asynchronously retrieves geocode information.
Returns: Task<GeocoderResult[]>.
RemoveMarker(markerId)
Removes the marker.
ShowInfoWindow(markerId, html)
Shows an instance of the google.maps.InfoWindow class in relation to the marker.
ShowInfoWindow(markerId, options)
Shows an instance of the google.maps.InfoWindow class in relation to the marker.
Events
MapClick
MapMouseEventHandler Fired when the user clicks on the map or a marker.
MapDoubleClick
MapMouseEventHandler Fired when the user double clicks on the map or a marker.
MapDragEnd
EventHandler Fired when the user drags the map.
MapDragStart
EventHandler Fired when the user starts dragging the map.
MapPropertyChanged
MapPropertyChangedEventHandler Fired when the user changes the map by zooming, tilting, or selecting a different map type.
MarkerDragEnd
MarkerDragEventHandler Fired when the user drags a marker.
MarkerDragStart
MarkerDragEventHandler Fired when the user begins dragging a marker.
Last updated
Was this helpful?