@tilecloud/mbgl-fork-me-control
v0.2.7
Published
`@tilecloud/mbgl-fork-me-control` has been deprecated and no longer won't be updated. Please use `@geolonia/mbgl-fork-me-control` instead.
Downloads
5
Readme
mbgl-fork-me-control
@tilecloud/mbgl-fork-me-control
has been deprecated and no longer won't be updated. Please use @geolonia/mbgl-fork-me-control
instead.
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 @tilecloud/mbgl-fork-me-control --save
How to use
import ForkMeConntrol from '@tilecloud/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/',
}));