ginkgoch-leaflet-extensions
v1.2.6
Published
This is leaflet extensions that work with ginkgoch map SDK.
Downloads
3
Readme
Leaflet Extensions for Ginkgoch
This is Leaflet
extensions for making ginkgoch-map
SDK to work on Electron
framework.
API
FeatureGridLayer
- A L.GridLayer subclass that allows to drawMapEngine
instance as a grid tile inLeaflet
.
Install
This extension depends on leaflet
, ginkgoch-map
.
npm i --save ginkgoch-leaflet-extensions
Usage
There are three ways to usage it.
# method 1
const { FeatureGridLayer } = require('ginkgoch-leaflet-extensions');
const gridLayer1 = new FeatureGridLayer()
# method 2
require('ginkgoch-leaflet-extensions');
const gridLayer2 = new L.GridLayer.Features();
# method 3
const gridLayer3 = L.gridLayer.features();
Demo
This is a quick demo to build GIS desktop application with electron
and ginkgoch-map
. It loads a China mainland Shapefile and render as tiles.
The easiest way to kickoff an electron
env is to download its quick-start demo. You can either download or folk it and use it as a project template in github.
Extract this downloaded demo or clone your project that is created by the project template and open in vscode
. The initialized map and data are ready for you.
Type following command in terminal to launch this desktop application.
git clone [email protected]:ginkgoch/leaflet-extensions.git [YOUR PROJECT FOLDER]
cd [YOUR PROJECT FOLDER]
npm i
npm start