Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@tilecloud/mbgl-tilecloud-control

geolonia3MIT0.3.7

readme

mbgl-geolonia-control

Build Status npm version

This is a Mapbox GL JS plugin to display our trademark on map.

https://geolonia.github.io/mbgl-geolonia-control/

Install

$ npm install @geolonia/mbgl-geolonia-control --save

How to use

import GeoloniaControl from "@geolonia/mbgl-geolonia-control";

const map = new mapboxgl.Map({
  container: "map",
  style: "https://geolonia.github.io/tiny-tileserver/style.json",
  attributionControl: true,
  hash: true
});

map.addControl(new mapboxgl.NavigationControl());
map.addControl(new mapboxgl.GeolocateControl());
map.addControl(new GeoloniaControl(), "bottom-left");