mirror of
https://github.com/wavded/js-shapefile-to-geojson
synced 2025-12-15 02:34:11 +00:00
fix; examples
This commit is contained in:
@@ -26,7 +26,7 @@ Load DBF Only
|
|||||||
Load Shapefile w/ DBF Attributes
|
Load Shapefile w/ DBF Attributes
|
||||||
|
|
||||||
var shapefile = new Shapefile({
|
var shapefile = new Shapefile({
|
||||||
shp: "myshape.dbf",
|
shp: "myshape.shp",
|
||||||
dbf: "myshape.dbf"
|
dbf: "myshape.dbf"
|
||||||
}, function(data){
|
}, function(data){
|
||||||
// data returned
|
// data returned
|
||||||
@@ -38,7 +38,7 @@ Use with OpenLayers
|
|||||||
parser = new OpenLayer.Format.GeoJSON(),
|
parser = new OpenLayer.Format.GeoJSON(),
|
||||||
features,
|
features,
|
||||||
shapefile = new Shapefile({
|
shapefile = new Shapefile({
|
||||||
shp: "myshape.dbf",
|
shp: "myshape.shp",
|
||||||
dbf: "myshape.dbf"
|
dbf: "myshape.dbf"
|
||||||
}, function(data){
|
}, function(data){
|
||||||
features = parser.read(data.geojson);
|
features = parser.read(data.geojson);
|
||||||
|
|||||||
Reference in New Issue
Block a user