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.
Constructors
Constructs a new GoogleMap control.
Properties
String: Returns or sets the Google Maps API key.
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.
String: Overridden to create our initialization script.
String: Gets or sets the Google Maps libraries to load. See: libraries.
Object: Returns or sets the specified MapOptions: reference#MapOptions
List<Package>: Overridden to return our list of script resources.
String: The Google Maps version to load.
See: versions.
Methods
Adds a new marker to the map.
Parameter | Type | Description |
---|---|---|
markerId | The unique ID that identifies the marker. | |
lat | The latitude of the marker. | |
lng | The longitude of the marker. | |
options | An optional dynamic object that specifies the marker options: reference#MarkerOptions. | |
center | True to center the map after setting the marker. |
Adds a new marker to the map.
Parameter | Type | Description |
---|---|---|
markerId | The unique ID that identifies the marker. | |
location | An instance of LatLng than identifies the location of the marker. | |
options | An optional dynamic object that specifies the marker options: reference#MarkerOptions. | |
center | True to center the map after setting the marker. |
Adds a new marker to the map.
Parameter | Type | Description |
---|---|---|
markerId | The unique ID that identifies the marker. | |
address | The address - to be geocoded - of the marker. | |
options | An optional dynamic object that specifies the marker options: reference#MarkerOptions. | |
center | True to center the map after setting the marker. |
Uses GoogleMaps DirectionService to route and display a path between the origin and destination. See directions.
Parameter | Type | Description |
---|---|---|
origin | The latitude and longitude of the origin. | |
destination | The latitude and longitude of the destination. | |
travelMode | The type of routing requested. |
Uses GoogleMaps DirectionService to route and display a path between the origin and destination. See directions.
Parameter | Type | Description |
---|---|---|
origin | The name of the origin. | |
destination | The name of the destination. | |
travelMode | The type of routing requested. |
Centers the map at the specified location.
Parameter | Type | Description |
---|---|---|
lat | The latitude of the center of the map. | |
lng | The longitude of the center of the map. |
Centers the map at the specified location.
Centers the map at the specified address.
Parameter | Type | Description |
---|---|---|
address | The address - to be geocoded - of the new center of the map. |
Removes all the markers from the map.
Clears any routes, if they exist.
Closes the google.maps.InfoWindow related to the specified marker.
Parameter | Type | Description |
---|---|---|
markerId | The marker unique ID. |
Centers the map around a set of coordinates.
Parameter | Type | Description |
---|---|---|
coordinates |
Retrieves geocode information.
Parameter | Type | Description |
---|---|---|
callback | The callback method. | |
address | The address. |
Retrieves geocode information.
Parameter | Type | Description |
---|---|---|
callback | The callback method. | |
location | The location (latitude/longitude)/. |
Retrieves geocode information.
Parameter | Type | Description |
---|---|---|
callback | The callback method. | |
lat | The latitude. | |
lng | The longitude. |
Asynchronously retrieves geocode information.
Parameter | Type | Description |
---|---|---|
address | The address. |
Returns: Task<GeocoderResult[]>.
Asynchronously retrieves geocode information.
Parameter | Type | Description |
---|---|---|
location | The location (latitude/longitude)/. |
Returns: Task<GeocoderResult[]>.
Asynchronously retrieves geocode information.
Returns: Task<GeocoderResult[]>.
Removes the marker.
Parameter | Type | Description |
---|---|---|
markerId | The unique ID of the marker to remove. |
Shows an instance of the google.maps.InfoWindow class in relation to the marker.
Parameter | Type | Description |
---|---|---|
markerId | The marker unique ID. | |
html | HTML content to display in the info window. |
Shows an instance of the google.maps.InfoWindow class in relation to the marker.
Parameter | Type | Description |
---|---|---|
markerId | The marker unique ID. | |
options | Options for the creation of the InfoWindow. See infowindows. |
Events
MapMouseEventHandler Fired when the user clicks on the map or a marker.
MapMouseEventHandler Fired when the user double clicks on the map or a marker.
EventHandler Fired when the user drags the map.
EventHandler Fired when the user starts dragging the map.
MapPropertyChangedEventHandler Fired when the user changes the map by zooming, tilting, or selecting a different map type.
MarkerDragEventHandler Fired when the user drags a marker.
MarkerDragEventHandler Fired when the user begins dragging a marker.
Last updated