aprilandjan / leaflet.measure Goto Github PK
View Code? Open in Web Editor NEWA leaflet plugin to measure distances on map
A leaflet plugin to measure distances on map
In the README it is stated that this repo is a fork of https://github.com/jtreml/leaflet.measure. Github however does not indicate this, and therefore using the network diagram to see which fork is the most up to date does not work.
For this reason I opted not to use the code in this repo, and rather use a repo that looks more up to date compared to the upstream one:
https://github.com/kartenkarsten/leaflet.measure/network
Issue: cursor is flickering on moving/dragging.
Reason: measure polyline has leaflet-interactive
class. When leaflet-interactive
element gets hovered, cursor style changes to "pointer"/"grabbing".
Is there a way to manually activate? I have my own buttons that are aligned so adding this button by itself doesn't work well. So I created my own button but haven't figured if I can activate measurement manually.
If you have any layers displayed on the map, you can start a measure to the left of the layer (eg. polygon) and end it beyond the polygon, but you can not end the measurement ON the polygon.
Thank you for the plugin. It would be nice to be able to switch to miles for the dumb countries who can't switch to the metric system..
Hello!
Im wondering how I would go about to make this tool work for non geographical maps?
Using it as is with CRS.Simple map obviosuly doesnt work. I tried to change:
var distance = e.latlng.distanceTo(this._lastPoint) ---->
var distance = e.latlng.distance(this._lastPoint)
However, this doesnt seem to work either. Any advice?
Thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.