tcoupin / leaflet-paintpolygon Goto Github PK
View Code? Open in Web Editor NEWLeaflet plugin to create polygon with circle as paint
Home Page: https://tcoupin.github.io/leaflet-paintpolygon
License: GNU General Public License v3.0
Leaflet plugin to create polygon with circle as paint
Home Page: https://tcoupin.github.io/leaflet-paintpolygon
License: GNU General Public License v3.0
All in the title : it would be great to allow user to wipe all drawings out.
Is there a way how to detect when the polygon is drawn or finished?
Hello,
Great work.
I start and ,how can we retrieve the coordinates of the polygon in a "textarea" or, at least, display them all in an "alert"
Thanks
(je débute et ,comment peut on récupérer les coordonnées du polygone dans un "textarea" ou , au moins, toutes les afficher dans une "alert")
The plugin works well on desktop browsers such as chrome, firefox, safari etc.
But when I test the plugin on the mobile, I found out it stopped to work on mobile chrome. I could confirm it was working well on mobile firefox.
While debugging the plugin, I knew mobile chrome doesn't support the mouse events for leafletJS.
So for mobile chrome, need to use touch events instead of mouse events.
This is an awesome plugin but there is one issue thats preventing me from using it.
When drawing it seems if you draw over that start of the line it deletes part of the line, I have linked a screen recording to help explain.
Video: https://youtu.be/AiDOzJPEdRs
Unrelated but after drawing for about 20 seconds chrome bug out and the page has to be reloaded.
Regards
Jack
Hello, this is a great plugin but i have a problem,
When i drawing sometimes i get
"Unable to complete output ring starting at [... , ...]. Last matching segment found ends at [... , ...]." (dots are stands for lat lng)
I would appreciate your help
Did pretty extensive development on a project with available open source maps, then once I received my "flat" raster map, popped it in, switched the map to CRS.Simple and everything went haywire. When drawing on a CRS.Simple map, the area is drawn in weird shapes in the upper left far from the cursor. I suspect this has something to do with "projection." How can I get PaintPolygon to work with CRS.Simple?
How to change style of GeoJSON element using Leaflet.
for example set this style:
let style = { radius: 8, fillColor: "#ff7800", color: "#000", weight: 1, opacity: 1, fillOpacity: 0.8 };
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.