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
2010-07-30 17:25:21 -05:00

30 lines
850 B
HTML

<!doctype html>
<html>
<head>
<title>Binary Test</title>
<style>
html, body, #map {
height: 100%;
width: 100%;
}
</style>
</head>
<body>
<div id="map"></div>
<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({
shp: "testdata/TM_WORLD_BORDERS_SIMPL-0.3.shp",
dbf: "testdata/TM_WORLD_BORDERS_SIMPL-0.3.dbf"
}, function(data){
console.log("took",new Date - starttime,"milliseconds")
console.log(data);
})
</script>
</body>
</html>