Skip to contents

Package Documentation

leaflet.extras leaflet.extras-package
leaflet.extras: Extra Functionality for 'leaflet' Package.

Useful Dependencies

addAwesomeMarkersDependencies()
Add AwesomeMarkers and related lib dependencies to a map
addBootstrapDependency()
Add Bootstrap dependency to a map
leafletExtrasDependencies
Various leaflet dependency functions for use in downstream packages

Draw on Map

drawShapeOptions() drawPolylineOptions() drawPolygonOptions() drawRectangleOptions() drawCircleOptions() drawMarkerOptions() drawCircleMarkerOptions() selectedPathOptions() editToolbarOptions()
Options for drawn shapes
addDrawToolbar() removeDrawToolbar()
Adds a Toolbar to draw shapes/points on the map.
addStyleEditor() removeStyleEditor()
Add style editor
enableMeasurePath() measurePathOptions() addMeasurePathToolbar()
Enables measuring of length of polylines and areas of polygons
toolbarOptions()
Options for editing the toolbar
handlersOptions()
Options for editing handlers

Heatmaps

GeoJSON/TopoJSON

Extra Icons

Search Markers/Shapes

Miscellaneous Features

addGeodesicPolylines() addLatLng() addGreatCircles()
Add Geodesic Lines & Circles
addFullscreenControl()
Add fullscreen control
gpsOptions() addControlGPS() removeControlGPS() activateGPS() deactivateGPS()
Options for the GPS Control
addHash()
Add dynamic URL Hash
suspendScroll()
Prevents accidental map scrolling when scrolling in a document.
enableTileCaching()
Enables caching of Tiles
addWMSLegend()
Add WMS Legend
debugMap()
For debugging a leaflet map
addResetMapButton()
Reset map's view to original view
addBingTiles()
Adds Bing Tiles Layer
addBounceMarkers()
Add Bounce Markers to map