L.GisFileBox turns GisFile API box project into a Leaflet layer
This is the Gisfile Javascript API, version 1.x. It's built as a Leaflet plugin. You can read more about the Gisfile API
Latest version of the GISfile JavaScript API in the src
directory
One way of usage is via the Gisfile CDN:
<script src='http://gisfile.com/js/gisfile.box.js'></script> <script src='http://gisfile.com/js/jszip.min.js'></script>
The gisfile.json.js
file does not includes the Leaflet and jsZip library.
You will have to include the Leaflet and jsZip yourself.
<html> <head> <script src="http://gisfile.com/js/jquery/jquery-1.8.0.min.js"></script> <link rel="stylesheet" href="http://gisfile.com/css/leaflet.css" /> <script src="http://gisfile.com/js/leaflet.js"></script> <script src="http://gisfile.com/js/gisfile.box.js"></script> <script src="http://gisfile.com/js/jszip.min.js"></script> </head> <body> <div id="map" style="width: 100%; height: 500px"></div><script type="text/javascript"> var map = new L.map("map", { center: [50.4487, 30.5873], zoom: 10 }); $(function() { new L.TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map); var gisfile = new L.GisFileBox({map : 'SpatialTown'}).addTo(map); gisfile._update(); }) </script> </body>
</html>
Description
First Start
General Information
Connecting API
Dynamic JSONP Layer
Box Layer
Map Designer