Tool which provides the map layer functionality for Geovisto core library.
This repository is a snapshot of Geoviosto tools/layers/bubble
derived from the development repository: geovisto/geovisto-map.
import { GeovistoBubbleLayerTool } from 'geovisto-layer-bubble';
import 'geovisto-layer-bubble/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
// ...
GeovistoBubbleLayerTool.createTool({
id: "geovisto-tool-layer-bubble"
}),
])
});
// 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-bubble",
"id": "geovisto-tool-layer-bubble",
"enabled": true,
"layerName": "Bubble layer",
// mapping of data domains to data dimensions
"data": {
"latitude": "lat", // latitude in degrees
"longitude": "long", // longitude in degrees
"category": "data.category", // category dimension
"value": "data.value", // value dimension
"aggregation": "sum", // [sum, count]
"color": "#e32400" // color of bubbles
"bubbleSize": 2 // size of bubbles
}
},
// ...
]
}));
npm install --save geovisto-layer-bubble
Peer dependencies:
npm install --save geovisto leaflet
Author: Petr Kašpar, Vladimír Korenčik
Contributors: Jiři Hynek