Skip to content

Commit

Permalink
add some notes, disable the inoperative sprite_default with note
Browse files Browse the repository at this point in the history
  • Loading branch information
nvkelso committed Dec 2, 2018
1 parent c51f09b commit 18d965c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion walkabout-style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2108,6 +2108,8 @@ layers:
mapzen_icon_library:
visible: false
# this is kinda a hack
# FYI: This happens to "win" in style resolution because it's a-z sorted
# don't rename the layer or it'll fail
width_longggggg:
filter: |
function() {
Expand All @@ -2121,6 +2123,12 @@ layers:
mapzen_icon_library:
visible: false

#
# Now for the good stuff
#
# JK: see the theme files for USA and international shields

# FYI: When the USA shields theme is imported it replaces this layer with a richer set of textures
shields-usa:
filter:
all:
Expand All @@ -2131,7 +2139,7 @@ layers:
#texture: mapzen_icon_library_shields_usa
# you need to match any custom shield to the vector tile `network` values
sprite: function() { return (feature.network + '-' + feature.shield_text.length + 'char'); }
sprite_default: function() { return ('generic_shield-' + feature.shield_text.length + 'char'); }
# FYI: sprite_default doesn't support functions, default is carried by parent style's sprite function

# US Interstate roads
US-I:
Expand Down

0 comments on commit 18d965c

Please sign in to comment.