Skip to content

maptoolkit/attribution-plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maptoolkit Attribution Plugins

Logo/attribution controls for map libraries. Drop-in plugins that render the Maptoolkit logo on a map.

Packages

Package Status
@maptoolkit/maplibre-gl-logo Available
@maptoolkit/leaflet-logo Available

Usage

MapLibre GL JS

npm install @maptoolkit/maplibre-gl-logo
import { MaptoolkitLogoControl } from '@maptoolkit/maplibre-gl-logo';

map.addControl(new MaptoolkitLogoControl());
// or: new MaptoolkitLogoControl({ position: 'top-right' })

Leaflet

npm install @maptoolkit/leaflet-logo
import { MaptoolkitLogoControl } from '@maptoolkit/leaflet-logo';

new MaptoolkitLogoControl().addTo(map);
// or: new MaptoolkitLogoControl({ position: 'top-right' }).addTo(map)

Development

npm install
npm run build

build:logo regenerates the embedded logo for all packages from assets/logo.png.

Release

# 1. Bump version in the package you're releasing
cd packages/<name>
npm version patch   # or minor / major

# 2. Build, commit, push
cd ../..
npm run build
git add -A && git commit -m "Release <name>@<new-version>"
git push

# 3. Publish (requires `npm login` + maptoolkit npm-org membership)
npm publish -w @maptoolkit/<name>

# 4. Tag the release commit
git tag '@maptoolkit/<name>@<new-version>'
git push --tags

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors