Skip to content

calvinmetcalf/leaflet.shapefile

gh-pages
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
August 13, 2015 12:40
August 8, 2013 10:32
August 8, 2013 07:26
August 8, 2013 11:46
August 8, 2013 11:46
August 8, 2013 11:52
August 13, 2015 13:16
May 30, 2019 12:13
August 8, 2013 11:46
August 13, 2015 13:16

leaflet.shapefile

requires shapefile-js plus if you want it to be done in a worker, you'll need catiline.

usage:

new L.Shapefile(arrayBuffer or url[,options][,importUrl]);

L.shapefile(arrayBuffer or url[,options][,importUrl]);

Options are passed to L.Geojson as is. First argument is either an array buffer of a zipped shapefile, the url to a zipped shapefile, or the url to file.shp (this assumes file.dbf exists). The importUrl parameter allows you to change where a worker loads in shp.js when using catiline and defaults to shp.js.

To easily try this out using your own shapefile, see the demo at leaflet.calvinmetcalf.com, where you can drag-and-drop your own shapefile and have it displayed on the map.

Releases

No releases published

Packages

No packages published

Languages