eegeo.js

L.eeGeo.popup(options, source)

Extends: L.Popup

// Create a popup with the text "Transamerica Pyramid" above the Transamerica Pyramid
L.eeGeo.popup({ elevation: 260.0 })
       .setLatLng([37.7952, -122.4028])
       .setContent("Transamerica Pyramid")
       .addTo(map);

// Alternatively:
map.openPopup("Transamerica Pyramid", [37.7952, -122.4028], { elevation: 260.0 });
Argument Type Description
options object These are the same options you would pass to L.popup with some additions described below
source L.ILayer An optional ILayer to associate this popup with

Options

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

Methods

popup.getElevation()

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

popup.setElevation(elevation)

Set the elevation of the popup.

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