0.2.7 • Published 5 years ago

@geolonia/mbgl-fork-me-control v0.2.7

Weekly downloads
30
License
MIT
Repository
github
Last release
5 years ago

mbgl-fork-me-control

Build Status npm version

This is a Mapbox GL JS plugin to add GitHub's fork-me ribbon.

https://tilecloud.github.io/mbgl-fork-me-control/

npm.io

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/',
}));