Name: map-ui
Owner: Mapzen
Description: map ui for mapzen. deprecated. use mapzen.js if you can.
Created: 2016-05-18 16:50:18.0
Updated: 2017-03-09 19:58:30.0
Pushed: 2017-03-10 20:47:48.0
Size: 3595
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
this adds common ui elements for map demos made by mapzen. currently it assumes a globally accessible map
object that is a Leaflet instance.
Add script to your demo:
ipt src='https://mapzen.com/common/ui/mapzen-ui.min.js'></script>
Initialize components:
.bug({
me: 'Tangram',
nk: 'https://mapzen.com/projects/tangram',
eet: 'Tangram: real-time WebGL maps from @mapzen',
po: 'https://github.com/tangrams/tangram'
Included components:
target
attribute.leaflet-hash.js
section below.Branding, social sharing, and tracking UI component for standalone demos. [separate module]
This installs the Leaflet geocoder plugin. By default it is on if the page is not iframed and it is off if the page is iframed.
You can turn it off always by adding this option:
.bug({
arch: false
You can turn it on always, even when iframed, by adding this option:
.bug({
arch: true
This installs the Leaflet.Locate plugin. By default it is on if the page is not iframed and it is off if the page is iframed.
You can turn it off always by adding this option:
.bug({
cate: false
You can turn it on always, even when iframed, by adding this option:
.bug({
cate: true
Install npm
and dependencies, then:
install
You may also need to install gulp globally:
install gulp -g
Then, each time you want to build everything:
# Files are generated in dist/
To publish to S3: commits to master
branch are auto-deployed via CircleCI.