Skip to content

gisfile/gisfile.box.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

gisfile.box.js

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>
    &lt;script type="text/javascript"&gt;
        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();
        })
    &lt;/script&gt;
&lt;/body&gt;

</html>

Description
First Start
General Information
Connecting API
Dynamic JSONP Layer
Box Layer
Map Designer

About

L.GisFileBox turns GisFile API box project into a Leaflet layers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published