mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 13:38:26 +02:00
@@ -8,10 +8,11 @@ LOCALE ?= en_US
|
||||
all: \
|
||||
iD.js \
|
||||
iD.min.js \
|
||||
img/line-presets.png \
|
||||
iD.css
|
||||
|
||||
DATA_FILES = $(shell find data -type f -name '*.json' -o -name '*.md')
|
||||
data/data.js: $(DATA_FILES)
|
||||
data/data.js: $(DATA_FILES) maki-sprite
|
||||
node build.js
|
||||
|
||||
data/locales/en.js: data/core.yaml data/presets.yaml
|
||||
@@ -72,7 +73,7 @@ iD.js: node_modules/.install Makefile
|
||||
cat $(filter %.js,$^) > $@
|
||||
|
||||
iD.css: css/*.css
|
||||
cat css/reset.css css/map.css css/app.css css/feature-icons.css > $@
|
||||
cat css/reset.css css/map.css css/app.css css/line-presets.css css/maki-sprite.css > $@
|
||||
|
||||
node_modules/.install: package.json
|
||||
npm install && touch node_modules/.install
|
||||
@@ -101,6 +102,9 @@ data/locales.js: data/locales/*.js
|
||||
img/line-presets.png: svg/line-presets.svg
|
||||
inkscape --export-area-page --export-png=img/line-presets.png svg/line-presets.svg
|
||||
|
||||
maki-sprite: node_modules/maki/renders/*.png
|
||||
node data/maki_sprite
|
||||
|
||||
D3_FILES = \
|
||||
node_modules/d3/src/start.js \
|
||||
node_modules/d3/src/arrays/index.js \
|
||||
|
||||
@@ -116,7 +116,8 @@ fs.writeFileSync('data/data.js', 'iD.data = ' + stringify({
|
||||
categories: rp('categories.json'),
|
||||
fields: rp('fields.json')
|
||||
},
|
||||
imperial: r('imperial.json')
|
||||
imperial: r('imperial.json'),
|
||||
maki: r('maki-sprite.json')
|
||||
}) + ';');
|
||||
|
||||
// Push changes from data/core.yaml into data/locales.js
|
||||
|
||||
@@ -1,591 +0,0 @@
|
||||
/* glue: 0.3 hash: 5d99d90788 */
|
||||
.feature-waterway-stream,
|
||||
.feature-waterway-river,
|
||||
.feature-waterway-ditch,
|
||||
.feature-waterway-canal,
|
||||
.feature-railway-subway,
|
||||
.feature-railway-rail,
|
||||
.feature-railway-monorail,
|
||||
.feature-railway-light_rail,
|
||||
.feature-railway-disused,
|
||||
.feature-railway-abandoned,
|
||||
.feature-power-line,
|
||||
.feature-other-line,
|
||||
.feature-highway-unclassified,
|
||||
.feature-highway-trunk,
|
||||
.feature-highway-trunk-link,
|
||||
.feature-highway-track,
|
||||
.feature-highway-tertiary,
|
||||
.feature-highway-tertiary-link,
|
||||
.feature-highway-steps,
|
||||
.feature-highway-service,
|
||||
.feature-highway-secondary,
|
||||
.feature-highway-secondary-link,
|
||||
.feature-highway-road,
|
||||
.feature-highway-residential,
|
||||
.feature-highway-primary,
|
||||
.feature-highway-primary-link,
|
||||
.feature-highway-path,
|
||||
.feature-highway-motorway,
|
||||
.feature-highway-motorway-link,
|
||||
.feature-highway-living_street,
|
||||
.feature-highway-footway,
|
||||
.feature-highway-cycleway,
|
||||
.feature-highway-bridleway,
|
||||
.feature-category-water,
|
||||
.feature-category-roads,
|
||||
.feature-category-rail,
|
||||
.feature-category-path,
|
||||
.feature-zoo,
|
||||
.feature-x,
|
||||
.feature-wetland,
|
||||
.feature-water,
|
||||
.feature-waste-basket,
|
||||
.feature-warehouse,
|
||||
.feature-triangle,
|
||||
.feature-triangle-stroked,
|
||||
.feature-town-hall,
|
||||
.feature-toilets,
|
||||
.feature-theatre,
|
||||
.feature-tennis,
|
||||
.feature-swimming,
|
||||
.feature-star,
|
||||
.feature-star-stroked,
|
||||
.feature-square,
|
||||
.feature-square-stroked,
|
||||
.feature-soccer,
|
||||
.feature-slaughterhouse,
|
||||
.feature-skiing,
|
||||
.feature-shop,
|
||||
.feature-school,
|
||||
.feature-roadblock,
|
||||
.feature-restaurant,
|
||||
.feature-religious-muslim,
|
||||
.feature-religious-jewish,
|
||||
.feature-religious-christian,
|
||||
.feature-rail,
|
||||
.feature-rail-underground,
|
||||
.feature-rail-above,
|
||||
.feature-prison,
|
||||
.feature-post,
|
||||
.feature-police,
|
||||
.feature-place-of-worship,
|
||||
.feature-pitch,
|
||||
.feature-pharmacy,
|
||||
.feature-parking,
|
||||
.feature-parking-garage,
|
||||
.feature-park2,
|
||||
.feature-park,
|
||||
.feature-oil-well,
|
||||
.feature-museum,
|
||||
.feature-monument,
|
||||
.feature-minefield,
|
||||
.feature-marker,
|
||||
.feature-marker-stroked,
|
||||
.feature-london-underground,
|
||||
.feature-logging,
|
||||
.feature-lodging,
|
||||
.feature-library,
|
||||
.feature-industrial,
|
||||
.feature-hospital,
|
||||
.feature-heliport,
|
||||
.feature-harbor,
|
||||
.feature-grocery,
|
||||
.feature-golf,
|
||||
.feature-garden,
|
||||
.feature-fuel,
|
||||
.feature-fire-station,
|
||||
.feature-ferry,
|
||||
.feature-fast-food,
|
||||
.feature-embassy,
|
||||
.feature-danger,
|
||||
.feature-dam,
|
||||
.feature-cross,
|
||||
.feature-cricket,
|
||||
.feature-commercial,
|
||||
.feature-college,
|
||||
.feature-circle,
|
||||
.feature-circle-stroked,
|
||||
.feature-cinema,
|
||||
.feature-cemetery,
|
||||
.feature-campsite,
|
||||
.feature-cafe,
|
||||
.feature-bus,
|
||||
.feature-bicycle,
|
||||
.feature-beer,
|
||||
.feature-basketball,
|
||||
.feature-baseball,
|
||||
.feature-bar,
|
||||
.feature-bank,
|
||||
.feature-art-gallery,
|
||||
.feature-america-football,
|
||||
.feature-alcohol-shop,
|
||||
.feature-airport,
|
||||
.feature-airfield,
|
||||
.feature-zoo-18,
|
||||
.feature-x-18,
|
||||
.feature-wetland-18,
|
||||
.feature-water-18,
|
||||
.feature-waste-basket-18,
|
||||
.feature-warehouse-18,
|
||||
.feature-triangle-stroked-18,
|
||||
.feature-triangle-18,
|
||||
.feature-town-hall-18,
|
||||
.feature-toilets-18,
|
||||
.feature-theatre-18,
|
||||
.feature-tennis-18,
|
||||
.feature-swimming-18,
|
||||
.feature-star-stroked-18,
|
||||
.feature-star-18,
|
||||
.feature-square-stroked-18,
|
||||
.feature-square-18,
|
||||
.feature-soccer-18,
|
||||
.feature-slaughterhouse-18,
|
||||
.feature-skiing-18,
|
||||
.feature-shop-18,
|
||||
.feature-school-18,
|
||||
.feature-roadblock-18,
|
||||
.feature-restaurant-18,
|
||||
.feature-religious-muslim-18,
|
||||
.feature-religious-jewish-18,
|
||||
.feature-religious-christian-18,
|
||||
.feature-rail-underground-18,
|
||||
.feature-rail-above-18,
|
||||
.feature-rail-18,
|
||||
.feature-prison-18,
|
||||
.feature-post-18,
|
||||
.feature-police-18,
|
||||
.feature-place-of-worship-18,
|
||||
.feature-pitch-18,
|
||||
.feature-pharmacy-18,
|
||||
.feature-parking-garage-18,
|
||||
.feature-parking-18,
|
||||
.feature-park2-18,
|
||||
.feature-park-18,
|
||||
.feature-oil-well-18,
|
||||
.feature-museum-18,
|
||||
.feature-monument-18,
|
||||
.feature-minefield-18,
|
||||
.feature-marker-stroked-18,
|
||||
.feature-marker-18,
|
||||
.feature-london-underground-18,
|
||||
.feature-logging-18,
|
||||
.feature-lodging-18,
|
||||
.feature-library-18,
|
||||
.feature-industrial-18,
|
||||
.feature-hospital-18,
|
||||
.feature-heliport-18,
|
||||
.feature-harbor-18,
|
||||
.feature-grocery-18,
|
||||
.feature-golf-18,
|
||||
.feature-garden-18,
|
||||
.feature-fuel-18,
|
||||
.feature-fire-station-18,
|
||||
.feature-ferry-18,
|
||||
.feature-fast-food-18,
|
||||
.feature-embassy-18,
|
||||
.feature-danger-18,
|
||||
.feature-dam-18,
|
||||
.feature-cross-18,
|
||||
.feature-cricket-18,
|
||||
.feature-commercial-18,
|
||||
.feature-college-18,
|
||||
.feature-circle-stroked-18,
|
||||
.feature-circle-18,
|
||||
.feature-cinema-18,
|
||||
.feature-cemetery-18,
|
||||
.feature-campsite-18,
|
||||
.feature-cafe-18,
|
||||
.feature-bus-18,
|
||||
.feature-bicycle-18,
|
||||
.feature-beer-18,
|
||||
.feature-basketball-18,
|
||||
.feature-baseball-18,
|
||||
.feature-bar-18,
|
||||
.feature-bank-18,
|
||||
.feature-art-gallery-18,
|
||||
.feature-america-football-18,
|
||||
.feature-alcohol-shop-18,
|
||||
.feature-airport-18,
|
||||
.feature-airfield-18,
|
||||
.feature-zoo-12,
|
||||
.feature-x-12,
|
||||
.feature-wetland-12,
|
||||
.feature-water-12,
|
||||
.feature-waste-basket-12,
|
||||
.feature-warehouse-12,
|
||||
.feature-triangle-stroked-12,
|
||||
.feature-triangle-12,
|
||||
.feature-town-hall-12,
|
||||
.feature-toilets-12,
|
||||
.feature-theatre-12,
|
||||
.feature-tennis-12,
|
||||
.feature-swimming-12,
|
||||
.feature-star-stroked-12,
|
||||
.feature-star-12,
|
||||
.feature-square-stroked-12,
|
||||
.feature-square-12,
|
||||
.feature-soccer-12,
|
||||
.feature-slaughterhouse-12,
|
||||
.feature-skiing-12,
|
||||
.feature-shop-12,
|
||||
.feature-school-12,
|
||||
.feature-roadblock-12,
|
||||
.feature-restaurant-12,
|
||||
.feature-religious-muslim-12,
|
||||
.feature-religious-jewish-12,
|
||||
.feature-religious-christian-12,
|
||||
.feature-rail-underground-12,
|
||||
.feature-rail-above-12,
|
||||
.feature-rail-12,
|
||||
.feature-prison-12,
|
||||
.feature-post-12,
|
||||
.feature-police-12,
|
||||
.feature-place-of-worship-12,
|
||||
.feature-pitch-12,
|
||||
.feature-pharmacy-12,
|
||||
.feature-parking-garage-12,
|
||||
.feature-parking-12,
|
||||
.feature-park2-12,
|
||||
.feature-park-12,
|
||||
.feature-oil-well-12,
|
||||
.feature-museum-12,
|
||||
.feature-monument-12,
|
||||
.feature-minefield-12,
|
||||
.feature-marker-stroked-12,
|
||||
.feature-marker-12,
|
||||
.feature-london-underground-12,
|
||||
.feature-logging-12,
|
||||
.feature-lodging-12,
|
||||
.feature-library-12,
|
||||
.feature-industrial-12,
|
||||
.feature-hospital-12,
|
||||
.feature-heliport-12,
|
||||
.feature-harbor-12,
|
||||
.feature-grocery-12,
|
||||
.feature-golf-12,
|
||||
.feature-garden-12,
|
||||
.feature-fuel-12,
|
||||
.feature-fire-station-12,
|
||||
.feature-ferry-12,
|
||||
.feature-fast-food-12,
|
||||
.feature-embassy-12,
|
||||
.feature-danger-12,
|
||||
.feature-dam-12,
|
||||
.feature-cross-12,
|
||||
.feature-cricket-12,
|
||||
.feature-commercial-12,
|
||||
.feature-college-12,
|
||||
.feature-circle-stroked-12,
|
||||
.feature-circle-12,
|
||||
.feature-cinema-12,
|
||||
.feature-cemetery-12,
|
||||
.feature-campsite-12,
|
||||
.feature-cafe-12,
|
||||
.feature-bus-12,
|
||||
.feature-bicycle-12,
|
||||
.feature-beer-12,
|
||||
.feature-basketball-12,
|
||||
.feature-baseball-12,
|
||||
.feature-bar-12,
|
||||
.feature-bank-12,
|
||||
.feature-art-gallery-12,
|
||||
.feature-america-football-12,
|
||||
.feature-alcohol-shop-12,
|
||||
.feature-airport-12,
|
||||
.feature-airfield-12{background-image:url('../img/feature-icons.png');background-repeat:no-repeat}
|
||||
.feature-waterway-stream{background-position:0px 0px;width:60px;height:60px;}
|
||||
.feature-waterway-river{background-position:-60px 0px;width:60px;height:60px;}
|
||||
.feature-waterway-ditch{background-position:0px -60px;width:60px;height:60px;}
|
||||
.feature-waterway-canal{background-position:-60px -60px;width:60px;height:60px;}
|
||||
.feature-railway-subway{background-position:-120px 0px;width:60px;height:60px;}
|
||||
.feature-railway-rail{background-position:-120px -60px;width:60px;height:60px;}
|
||||
.feature-railway-monorail{background-position:0px -120px;width:60px;height:60px;}
|
||||
.feature-railway-light_rail{background-position:-60px -120px;width:60px;height:60px;}
|
||||
.feature-railway-disused{background-position:-120px -120px;width:60px;height:60px;}
|
||||
.feature-railway-abandoned{background-position:-180px 0px;width:60px;height:60px;}
|
||||
.feature-power-line{background-position:-180px -60px;width:60px;height:60px;}
|
||||
.feature-other-line{background-position:-180px -120px;width:60px;height:60px;}
|
||||
.feature-highway-unclassified{background-position:0px -180px;width:60px;height:60px;}
|
||||
.feature-highway-trunk{background-position:-60px -180px;width:60px;height:60px;}
|
||||
.feature-highway-trunk-link{background-position:-120px -180px;width:60px;height:60px;}
|
||||
.feature-highway-track{background-position:-180px -180px;width:60px;height:60px;}
|
||||
.feature-highway-tertiary{background-position:-240px 0px;width:60px;height:60px;}
|
||||
.feature-highway-tertiary-link{background-position:-240px -60px;width:60px;height:60px;}
|
||||
.feature-highway-steps{background-position:-240px -120px;width:60px;height:60px;}
|
||||
.feature-highway-service{background-position:-240px -180px;width:60px;height:60px;}
|
||||
.feature-highway-secondary{background-position:0px -240px;width:60px;height:60px;}
|
||||
.feature-highway-secondary-link{background-position:-60px -240px;width:60px;height:60px;}
|
||||
.feature-highway-road{background-position:-120px -240px;width:60px;height:60px;}
|
||||
.feature-highway-residential{background-position:-180px -240px;width:60px;height:60px;}
|
||||
.feature-highway-primary{background-position:-240px -240px;width:60px;height:60px;}
|
||||
.feature-highway-primary-link{background-position:-300px 0px;width:60px;height:60px;}
|
||||
.feature-highway-path{background-position:-300px -60px;width:60px;height:60px;}
|
||||
.feature-highway-motorway{background-position:-300px -120px;width:60px;height:60px;}
|
||||
.feature-highway-motorway-link{background-position:-300px -180px;width:60px;height:60px;}
|
||||
.feature-highway-living_street{background-position:-300px -240px;width:60px;height:60px;}
|
||||
.feature-highway-footway{background-position:0px -300px;width:60px;height:60px;}
|
||||
.feature-highway-cycleway{background-position:-60px -300px;width:60px;height:60px;}
|
||||
.feature-highway-bridleway{background-position:-120px -300px;width:60px;height:60px;}
|
||||
.feature-category-water{background-position:-180px -300px;width:60px;height:60px;}
|
||||
.feature-category-roads{background-position:-240px -300px;width:60px;height:60px;}
|
||||
.feature-category-rail{background-position:-300px -300px;width:60px;height:60px;}
|
||||
.feature-category-path{background-position:-360px 0px;width:60px;height:60px;}
|
||||
.feature-zoo{background-position:-360px -60px;width:24px;height:24px;}
|
||||
.feature-x{background-position:-384px -60px;width:24px;height:24px;}
|
||||
.feature-wetland{background-position:-360px -84px;width:24px;height:24px;}
|
||||
.feature-water{background-position:-384px -84px;width:24px;height:24px;}
|
||||
.feature-waste-basket{background-position:-360px -108px;width:24px;height:24px;}
|
||||
.feature-warehouse{background-position:-384px -108px;width:24px;height:24px;}
|
||||
.feature-triangle{background-position:-360px -132px;width:24px;height:24px;}
|
||||
.feature-triangle-stroked{background-position:-384px -132px;width:24px;height:24px;}
|
||||
.feature-town-hall{background-position:-360px -156px;width:24px;height:24px;}
|
||||
.feature-toilets{background-position:-384px -156px;width:24px;height:24px;}
|
||||
.feature-theatre{background-position:-360px -180px;width:24px;height:24px;}
|
||||
.feature-tennis{background-position:-384px -180px;width:24px;height:24px;}
|
||||
.feature-swimming{background-position:-360px -204px;width:24px;height:24px;}
|
||||
.feature-star{background-position:-384px -204px;width:24px;height:24px;}
|
||||
.feature-star-stroked{background-position:-360px -228px;width:24px;height:24px;}
|
||||
.feature-square{background-position:-384px -228px;width:24px;height:24px;}
|
||||
.feature-square-stroked{background-position:-360px -252px;width:24px;height:24px;}
|
||||
.feature-soccer{background-position:-384px -252px;width:24px;height:24px;}
|
||||
.feature-slaughterhouse{background-position:-360px -276px;width:24px;height:24px;}
|
||||
.feature-skiing{background-position:-384px -276px;width:24px;height:24px;}
|
||||
.feature-shop{background-position:-360px -300px;width:24px;height:24px;}
|
||||
.feature-school{background-position:-384px -300px;width:24px;height:24px;}
|
||||
.feature-roadblock{background-position:-360px -324px;width:24px;height:24px;}
|
||||
.feature-restaurant{background-position:-384px -324px;width:24px;height:24px;}
|
||||
.feature-religious-muslim{background-position:0px -360px;width:24px;height:24px;}
|
||||
.feature-religious-jewish{background-position:-24px -360px;width:24px;height:24px;}
|
||||
.feature-religious-christian{background-position:-48px -360px;width:24px;height:24px;}
|
||||
.feature-rail{background-position:-72px -360px;width:24px;height:24px;}
|
||||
.feature-rail-underground{background-position:-96px -360px;width:24px;height:24px;}
|
||||
.feature-rail-above{background-position:-120px -360px;width:24px;height:24px;}
|
||||
.feature-prison{background-position:-144px -360px;width:24px;height:24px;}
|
||||
.feature-post{background-position:-168px -360px;width:24px;height:24px;}
|
||||
.feature-police{background-position:-192px -360px;width:24px;height:24px;}
|
||||
.feature-place-of-worship{background-position:-216px -360px;width:24px;height:24px;}
|
||||
.feature-pitch{background-position:-240px -360px;width:24px;height:24px;}
|
||||
.feature-pharmacy{background-position:-264px -360px;width:24px;height:24px;}
|
||||
.feature-parking{background-position:-288px -360px;width:24px;height:24px;}
|
||||
.feature-parking-garage{background-position:-312px -360px;width:24px;height:24px;}
|
||||
.feature-park2{background-position:-336px -360px;width:24px;height:24px;}
|
||||
.feature-park{background-position:-360px -360px;width:24px;height:24px;}
|
||||
.feature-oil-well{background-position:-384px -360px;width:24px;height:24px;}
|
||||
.feature-museum{background-position:0px -384px;width:24px;height:24px;}
|
||||
.feature-monument{background-position:-24px -384px;width:24px;height:24px;}
|
||||
.feature-minefield{background-position:-48px -384px;width:24px;height:24px;}
|
||||
.feature-marker{background-position:-72px -384px;width:24px;height:24px;}
|
||||
.feature-marker-stroked{background-position:-96px -384px;width:24px;height:24px;}
|
||||
.feature-london-underground{background-position:-120px -384px;width:24px;height:24px;}
|
||||
.feature-logging{background-position:-144px -384px;width:24px;height:24px;}
|
||||
.feature-lodging{background-position:-168px -384px;width:24px;height:24px;}
|
||||
.feature-library{background-position:-192px -384px;width:24px;height:24px;}
|
||||
.feature-industrial{background-position:-216px -384px;width:24px;height:24px;}
|
||||
.feature-hospital{background-position:-240px -384px;width:24px;height:24px;}
|
||||
.feature-heliport{background-position:-264px -384px;width:24px;height:24px;}
|
||||
.feature-harbor{background-position:-288px -384px;width:24px;height:24px;}
|
||||
.feature-grocery{background-position:-312px -384px;width:24px;height:24px;}
|
||||
.feature-golf{background-position:-336px -384px;width:24px;height:24px;}
|
||||
.feature-garden{background-position:-360px -384px;width:24px;height:24px;}
|
||||
.feature-fuel{background-position:-384px -384px;width:24px;height:24px;}
|
||||
.feature-fire-station{background-position:-420px 0px;width:24px;height:24px;}
|
||||
.feature-ferry{background-position:-420px -24px;width:24px;height:24px;}
|
||||
.feature-fast-food{background-position:-420px -48px;width:24px;height:24px;}
|
||||
.feature-embassy{background-position:-420px -72px;width:24px;height:24px;}
|
||||
.feature-danger{background-position:-420px -96px;width:24px;height:24px;}
|
||||
.feature-dam{background-position:-420px -120px;width:24px;height:24px;}
|
||||
.feature-cross{background-position:-420px -144px;width:24px;height:24px;}
|
||||
.feature-cricket{background-position:-420px -168px;width:24px;height:24px;}
|
||||
.feature-commercial{background-position:-420px -192px;width:24px;height:24px;}
|
||||
.feature-college{background-position:-420px -216px;width:24px;height:24px;}
|
||||
.feature-circle{background-position:-420px -240px;width:24px;height:24px;}
|
||||
.feature-circle-stroked{background-position:-420px -264px;width:24px;height:24px;}
|
||||
.feature-cinema{background-position:-420px -288px;width:24px;height:24px;}
|
||||
.feature-cemetery{background-position:-420px -312px;width:24px;height:24px;}
|
||||
.feature-campsite{background-position:-420px -336px;width:24px;height:24px;}
|
||||
.feature-cafe{background-position:-420px -360px;width:24px;height:24px;}
|
||||
.feature-bus{background-position:-420px -384px;width:24px;height:24px;}
|
||||
.feature-bicycle{background-position:0px -408px;width:24px;height:24px;}
|
||||
.feature-beer{background-position:-24px -408px;width:24px;height:24px;}
|
||||
.feature-basketball{background-position:-48px -408px;width:24px;height:24px;}
|
||||
.feature-baseball{background-position:-72px -408px;width:24px;height:24px;}
|
||||
.feature-bar{background-position:-96px -408px;width:24px;height:24px;}
|
||||
.feature-bank{background-position:-120px -408px;width:24px;height:24px;}
|
||||
.feature-art-gallery{background-position:-144px -408px;width:24px;height:24px;}
|
||||
.feature-america-football{background-position:-168px -408px;width:24px;height:24px;}
|
||||
.feature-alcohol-shop{background-position:-192px -408px;width:24px;height:24px;}
|
||||
.feature-airport{background-position:-216px -408px;width:24px;height:24px;}
|
||||
.feature-airfield{background-position:-240px -408px;width:24px;height:24px;}
|
||||
.feature-zoo-18{background-position:-264px -408px;width:18px;height:18px;}
|
||||
.feature-x-18{background-position:-282px -408px;width:18px;height:18px;}
|
||||
.feature-wetland-18{background-position:-300px -408px;width:18px;height:18px;}
|
||||
.feature-water-18{background-position:-318px -408px;width:18px;height:18px;}
|
||||
.feature-waste-basket-18{background-position:-336px -408px;width:18px;height:18px;}
|
||||
.feature-warehouse-18{background-position:-354px -408px;width:18px;height:18px;}
|
||||
.feature-triangle-stroked-18{background-position:-372px -408px;width:18px;height:18px;}
|
||||
.feature-triangle-18{background-position:-390px -408px;width:18px;height:18px;}
|
||||
.feature-town-hall-18{background-position:-408px -408px;width:18px;height:18px;}
|
||||
.feature-toilets-18{background-position:-426px -408px;width:18px;height:18px;}
|
||||
.feature-theatre-18{background-position:-444px 0px;width:18px;height:18px;}
|
||||
.feature-tennis-18{background-position:-444px -18px;width:18px;height:18px;}
|
||||
.feature-swimming-18{background-position:-444px -36px;width:18px;height:18px;}
|
||||
.feature-star-stroked-18{background-position:-444px -54px;width:18px;height:18px;}
|
||||
.feature-star-18{background-position:-444px -72px;width:18px;height:18px;}
|
||||
.feature-square-stroked-18{background-position:-444px -90px;width:18px;height:18px;}
|
||||
.feature-square-18{background-position:-444px -108px;width:18px;height:18px;}
|
||||
.feature-soccer-18{background-position:-444px -126px;width:18px;height:18px;}
|
||||
.feature-slaughterhouse-18{background-position:-444px -144px;width:18px;height:18px;}
|
||||
.feature-skiing-18{background-position:-444px -162px;width:18px;height:18px;}
|
||||
.feature-shop-18{background-position:-444px -180px;width:18px;height:18px;}
|
||||
.feature-school-18{background-position:-444px -198px;width:18px;height:18px;}
|
||||
.feature-roadblock-18{background-position:-444px -216px;width:18px;height:18px;}
|
||||
.feature-restaurant-18{background-position:-444px -234px;width:18px;height:18px;}
|
||||
.feature-religious-muslim-18{background-position:-444px -252px;width:18px;height:18px;}
|
||||
.feature-religious-jewish-18{background-position:-444px -270px;width:18px;height:18px;}
|
||||
.feature-religious-christian-18{background-position:-444px -288px;width:18px;height:18px;}
|
||||
.feature-rail-underground-18{background-position:-444px -306px;width:18px;height:18px;}
|
||||
.feature-rail-above-18{background-position:-444px -324px;width:18px;height:18px;}
|
||||
.feature-rail-18{background-position:-444px -342px;width:18px;height:18px;}
|
||||
.feature-prison-18{background-position:-444px -360px;width:18px;height:18px;}
|
||||
.feature-post-18{background-position:-444px -378px;width:18px;height:18px;}
|
||||
.feature-police-18{background-position:-444px -396px;width:18px;height:18px;}
|
||||
.feature-place-of-worship-18{background-position:-444px -414px;width:18px;height:18px;}
|
||||
.feature-pitch-18{background-position:0px -432px;width:18px;height:18px;}
|
||||
.feature-pharmacy-18{background-position:-18px -432px;width:18px;height:18px;}
|
||||
.feature-parking-garage-18{background-position:-36px -432px;width:18px;height:18px;}
|
||||
.feature-parking-18{background-position:-54px -432px;width:18px;height:18px;}
|
||||
.feature-park2-18{background-position:-72px -432px;width:18px;height:18px;}
|
||||
.feature-park-18{background-position:-90px -432px;width:18px;height:18px;}
|
||||
.feature-oil-well-18{background-position:-108px -432px;width:18px;height:18px;}
|
||||
.feature-museum-18{background-position:-126px -432px;width:18px;height:18px;}
|
||||
.feature-monument-18{background-position:-144px -432px;width:18px;height:18px;}
|
||||
.feature-minefield-18{background-position:-162px -432px;width:18px;height:18px;}
|
||||
.feature-marker-stroked-18{background-position:-180px -432px;width:18px;height:18px;}
|
||||
.feature-marker-18{background-position:-198px -432px;width:18px;height:18px;}
|
||||
.feature-london-underground-18{background-position:-216px -432px;width:18px;height:18px;}
|
||||
.feature-logging-18{background-position:-234px -432px;width:18px;height:18px;}
|
||||
.feature-lodging-18{background-position:-252px -432px;width:18px;height:18px;}
|
||||
.feature-library-18{background-position:-270px -432px;width:18px;height:18px;}
|
||||
.feature-industrial-18{background-position:-288px -432px;width:18px;height:18px;}
|
||||
.feature-hospital-18{background-position:-306px -432px;width:18px;height:18px;}
|
||||
.feature-heliport-18{background-position:-324px -432px;width:18px;height:18px;}
|
||||
.feature-harbor-18{background-position:-342px -432px;width:18px;height:18px;}
|
||||
.feature-grocery-18{background-position:-360px -432px;width:18px;height:18px;}
|
||||
.feature-golf-18{background-position:-378px -432px;width:18px;height:18px;}
|
||||
.feature-garden-18{background-position:-396px -432px;width:18px;height:18px;}
|
||||
.feature-fuel-18{background-position:-414px -432px;width:18px;height:18px;}
|
||||
.feature-fire-station-18{background-position:-432px -432px;width:18px;height:18px;}
|
||||
.feature-ferry-18{background-position:-462px 0px;width:18px;height:18px;}
|
||||
.feature-fast-food-18{background-position:-462px -18px;width:18px;height:18px;}
|
||||
.feature-embassy-18{background-position:-462px -36px;width:18px;height:18px;}
|
||||
.feature-danger-18{background-position:-462px -54px;width:18px;height:18px;}
|
||||
.feature-dam-18{background-position:-462px -72px;width:18px;height:18px;}
|
||||
.feature-cross-18{background-position:-462px -90px;width:18px;height:18px;}
|
||||
.feature-cricket-18{background-position:-462px -108px;width:18px;height:18px;}
|
||||
.feature-commercial-18{background-position:-462px -126px;width:18px;height:18px;}
|
||||
.feature-college-18{background-position:-462px -144px;width:18px;height:18px;}
|
||||
.feature-circle-stroked-18{background-position:-462px -162px;width:18px;height:18px;}
|
||||
.feature-circle-18{background-position:-462px -180px;width:18px;height:18px;}
|
||||
.feature-cinema-18{background-position:-462px -198px;width:18px;height:18px;}
|
||||
.feature-cemetery-18{background-position:-462px -216px;width:18px;height:18px;}
|
||||
.feature-campsite-18{background-position:-462px -234px;width:18px;height:18px;}
|
||||
.feature-cafe-18{background-position:-462px -252px;width:18px;height:18px;}
|
||||
.feature-bus-18{background-position:-462px -270px;width:18px;height:18px;}
|
||||
.feature-bicycle-18{background-position:-462px -288px;width:18px;height:18px;}
|
||||
.feature-beer-18{background-position:-462px -306px;width:18px;height:18px;}
|
||||
.feature-basketball-18{background-position:-462px -324px;width:18px;height:18px;}
|
||||
.feature-baseball-18{background-position:-462px -342px;width:18px;height:18px;}
|
||||
.feature-bar-18{background-position:-462px -360px;width:18px;height:18px;}
|
||||
.feature-bank-18{background-position:-462px -378px;width:18px;height:18px;}
|
||||
.feature-art-gallery-18{background-position:-462px -396px;width:18px;height:18px;}
|
||||
.feature-america-football-18{background-position:-462px -414px;width:18px;height:18px;}
|
||||
.feature-alcohol-shop-18{background-position:-462px -432px;width:18px;height:18px;}
|
||||
.feature-airport-18{background-position:0px -450px;width:18px;height:18px;}
|
||||
.feature-airfield-18{background-position:-18px -450px;width:18px;height:18px;}
|
||||
.feature-zoo-12{background-position:-408px -60px;width:12px;height:12px;}
|
||||
.feature-x-12{background-position:-408px -72px;width:12px;height:12px;}
|
||||
.feature-wetland-12{background-position:-408px -84px;width:12px;height:12px;}
|
||||
.feature-water-12{background-position:-408px -96px;width:12px;height:12px;}
|
||||
.feature-waste-basket-12{background-position:-408px -108px;width:12px;height:12px;}
|
||||
.feature-warehouse-12{background-position:-408px -120px;width:12px;height:12px;}
|
||||
.feature-triangle-stroked-12{background-position:-408px -132px;width:12px;height:12px;}
|
||||
.feature-triangle-12{background-position:-408px -144px;width:12px;height:12px;}
|
||||
.feature-town-hall-12{background-position:-408px -156px;width:12px;height:12px;}
|
||||
.feature-toilets-12{background-position:-408px -168px;width:12px;height:12px;}
|
||||
.feature-theatre-12{background-position:-408px -180px;width:12px;height:12px;}
|
||||
.feature-tennis-12{background-position:-408px -192px;width:12px;height:12px;}
|
||||
.feature-swimming-12{background-position:-408px -204px;width:12px;height:12px;}
|
||||
.feature-star-stroked-12{background-position:-408px -216px;width:12px;height:12px;}
|
||||
.feature-star-12{background-position:-408px -228px;width:12px;height:12px;}
|
||||
.feature-square-stroked-12{background-position:-408px -240px;width:12px;height:12px;}
|
||||
.feature-square-12{background-position:-408px -252px;width:12px;height:12px;}
|
||||
.feature-soccer-12{background-position:-408px -264px;width:12px;height:12px;}
|
||||
.feature-slaughterhouse-12{background-position:-408px -276px;width:12px;height:12px;}
|
||||
.feature-skiing-12{background-position:-408px -288px;width:12px;height:12px;}
|
||||
.feature-shop-12{background-position:-408px -300px;width:12px;height:12px;}
|
||||
.feature-school-12{background-position:-408px -312px;width:12px;height:12px;}
|
||||
.feature-roadblock-12{background-position:-408px -324px;width:12px;height:12px;}
|
||||
.feature-restaurant-12{background-position:-408px -336px;width:12px;height:12px;}
|
||||
.feature-religious-muslim-12{background-position:-360px -348px;width:12px;height:12px;}
|
||||
.feature-religious-jewish-12{background-position:-372px -348px;width:12px;height:12px;}
|
||||
.feature-religious-christian-12{background-position:-384px -348px;width:12px;height:12px;}
|
||||
.feature-rail-underground-12{background-position:-396px -348px;width:12px;height:12px;}
|
||||
.feature-rail-above-12{background-position:-408px -348px;width:12px;height:12px;}
|
||||
.feature-rail-12{background-position:-408px -360px;width:12px;height:12px;}
|
||||
.feature-prison-12{background-position:-408px -372px;width:12px;height:12px;}
|
||||
.feature-post-12{background-position:-408px -384px;width:12px;height:12px;}
|
||||
.feature-police-12{background-position:-408px -396px;width:12px;height:12px;}
|
||||
.feature-place-of-worship-12{background-position:-450px -432px;width:12px;height:12px;}
|
||||
.feature-pitch-12{background-position:-36px -450px;width:12px;height:12px;}
|
||||
.feature-pharmacy-12{background-position:-48px -450px;width:12px;height:12px;}
|
||||
.feature-parking-garage-12{background-position:-60px -450px;width:12px;height:12px;}
|
||||
.feature-parking-12{background-position:-72px -450px;width:12px;height:12px;}
|
||||
.feature-park2-12{background-position:-84px -450px;width:12px;height:12px;}
|
||||
.feature-park-12{background-position:-96px -450px;width:12px;height:12px;}
|
||||
.feature-oil-well-12{background-position:-108px -450px;width:12px;height:12px;}
|
||||
.feature-museum-12{background-position:-120px -450px;width:12px;height:12px;}
|
||||
.feature-monument-12{background-position:-132px -450px;width:12px;height:12px;}
|
||||
.feature-minefield-12{background-position:-144px -450px;width:12px;height:12px;}
|
||||
.feature-marker-stroked-12{background-position:-156px -450px;width:12px;height:12px;}
|
||||
.feature-marker-12{background-position:-168px -450px;width:12px;height:12px;}
|
||||
.feature-london-underground-12{background-position:-180px -450px;width:12px;height:12px;}
|
||||
.feature-logging-12{background-position:-192px -450px;width:12px;height:12px;}
|
||||
.feature-lodging-12{background-position:-204px -450px;width:12px;height:12px;}
|
||||
.feature-library-12{background-position:-216px -450px;width:12px;height:12px;}
|
||||
.feature-industrial-12{background-position:-228px -450px;width:12px;height:12px;}
|
||||
.feature-hospital-12{background-position:-240px -450px;width:12px;height:12px;}
|
||||
.feature-heliport-12{background-position:-252px -450px;width:12px;height:12px;}
|
||||
.feature-harbor-12{background-position:-264px -450px;width:12px;height:12px;}
|
||||
.feature-grocery-12{background-position:-276px -450px;width:12px;height:12px;}
|
||||
.feature-golf-12{background-position:-288px -450px;width:12px;height:12px;}
|
||||
.feature-garden-12{background-position:-300px -450px;width:12px;height:12px;}
|
||||
.feature-fuel-12{background-position:-312px -450px;width:12px;height:12px;}
|
||||
.feature-fire-station-12{background-position:-324px -450px;width:12px;height:12px;}
|
||||
.feature-ferry-12{background-position:-336px -450px;width:12px;height:12px;}
|
||||
.feature-fast-food-12{background-position:-348px -450px;width:12px;height:12px;}
|
||||
.feature-embassy-12{background-position:-360px -450px;width:12px;height:12px;}
|
||||
.feature-danger-12{background-position:-372px -450px;width:12px;height:12px;}
|
||||
.feature-dam-12{background-position:-384px -450px;width:12px;height:12px;}
|
||||
.feature-cross-12{background-position:-396px -450px;width:12px;height:12px;}
|
||||
.feature-cricket-12{background-position:-408px -450px;width:12px;height:12px;}
|
||||
.feature-commercial-12{background-position:-420px -450px;width:12px;height:12px;}
|
||||
.feature-college-12{background-position:-432px -450px;width:12px;height:12px;}
|
||||
.feature-circle-stroked-12{background-position:-444px -450px;width:12px;height:12px;}
|
||||
.feature-circle-12{background-position:-456px -450px;width:12px;height:12px;}
|
||||
.feature-cinema-12{background-position:-468px -450px;width:12px;height:12px;}
|
||||
.feature-cemetery-12{background-position:0px -468px;width:12px;height:12px;}
|
||||
.feature-campsite-12{background-position:-12px -468px;width:12px;height:12px;}
|
||||
.feature-cafe-12{background-position:-24px -468px;width:12px;height:12px;}
|
||||
.feature-bus-12{background-position:-36px -468px;width:12px;height:12px;}
|
||||
.feature-bicycle-12{background-position:-48px -468px;width:12px;height:12px;}
|
||||
.feature-beer-12{background-position:-60px -468px;width:12px;height:12px;}
|
||||
.feature-basketball-12{background-position:-72px -468px;width:12px;height:12px;}
|
||||
.feature-baseball-12{background-position:-84px -468px;width:12px;height:12px;}
|
||||
.feature-bar-12{background-position:-96px -468px;width:12px;height:12px;}
|
||||
.feature-bank-12{background-position:-108px -468px;width:12px;height:12px;}
|
||||
.feature-art-gallery-12{background-position:-120px -468px;width:12px;height:12px;}
|
||||
.feature-america-football-12{background-position:-132px -468px;width:12px;height:12px;}
|
||||
.feature-alcohol-shop-12{background-position:-144px -468px;width:12px;height:12px;}
|
||||
.feature-airport-12{background-position:-156px -468px;width:12px;height:12px;}
|
||||
.feature-airfield-12{background-position:-168px -468px;width:12px;height:12px;}
|
||||
@@ -0,0 +1,91 @@
|
||||
/* This file is generated by make. Do NOT edit manually. */
|
||||
|
||||
.maki-icon{background-image:url('../img/maki-sprite.png');background-repeat:no-repeat;}
|
||||
.maki-airfield{background-position:-0px -34px;width:24px;height:24px;}
|
||||
.maki-airport{background-position:-0px -94px;width:24px;height:24px;}
|
||||
.maki-alcohol-shop{background-position:-0px -154px;width:24px;height:24px;}
|
||||
.maki-america-football{background-position:-0px -214px;width:24px;height:24px;}
|
||||
.maki-art-gallery{background-position:-0px -274px;width:24px;height:24px;}
|
||||
.maki-bank{background-position:-0px -334px;width:24px;height:24px;}
|
||||
.maki-bar{background-position:-0px -394px;width:24px;height:24px;}
|
||||
.maki-baseball{background-position:-0px -454px;width:24px;height:24px;}
|
||||
.maki-basketball{background-position:-0px -514px;width:24px;height:24px;}
|
||||
.maki-beer{background-position:-0px -574px;width:24px;height:24px;}
|
||||
.maki-bicycle{background-position:-0px -634px;width:24px;height:24px;}
|
||||
.maki-building{background-position:-0px -694px;width:24px;height:24px;}
|
||||
.maki-bus{background-position:-0px -754px;width:24px;height:24px;}
|
||||
.maki-cafe{background-position:-0px -814px;width:24px;height:24px;}
|
||||
.maki-campsite{background-position:-0px -874px;width:24px;height:24px;}
|
||||
.maki-cemetery{background-position:-0px -934px;width:24px;height:24px;}
|
||||
.maki-cinema{background-position:-0px -994px;width:24px;height:24px;}
|
||||
.maki-circle{background-position:-0px -1054px;width:24px;height:24px;}
|
||||
.maki-circle-stroked{background-position:-0px -1114px;width:24px;height:24px;}
|
||||
.maki-college{background-position:-0px -1174px;width:24px;height:24px;}
|
||||
.maki-commercial{background-position:-0px -1234px;width:24px;height:24px;}
|
||||
.maki-cricket{background-position:-0px -1294px;width:24px;height:24px;}
|
||||
.maki-cross{background-position:-0px -1354px;width:24px;height:24px;}
|
||||
.maki-dam{background-position:-0px -1414px;width:24px;height:24px;}
|
||||
.maki-danger{background-position:-0px -1474px;width:24px;height:24px;}
|
||||
.maki-disability{background-position:-0px -1534px;width:24px;height:24px;}
|
||||
.maki-embassy{background-position:-0px -1594px;width:24px;height:24px;}
|
||||
.maki-emergency-telephone{background-position:-0px -1654px;width:24px;height:24px;}
|
||||
.maki-fast-food{background-position:-0px -1714px;width:24px;height:24px;}
|
||||
.maki-ferry{background-position:-0px -1774px;width:24px;height:24px;}
|
||||
.maki-fire-station{background-position:-0px -1834px;width:24px;height:24px;}
|
||||
.maki-fuel{background-position:-0px -1894px;width:24px;height:24px;}
|
||||
.maki-garden{background-position:-0px -1954px;width:24px;height:24px;}
|
||||
.maki-golf{background-position:-0px -2014px;width:24px;height:24px;}
|
||||
.maki-grocery{background-position:-0px -2074px;width:24px;height:24px;}
|
||||
.maki-harbor{background-position:-0px -2134px;width:24px;height:24px;}
|
||||
.maki-heliport{background-position:-0px -2194px;width:24px;height:24px;}
|
||||
.maki-hospital{background-position:-0px -2254px;width:24px;height:24px;}
|
||||
.maki-industrial{background-position:-0px -2314px;width:24px;height:24px;}
|
||||
.maki-library{background-position:-0px -2374px;width:24px;height:24px;}
|
||||
.maki-lodging{background-position:-0px -2434px;width:24px;height:24px;}
|
||||
.maki-logging{background-position:-0px -2494px;width:24px;height:24px;}
|
||||
.maki-marker{background-position:-0px -2554px;width:24px;height:24px;}
|
||||
.maki-marker-stroked{background-position:-0px -2614px;width:24px;height:24px;}
|
||||
.maki-monument{background-position:-0px -2674px;width:24px;height:24px;}
|
||||
.maki-museum{background-position:-0px -2734px;width:24px;height:24px;}
|
||||
.maki-music{background-position:-0px -2794px;width:24px;height:24px;}
|
||||
.maki-oil-well{background-position:-0px -2854px;width:24px;height:24px;}
|
||||
.maki-park{background-position:-0px -2914px;width:24px;height:24px;}
|
||||
.maki-park2{background-position:-0px -2974px;width:24px;height:24px;}
|
||||
.maki-parking{background-position:-0px -3034px;width:24px;height:24px;}
|
||||
.maki-parking-garage{background-position:-0px -3094px;width:24px;height:24px;}
|
||||
.maki-pharmacy{background-position:-0px -3154px;width:24px;height:24px;}
|
||||
.maki-pitch{background-position:-0px -3214px;width:24px;height:24px;}
|
||||
.maki-place-of-worship{background-position:-0px -3274px;width:24px;height:24px;}
|
||||
.maki-police{background-position:-0px -3334px;width:24px;height:24px;}
|
||||
.maki-post{background-position:-0px -3394px;width:24px;height:24px;}
|
||||
.maki-prison{background-position:-0px -3454px;width:24px;height:24px;}
|
||||
.maki-rail{background-position:-0px -3514px;width:24px;height:24px;}
|
||||
.maki-rail-above{background-position:-0px -3574px;width:24px;height:24px;}
|
||||
.maki-rail-underground{background-position:-0px -3634px;width:24px;height:24px;}
|
||||
.maki-religious-christian{background-position:-0px -3694px;width:24px;height:24px;}
|
||||
.maki-religious-jewish{background-position:-0px -3754px;width:24px;height:24px;}
|
||||
.maki-religious-muslim{background-position:-0px -3814px;width:24px;height:24px;}
|
||||
.maki-restaurant{background-position:-0px -3874px;width:24px;height:24px;}
|
||||
.maki-roadblock{background-position:-0px -3934px;width:24px;height:24px;}
|
||||
.maki-school{background-position:-0px -3994px;width:24px;height:24px;}
|
||||
.maki-shop{background-position:-0px -4054px;width:24px;height:24px;}
|
||||
.maki-skiing{background-position:-0px -4114px;width:24px;height:24px;}
|
||||
.maki-slaughterhouse{background-position:-0px -4174px;width:24px;height:24px;}
|
||||
.maki-soccer{background-position:-0px -4234px;width:24px;height:24px;}
|
||||
.maki-square{background-position:-0px -4294px;width:24px;height:24px;}
|
||||
.maki-square-stroked{background-position:-0px -4354px;width:24px;height:24px;}
|
||||
.maki-star{background-position:-0px -4414px;width:24px;height:24px;}
|
||||
.maki-star-stroked{background-position:-0px -4474px;width:24px;height:24px;}
|
||||
.maki-swimming{background-position:-0px -4534px;width:24px;height:24px;}
|
||||
.maki-telephone{background-position:-0px -4594px;width:24px;height:24px;}
|
||||
.maki-tennis{background-position:-0px -4654px;width:24px;height:24px;}
|
||||
.maki-theatre{background-position:-0px -4714px;width:24px;height:24px;}
|
||||
.maki-toilets{background-position:-0px -4774px;width:24px;height:24px;}
|
||||
.maki-town-hall{background-position:-0px -4834px;width:24px;height:24px;}
|
||||
.maki-triangle{background-position:-0px -4894px;width:24px;height:24px;}
|
||||
.maki-triangle-stroked{background-position:-0px -4954px;width:24px;height:24px;}
|
||||
.maki-warehouse{background-position:-0px -5014px;width:24px;height:24px;}
|
||||
.maki-waste-basket{background-position:-0px -5074px;width:24px;height:24px;}
|
||||
.maki-water{background-position:-0px -5134px;width:24px;height:24px;}
|
||||
.maki-wetland{background-position:-0px -5194px;width:24px;height:24px;}
|
||||
.maki-zoo{background-position:-0px -5254px;width:24px;height:24px;}
|
||||
+4
-2
@@ -14,7 +14,8 @@ iD.data = {
|
||||
path + 'data/presets/defaults.json',
|
||||
path + 'data/presets/categories.json',
|
||||
path + 'data/presets/fields.json',
|
||||
path + 'data/imperial.json'
|
||||
path + 'data/imperial.json',
|
||||
path + 'data/maki-sprite.json'
|
||||
], d3.json, function (err, data) {
|
||||
|
||||
iD.data = {
|
||||
@@ -29,7 +30,8 @@ iD.data = {
|
||||
categories: data[7],
|
||||
fields: data[8]
|
||||
},
|
||||
imperial: data[9]
|
||||
imperial: data[9],
|
||||
maki: data[10]
|
||||
};
|
||||
|
||||
callback();
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 65 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 53 KiB |
+1
-1
@@ -6,8 +6,8 @@
|
||||
<link rel='stylesheet' href='css/reset.css'>
|
||||
<link rel='stylesheet' href='css/map.css'>
|
||||
<link rel='stylesheet' href='css/app.css'>
|
||||
<link rel='stylesheet' href='css/feature-icons.css'>
|
||||
<link rel='stylesheet' href='css/line-presets.css'>
|
||||
<link rel='stylesheet' href='css/maki-sprite.css'>
|
||||
|
||||
<!-- mobile devices -->
|
||||
<meta name='viewport' content='initial-scale=1.0 maximum-scale=1.0'>
|
||||
|
||||
@@ -18,7 +18,7 @@ iD.svg.Surface = function(context) {
|
||||
var klass = rule.selectorText,
|
||||
match = klass && klass.match(selectorRegexp);
|
||||
if (match) {
|
||||
var id = match[1].replace('feature', 'maki');
|
||||
var id = match[1];
|
||||
match = rule.style.backgroundPosition.match(/(-?\d+)px (-?\d+)px/);
|
||||
sprites.push({id: id, x: match[1], y: match[2]});
|
||||
}
|
||||
@@ -105,14 +105,14 @@ iD.svg.Surface = function(context) {
|
||||
|
||||
defs.append('image')
|
||||
.attr('id', 'maki-sprite')
|
||||
.attr('xlink:href', context.imagePath('feature-icons.png'))
|
||||
.attr('xlink:href', context.imagePath('maki-sprite.png'))
|
||||
.call(autosize);
|
||||
|
||||
defs.selectAll()
|
||||
.data(sprites(/^\.(feature-[a-z0-9-]+-(12|18))$/))
|
||||
.data(iD.data.maki.images)
|
||||
.enter().append('use')
|
||||
.attr('id', function(d) { return d.id; })
|
||||
.attr('transform', function(d) { return "translate(" + d.x + "," + d.y + ")"; })
|
||||
.attr('id', function(d) { return 'maki-' + d.name; })
|
||||
.attr('transform', function(d) { return "translate(-" + d.positionX + ",-" + d.positionY + ")"; })
|
||||
.attr('xlink:href', '#maki-sprite');
|
||||
|
||||
var layers = selection.selectAll('.layer')
|
||||
|
||||
@@ -13,7 +13,7 @@ iD.ui.PresetIcon = function(geometry) {
|
||||
|
||||
selection.append('div')
|
||||
.attr('class', function(preset) {
|
||||
return (geometry === 'line' ? 'preset-line-icon ' : 'feature-') +
|
||||
return (geometry === 'line' ? 'preset-line-icon ' : 'maki-icon maki-') +
|
||||
(preset.icon || fallbackIcon) +
|
||||
' preset-icon preset-icon-' + geometry;
|
||||
});
|
||||
|
||||
+3
-1
@@ -23,6 +23,7 @@
|
||||
"d3": "3",
|
||||
"smash": "0.0",
|
||||
"uglify-js": "~2.2.5",
|
||||
"maki": "git://github.com/mapbox/maki.git#0001ab8a8a03e2517fab0f76f44422dd08f6faa3",
|
||||
"mocha": "~1.9",
|
||||
"mocha-phantomjs": "~1.1.1",
|
||||
"chai": "~1.4",
|
||||
@@ -32,7 +33,8 @@
|
||||
"glob": "~3.1.21",
|
||||
"js-yaml": "~2.0.3",
|
||||
"request": "~2.16.2",
|
||||
"jsonschema": "~0.3.2"
|
||||
"jsonschema": "~0.3.2",
|
||||
"node-sprite": "~0.1.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z `which glue` ]] ; then
|
||||
echo "You need to install glue."
|
||||
echo "http://glue.readthedocs.org/en/latest/installation.html"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
MAKIPATH=$1
|
||||
|
||||
if [[ -z $MAKIPATH ]]; then
|
||||
echo "Usage: makesprite PATHTOMAKI"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
dir=$(dirname $0)
|
||||
img="$dir/.."
|
||||
css="$dir/../../css"
|
||||
|
||||
cd $dir
|
||||
mkdir feature-icons
|
||||
|
||||
cp $MAKIPATH/renders/*-24.png feature-icons
|
||||
for x in feature-icons/*.png; do
|
||||
mv $x `echo $x | sed "s/-24//"`
|
||||
done
|
||||
cp $MAKIPATH/renders/*-{12,18}.png feature-icons
|
||||
|
||||
## Export pngs from line-preset svg
|
||||
grep --only-matching "id=\"\(highway\|waterway\|railway\|power\|other\|category\)[^\"]*" line-presets.svg | while read line; do
|
||||
id=`echo $line | sed 's/id="//'`
|
||||
inkscape --export-id=$id --export-png=feature-icons/$id.png line-presets.svg
|
||||
done
|
||||
|
||||
glue --namespace=feature --sprite-namespace= feature-icons --css=$css --img=$img
|
||||
|
||||
rm feature-icons/*
|
||||
rmdir feature-icons
|
||||
Reference in New Issue
Block a user