Comments (5)
Just tried with a custom unit. Does not work because 1 unit in my N/S direction (which is shown as E/W by leaflet-measure) seems to be considered 0.25 meters now when I set up a unit which correctly shows 1 unit in E/W on my map as 1 meter (factor 0.00001).
Updated my example: http://illy.bz/tmp/measure-test/
If you zoom in and look at one of the small missing squares on e.g. the lower left corner of the map these sections have an edge length of 16 in both directions. Measuring horizontally properly returns 16 meters with my custom unit, vertically it gives me 4.
For the area I had to create a unit with factor 0.000000000125 so that it at least matches the 4*16 meters = 64 m².
from leaflet-measure.
This can be done with the custom factor calculation with an additional link that allows manual input to interact with user to calculate manual input against actual calculated distance and set this result as factor value. This behaviour is needed when measuring custom layer areas.
Looking forward to..
Best Regards
from leaflet-measure.
Hi!
I'm also trying to get this plugin to work with the leaflet L.CRS.Simple projection.
I tried changing the custom unit to 0.000009. Vertically and horizontally this seems to work but diagonally I get strange results.
Get my example here:
http://5514.se/temp/template_dxf.zip
Thanks!
from leaflet-measure.
Closing due to inactivity
from leaflet-measure.
This never really got answered. Is it possible to use a custom CRS with this plugin? I am also using a variant of L.CRS.Simple. The built-in Leaflet "Scale" control works correctly but this plugin doesn't seem to.
from leaflet-measure.
Related Issues (20)
- Is it possible to disable the autocomplete?
- Apply a different coordinate system to Coordinate Output?
- Measure not visible on layers HOT 6
- green dotted line appearing
- Adding Perimeter value to the measurefinish results data
- Customizing map feature styles?
- Polyline don't show up when measure starts - Django
- Angular 2 is unable to compile sass due to relative paths to package assets HOT 2
- localization HOT 2
- Show Measure Popup onclick
- Allow to adjust the vertices
- Does not work in Leaflet 1.8.0 HOT 8
- How to start the measurement directly whiling clicking the toggle button?
- Property 'Measure' does not exist on type 'typeof control' in Angular CLI HOT 2
- Is this project still upkept? HOT 5
- typings for Angular 14
- after clicking on map it changes center of the map HOT 3
- bug HOT 1
- Doesn't work with image overlays
- Undo action while measurement is active
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leaflet-measure.