eegeo.js

L.eeGeo.marker(latLng, options)

Extends: L.Marker

// Create a marker 260m from the ground (the top of the Transamerica Pyramid)
L.eeGeo.marker([37.7952, -122.4028], { elevation: 260.0 }).addTo(map);
Argument Type Description
latLng L.LatLng The location to create the marker at
options object These are the same options you would pass to L.marker with some additions described below

Options

Options Type Default Description
elevation number 0 The elevation of the marker from the ground in meters

Methods

marker.getElevation()

Returns the elevation of the marker from the ground in meters.

marker.setElevation(elevation)

Set the elevation of the marker.

Argument Type Description
elevation number The elevation of the marker from the ground in meters
v0.1.1099