Global

Members

(constant) Draw

An instance of the Mapbox Draw plugin. Provides map drawing features.

Source:

(constant) Geocoder

An instance of the Mapbox Geocoder Control plugin. Provides search features.

Source:

(constant) map

The mapboxgl.Map object, contains Mapbox GL functions.

Source:

(constant) mapOrigin :MapOrigin

The origin of the map. Contains the default center of the map and default zoom level.

{
  center: [-76.94514,38.98951],
  zoom: 14.2
}
Type:
Source:

Type Definitions

MapOrigin

Contains the default center of the map and default zoom level. Example:

{
  center: [-76.94514,38.98951],
  zoom: 14.2
}
Type:
  • Object
Source:

OSMNode

An OSM Node in JSON format, plus a list of Ways that contains it (not contained in the original OSM data). Example:

{
  "type": "node",    // always "node"
  "id": 280525868,   // node ID
  "lat": 38.9849002, // node coordinates
  "lon": -76.9333648,
  "ways": [ ... ]    // integer way IDs
}
Type:
  • Object
Source:

OSMWay

An OSM Way in JSON format. Example:

{
  "type": "way",    // always "way"
  "id": 123456,     // integer way ID
  "nodes": [ ... ], // integer node IDs
  "tags": {         // way OSM tags
      "foot": "yes",
      "highway": "footway",
      "lit": "yes"
  }
}
Type:
  • Object
Source: