Constructor
- - -new GMaps(options)
- - - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 152 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Creates a new GMaps instance, including a Google Maps map.
-Parameters:
- - -| Name | - - -Type | - - - - - -Description | -
|---|---|---|
options |
-
-
- - - -object - - - - | - - - - - -
|
-
Members
- - - -controls :array
- - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 242 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Collection of custom controls in the map UI
-Type:
--
-
- - -array - - - -
el :HTMLElement
- - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 222 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Container element
-Type:
--
-
- - -HTMLElement - - - -
layers :array
- - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 254 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Collection of KML/GeoRSS and FusionTable layers
-Type:
--
-
- - -array - - - -
map :google.maps.Map
- - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 323 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Google Maps map instance
-Type:
--
-
- - -google.maps.Map - - - -
markerClusterer :object
- - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 331 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Marker Clusterer instance
-Type:
--
-
- - -object - - - -
markers :array
- - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 266 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Collection of map's markers
-Type:
--
-
- - -array - - - -
overlays :array
- - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 248 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Collection of map's overlays
-Type:
--
-
- - -array - - - -
polygons :array
- - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 284 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Collection of map's polygons
-Type:
--
-
- - -array - - - -
polylines :array
- - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 272 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Collection of map's lines
-Type:
--
-
- - -array - - - -
routes :array
- - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 278 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Collection of map's routes requested by GMaps#getRoutes, GMaps#renderRoute, GMaps#drawRoute, GMaps#travelRoute or GMaps#drawSteppedRoute
-Type:
--
-
- - -array - - - -
singleLayers :object
- - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 260 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Collection of data layers (See GMaps#addLayer)
-Type:
--
-
- - -object - - - -
zoom :number
- - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 292 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Current map's zoom
-Type:
--
-
- - -number - - - -
Methods
- - - - - - -addControl(options) → {HTMLElement}
- - - - - - --
-
-
-
- Source: -
- - gmaps.controls.js, line 67 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Add a custom control to the map UI.
-Parameters:
- - -| Name | - - -Type | - - - - - -Description | -
|---|---|---|
options |
-
-
- - - -object - - - - | - - - - - -The
|
-
Returns:
- - - - --
-
- - Type - -
- - -HTMLElement - - - -
fitLatLngBounds(latLngs)
- - - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 539 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Adjust the map zoom to include all the coordinates in the latLngs array.
Parameters:
- - -| Name | - - -Type | - - - - - -Description | -
|---|---|---|
latLngs |
-
-
- - - -array - - - - | - - - - - -Collection of |
-
fitZoom()
- - - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 520 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Adjust the map zoom to include all the markers added in the map.
-getElement() → {HTMLElement}
- - - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 571 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Return the HTML element container of the map.
-Returns:
- - -the element container.
--
-
- - Type - -
- - -HTMLElement - - - -
hideContextMenu()
- - - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 461 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Hide the current context menu
-refresh()
- - - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 513 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Trigger a resize event, useful if you need to repaint the current map (for changes in the viewport or display / hide actions).
removeControl(control) → {HTMLElement}
- - - - - - --
-
-
-
- Source: -
- - gmaps.controls.js, line 82 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Remove a control from the map. control should be a control returned by addControl().
Parameters:
- - -| Name | - - -Type | - - - - - -Description | -
|---|---|---|
control |
-
-
- - - -HTMLElement - - - - | - - - - - -One of the controls returned by |
-
Returns:
- - -the removed control.
--
-
- - Type - -
- - -HTMLElement - - - -
setCenter(lat, lng, callbackopt)
- - - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 558 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Center the map using the lat and lng coordinates.
Parameters:
- - -| Name | - - -Type | - - -Attributes | - - - - -Description | -
|---|---|---|---|
lat |
-
-
- - - -number - - - - | - - -- - - - - - | - - - - -Latitude of the coordinate. |
-
lng |
-
-
- - - -number - - - - | - - -- - - - - - | - - - - -Longitude of the coordinate. |
-
callback |
-
-
- - - -function - - - - | - - -
-
- <optional> - - - - - - |
-
-
-
-
- Callback that will be executed after the map is centered. |
-
setContextMenu(options)
- - - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 417 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Add a context menu for a map or a marker.
-Parameters:
- - -| Name | - - -Type | - - - - - -Description | -
|---|---|---|
options |
-
-
- - - -object - - - - | - - - - - -The
|
-
zoomIn(magnitudeopt)
- - - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 580 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Increase the map's zoom.
-Parameters:
- - -| Name | - - -Type | - - -Attributes | - - - - -Description | -
|---|---|---|---|
magnitude |
-
-
- - - -number - - - - | - - -
-
- <optional> - - - - - - |
-
-
-
-
- The number of times the map will be zoomed in. |
-
zoomOut(magnitudeopt)
- - - - - - --
-
-
-
- Source: -
- - gmaps.core.js, line 592 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Decrease the map's zoom.
-Parameters:
- - -| Name | - - -Type | - - -Attributes | - - - - -Description | -
|---|---|---|---|
magnitude |
-
-
- - - -number - - - - | - - -
-
- <optional> - - - - - - |
-
-
-
-
- The number of times the map will be zoomed out. |
-