1.0.0 • Published 3 years ago

@wasac/mapbox-gl-admin-boundary v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

mapbox-gl-admin-boundary

GitHub

This module adds area switcher control which is able to zoom administrative boundaries to mapbox-gl

Installation:

npm i @WASAC/mapbox-gl-admin-boundary

Demo:

See demo.

Test:

npm run build
npm start

open http://localhost:8080.

Usage:

import MapboxAdminBoundaryControl from "mapbox-gl-admin-boundary";
import { Map as MapboxMap } from "mapbox-gl";

import "mapbox-gl-admin-boundary/css/styles.css";

const map = new MapboxMap();
map.addControl(new MapboxAdminBoundaryControl(
        'https://wasac.github.io/rw-admin-boundary'
    ), 'top-right');