Skip to content

Instantly share code, notes, and snippets.

@lerouxb
Created October 19, 2016 12:38
Show Gist options
  • Save lerouxb/0c6ac34cffc8e1e0d0d0b6807f6fe8ec to your computer and use it in GitHub Desktop.
Save lerouxb/0c6ac34cffc8e1e0d0d0b6807f6fe8ec to your computer and use it in GitHub Desktop.
Maki icon names for use with MapBox GeoJSON
aerialway
airfield
airport
alcohol-shop
america-football
amusement-park
aquarium
art-gallery
attraction
bakery
bank
bar
baseball
basketball
beer
bicycle
bicycle-share
blood-bank
buddhism
building
bus
cafe
campsite
car
castle
cemetery
central-building
cinema
circle
circle-stroked
clothing-store
college
commercial
cricket
cross
dam
danger
dentist
doctor
dog-park
drinking-water
embassy
entrance
farm
fast-food
ferry
fire-station
fuel
gaming
garden
garden-center
gift
golf
grocery
hairdresser
harbor
heart
heliport
hospital
ice-cream
industry
information
karaoke
landmark
laundry
library
lighthouse
lodging
marker
monument
mountain
museum
music
park
parking
parking-garage
pharmacy
picnic-site
pitch
place-of-worship
playground
police
post
prison
rail
rail-light
rail-metro
ranger-station
religious-christian
religious-jewish
religious-muslim
residential-community
restaurant
roadblock
rocket
school
shelter
shop
skiing
soccer
square
square-stroked
stadium
star
star-stroked
suitcase
sushi
swimming
teahouse
telephone
tennis
theatre
toilet
town-hall
triangle
triangle-stroked
veterinary
volcano
warehouse
waste-basket
water
wetland
wheelchair
zoo
// https://www.mapbox.com/maki-icons/
var nodes = [].slice.call(document.querySelectorAll('svg title'));
var names = Object.keys(nodes.reduce(function(memo, item) {var text = item.firstChild.data; if (text && text.indexOf('-11.svg') !== -1) memo[text.replace('-11.svg', '')] = 1; return memo; }, {}));
console.log(names.join('\n'));
@harshvaghani
Copy link

thanks sir !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment