geovisto-layer-dot
v0.9.1
Published
Geovisto tool which provides the dot layer
Downloads
4
Readme
Geovisto Dotlayer Tool
Tool which provides the map layer functionality for Geovisto core library.
This repository is a snapshot of Geoviosto tools/layers/dot
derived from the development repository: geovisto/geovisto-map.
Usage
import { GeovistoDotLayerTool } from 'geovisto-layer-dot';
import 'geovisto-layer-dot/dist/index.css';
// create instance of map with given props
const map = Geovisto.createMap({
// ...
tools?: Geovisto.createMapToolsManager([
// instances of Geovisto tools (extensions) which will be directly used in the map
// ...
GeovistoDotLayerTool.createTool({
id: "geovisto-tool-layer-dot"
}),
])
});
// rendering of the map
map.draw(Geovisto.getMapConfigManagerFactory().default({
// initial settings of the map can be overriden by the map config - JSON structure providing user settings
// ...
tools?: [
// config of Geovisto tools (extensions) used in the map
// ...
{
"type": "geovisto-tool-layer-dot",
"id": "geovisto-tool-layer-dot",
"enabled": true,
"layerName": "Dot layer",
// mapping of data domains to data dimensions
"data": {
"latitude": "lat", // latitude in degrees
"longitude": "long", // longitude in degrees
"category": "data.category", // category dimension
"color": "#e32400" // color of dots
}
},
// ...
]
}));
Instalation
npm install --save geovisto-layer-dot
Peer dependencies:
npm install --save geovisto leaflet
Authors and Contributors
Author: Petr Kašpar, Vladimír Korenčik
Contributors: Jiři Hynek
License
Keywords
gis map geovisto leaflet spatial-data visualization dot dotmap