1
0
mirror of https://github.com/wavded/js-shapefile-to-geojson synced 2024-11-23 14:34:54 +00:00
js-shapefile-to-geojson/index.html

30 lines
830 B
HTML
Raw Normal View History

2010-07-30 22:25:21 +00:00
<!doctype html>
<html>
<head>
2010-07-31 16:47:07 +00:00
<title>Test Page</title>
2010-07-30 22:25:21 +00:00
<style>
html, body, #map {
height: 100%;
width: 100%;
}
</style>
</head>
<body>
2010-07-31 16:47:07 +00:00
<div id="map">See Console Logs</div>
2010-07-30 22:25:21 +00:00
<script src="stream.js"></script>
<script src="shapefile.js"></script>
<script src="dbf.js"></script>
<script type="text/javascript">
var starttime = +new Date,
shapefile = new Shapefile({
2010-07-31 16:47:07 +00:00
shp: "testdata/testshape.shp",
dbf: "testdata/testshape.dbf"
2010-07-30 22:25:21 +00:00
}, function(data){
console.log("took",new Date - starttime,"milliseconds")
console.log(data);
})
</script>
</body>
</html>