Skip to content

Commit

Permalink
Updated docs to include new importUrl parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlukerice committed May 13, 2015
1 parent 7589c15 commit 344bba4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ to be done in a worker, you'll need [catiline](https://github.com/calvinmetcalf/
usage:

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

L.shapefile(arrayBuffer or url[,options]);
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 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](https://github.com/calvinmetcalf/catiline) and defaults to `shp.js`.

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

0 comments on commit 344bba4

Please sign in to comment.