Module for the Geovisto core library.
Provides user interface for downloading points or polygons from OverpassAPI (OSM) of selected country. Geographical objects can be downloaded from more than one administrative levels. (e.g. districts, regions, towns, ...) For polygons, tool provides additional simplification of borders and automatic generating of hierarhy configuration used in Geovisto Hierarchy Tool. (link)
This repository is a snapshot of Geoviosto tools/downloader
derived from the development repository: geovisto/geovisto-map.
import {
GeovistoGeoDownloaderTool
} from 'geovisto-geo-downloader';
// 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
// Instance of downloader tool
GeovistoGeoDownloaderTool.createTool({
id: "geovisto-geo-downloader"
}),
])
});
// 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-geo-downloader",
"id": "geovisto-geo-downloader",
"enabled": true
}
));
npm install --save geovisto-geo-downloader
This package serves as an extension of Geovisto core using the API for Geovisto tools (extensions). Follow Geovisto core on Github.