Alasdair
Alasdair

Reputation: 1384

How to add a shapefile/GeoJSON boundary to a map in Leaflet?

This would appear to be the most basic and trivial thing, except that I can't find out how to do it. I have a shapefile which contains the boundaries of all electorates in my state (this is in Australia, not that it matters). I can convert the shapefile to a GeoJSON file, and all I want to do is to plot one boundary on my map.

The last time I did any mapping work (several years ago) I used Python with its Folium and GeoPandas libraries. But I thought I'd try Leaflet using JavaScript - assuming that I could do everything I needed. But I seem to have got stuck at the start.

I'd be happy of any pointers!

Upvotes: 0

Views: 30

Answers (0)

Related Questions