GPX file with leaflet : polygons

78 views
Skip to first unread message

Maeva Mtl

unread,
Sep 29, 2020, 12:39:24 AM9/29/20
to Leaflet
Hello,

I made a map of the sea with the fishing data. This is my first map. I use folium. Everything works on this side.

It's the integration of the sectors (polygons on the ocean) of a gpx file that I can't do properly. I have all the polygons but they are built as a single polyline. Therefore I have a plot that crosses all the polygons. 

In the end I have :

238 tracks
1 segment
5 points

And here is the code to integrate these points to my map : 
folium map.PolyLine(points, color='#3E967A', weight=4.5, opacity=.5).add_to(map2015)

When I replace Polyline by Polygon it's worse. I am new to card building and will need help. Thank you in advance for your advice!

Mimi
Reply all
Reply to author
Forward
0 new messages