Timeline for Picking up the coordinates inside this polygon draw
Current License: CC BY-SA 4.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
S Dec 27, 2022 at 11:17 | history | suggested | Tomoyuki Aota | CC BY-SA 4.0 |
turf.point expects [longitude, latitude]. It was the other way around.
|
Dec 27, 2022 at 10:51 | review | Suggested edits | |||
S Dec 27, 2022 at 11:17 | |||||
Jan 11, 2021 at 19:07 | comment | added | Dror Bogin | My code was referring to the way you drew your black dots. | |
Jan 11, 2021 at 18:57 | comment | added | Rayssa Rocha | @DrorBogin but my black dots are geojson and are already plotted on the map, regardless of draw. | |
Jan 6, 2021 at 6:44 | comment | added | Dror Bogin | @RayssaRocha You just want to output the id's? thats just as easy, look throug my answer, it tests all your points whenever a new polygon is added. | |
Jan 5, 2021 at 23:49 | comment | added | Rayssa Rocha | i made a update on question, I think you were not understanding the question | |
Jan 5, 2021 at 21:03 | comment | added | Dror Bogin | @RayssaRocha I meant use leaflet built in classes instead of the second part of the code, the one where you add the points to the map. | |
Jan 5, 2021 at 21:02 | comment | added | Dror Bogin |
@TomazicM as I stated, when I answered the question it was "I was wondering if there is a possibility that I can get the id's of these black dots but that are inside my polygon?". since leaflet-geoman supports multiple polygon types, my answer is true for all of them, whether circular or not.
|
|
Jan 5, 2021 at 20:34 | comment | added | TomazicM | @DrorBogin As I wrote, GeoJSON standard doesn't have circle geometry, see en.wikipedia.org/wiki/GeoJSON#Geometries. As far as question goes, there is image of circle and then statement: "I want to know what is the id of the pins that are within that radius." | |
Jan 5, 2021 at 20:31 | comment | added | Rayssa Rocha | i cannot use l.circle or l.marker, i need just draw a polygon in the map. this polygon or circle is not a ready geojson. is the person who can draw from the geoman-leaflet drawing tool | |
Jan 5, 2021 at 20:22 | comment | added | Dror Bogin |
It does, but the question wasn't specific to circles, but to a drawn polygon, at least when I answered it. Whatever polygon leaflet-geoman draws should work with turf since it accepts either turf.js geometry or a GeoJSON feature
|
|
Jan 5, 2021 at 20:19 | comment | added | TomazicM |
GeoJSON does not have circle geometry. Does leaflet-geoman plugin create some approximate polygon?
|
|
Jan 5, 2021 at 20:06 | history | answered | Dror Bogin | CC BY-SA 4.0 |