Skip to content

leaflet measure

andy.rothwell edited this page Sep 10, 2018 · 6 revisions

leaflet-measure

This originated with the github project leaflet-measure which the City of Philadelphia cloned, to add features.

The clone can be included in a project which is turned into a package by adding this line as a dependency in package.json:

"leaflet-measure": "https://github.com/CityOfPhiladelphia/leaflet-measure#b70886af342f19597dc2937d79d64bad6bab07c6"

However, this is not working when this package is not compiled with Rollup, so the compiled files are also stored by the City of Philadelphia in Amazon S3. They can therefore be included with the following tags:

<link rel="stylesheet" href="//s3.amazonaws.com/leaflet-measure-flatfiles/leaflet-measure-openmaps.css">

<script src="//s3.amazonaws.com/leaflet-measure-flatfiles/leaflet-measure.js"></script>

Clone this wiki locally