1.2.6 • Published 4 years ago

ginkgoch-leaflet-extensions v1.2.6

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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 draw MapEngine instance as a grid tile in Leaflet.

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.

ginkgoch-desktop-app-demo

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 git@github.com:ginkgoch/leaflet-extensions.git [YOUR PROJECT FOLDER]
cd [YOUR PROJECT FOLDER]
npm i
npm start
1.2.6

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago