0.2.7 • Published 5 years ago
@geolonia/mbgl-fork-me-control v0.2.7
mbgl-fork-me-control
This is a Mapbox GL JS plugin to add GitHub's fork-me ribbon.
https://tilecloud.github.io/mbgl-fork-me-control/
Install
$ npm install @geolonia/mbgl-fork-me-control --save
How to use
import ForkMeConntrol from '@geolonia/mbgl-fork-me-control'
const map = new mapboxgl.Map({
container: 'map',
style: 'https://tilecloud.github.io/tiny-tileserver/style.json',
attributionControl: true,
hash: true
});
map.addControl(new mapboxgl.NavigationControl());
map.addControl(new mapboxgl.GeolocateControl());
map.addControl(new ForkMeConntrol({
url: 'https://github.com/tilecloud/mbgl-fork-me-control/',
}));
0.2.7
5 years ago