@geolonia/mbgl-fork-me-control

0.2.7 • Public • Published

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/

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

Readme

Keywords

none

Package Sidebar

Install

npm i @geolonia/mbgl-fork-me-control

Weekly Downloads

0

Version

0.2.7

License

MIT

Unpacked Size

16.7 kB

Total Files

16

Last publish

Collaborators

  • satsuki-higuchi
  • miya0001
  • naogify
  • sleepy_keita