mad-gooze / leaflet.arc Goto Github PK
View Code? Open in Web Editor NEWLeaflet.js plugin for drawing Great Circle arcs using arc.js
License: MIT License
Leaflet.js plugin for drawing Great Circle arcs using arc.js
License: MIT License
Hello,
i'm trying to use the plugin to draw arcs on a map.
var path = L.Polyline.Arc(
[ 48.8611473, 2.33802768704666 ] , [ 41.3751984992, 2.12036451854 ], {
vertices: 100,
}).addTo(myMap)
With these coordinates it shows a line instead of an arc,
may be due to a problem with short distances?
I tried also the following demo example and it works well :
L.Polyline.Arc([59.56667, 150.8], [67.5, 64.03333], {
color: "red",
vertices: 200
}).addTo(map);
Is there any way to animate leaflet arc?
I get this error when I try to called L.Polyline.Arc from your plugin. I am loading leaflet first, and then your plugin.
I was getting a 404 until I realized I was missing a file
https://github.com/mad-gooze/Leaflet.Arc/blob/master/bin/leaflet-arc.min.js.map
I think the readme should be updated to mention including this file.
How can I control the line/arc width?
I can only see options for colors....
Please help me understand wtf I'm doing wrong.
var cdpSpan = new L.Polyline.Arc(pointFrom, pointTo, {
color: 'blue',
weight: 2.5,
opacity: 1,
smoothFactor: 1,
interactive: false,
vertices: 200
});
Hi, nice work! We'd like to use this in an app for academic medical centers but noticed there appears to be no license for the repo. Could you please add a license, preferably MIT or BSD?
Your arrow functions like
const _latLngToXY = latlng => ({ x: latlng.lng, y: latlng.lat });
are not supported in IE11 and Opera Mini. Please change it to standard function for full cross browser support.
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.