Skip to content

Geovisto tool which provides support for geographical objects downloading

License

Notifications You must be signed in to change notification settings

geovisto/geovisto-geo-downloader

Repository files navigation

Geovisto Geo Downloader Tool

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.

Usage

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
    }
));

Installation

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.

License

MIT

About

Geovisto tool which provides support for geographical objects downloading

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published