Skip to content

Instantly share code, notes, and snippets.

@burritojustice
Last active May 16, 2018 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burritojustice/758b6fd3ce5ecafdf3f31a4737df10be to your computer and use it in GitHub Desktop.
Save burritojustice/758b6fd3ce5ecafdf3f31a4737df10be to your computer and use it in GitHub Desktop.
NZ map
import:
- https://www.nextzen.org/carto/refill-style/refill-style.zip
# - https://www.nextzen.org/carto/refill-style/11/themes/color-inverted.zip
# - https://www.nextzen.org/carto/refill-style/themes/color-gray-gold.zip
- https://gist.githubusercontent.com/burritojustice/12e5f901fd1f48318ad9b1aded1bb2b3/raw/demo.yaml
- https://www.nextzen.org/carto/refill-style/11/themes/label-11.zip
- https://www.nextzen.org/carto/refill-style/11/themes/detail-11.zip
# - https://www.nextzen.org/carto/refill-style/themes/terrain-shading.zip
- https://www.nextzen.org/carto/refill-style/11/themes/terrain-shading-dark.zip
# - https://www.nextzen.org/carto/refill-style/themes/terrain-pattern.zip
# - https://www.nextzen.org/carto/refill-style/themes/terrain-pattern-dark.zip
sources:
_rangitikei:
url: https://gist.githubusercontent.com/burritojustice/758b6fd3ce5ecafdf3f31a4737df10be/raw/rangitikei.geojson
# url: https://data.whosonfirst.org/102/079/301/102079301.geojson
type: GeoJSON
generate_label_centroids: true
_ouroa:
url: https://gist.githubusercontent.com/burritojustice/758b6fd3ce5ecafdf3f31a4737df10be/raw/ourua.geojson
# url: https://data.whosonfirst.org/112/604/898/3/1126048983.geojson
type: GeoJSON
styles:
_points:
base: points
blend: overlay
blend_order: 10
_text:
base: text
blend: overlay
blend_order: 11
_lines:
base: lines
blend: overlay
blend_order: 11
layers:
_ourua:
data: {source: _ouroa}
draw:
# _points:
# collide: false
# color: red
# outline:
# color: '#333'
# width: 2.5px
# size: 20px
# _text:
# text_source: "wof:name"
# collide: false
# # anchor: top
# font:
# style: bold
# # size: 12px
# fill: red
# stroke:
# color: white
# width: 2.5px
label:
draw:
text:
text_source: "wof:name"
font:
style: bold
fill: red
stroke:
color: white
width: 3px
_rangitikei:
data: {source: _rangitikei}
labels:
filter: { label_placement: true }
draw:
text:
optional: false
# collide: false
text_source: "name:eng_x_variant"
font:
style: bold
fill: red
stroke:
color: white
width: 3px
# draw:
# lines:
# color: red
# width: 2px
# order: 2000
places:
filter: {name: [Auckland, Wellington, Napier, Wanganui, Ourua Downs]}
populated-places:
# _text_early:
draw:
text:
font:
style: bold
fill: red
stroke:
color: white
width: 3px
import:
- https://www.nextzen.org/carto/refill-style/refill-style.zip
# - https://www.nextzen.org/carto/refill-style/11/themes/color-inverted.zip
# - https://www.nextzen.org/carto/refill-style/themes/color-gray-gold.zip
- https://gist.githubusercontent.com/burritojustice/12e5f901fd1f48318ad9b1aded1bb2b3/raw/demo.yaml
- https://www.nextzen.org/carto/refill-style/11/themes/label-11.zip
- https://www.nextzen.org/carto/refill-style/11/themes/detail-11.zip
# - https://www.nextzen.org/carto/refill-style/themes/terrain-shading.zip
- https://www.nextzen.org/carto/refill-style/11/themes/terrain-shading-dark.zip
# - https://www.nextzen.org/carto/refill-style/themes/terrain-pattern.zip
# - https://www.nextzen.org/carto/refill-style/themes/terrain-pattern-dark.zip
sources:
_rangitikei:
url: https://gist.githubusercontent.com/burritojustice/758b6fd3ce5ecafdf3f31a4737df10be/raw/rangitikei.geojson
# url: https://data.whosonfirst.org/102/079/301/102079301.geojson
type: GeoJSON
generate_label_centroids: true
_ouroa:
url: https://gist.githubusercontent.com/burritojustice/758b6fd3ce5ecafdf3f31a4737df10be/raw/ourua.geojson
# url: https://data.whosonfirst.org/112/604/898/3/1126048983.geojson
type: GeoJSON
styles:
_points:
base: points
blend: overlay
blend_order: 10
_text:
base: text
blend: overlay
blend_order: 11
_lines:
base: lines
blend: overlay
blend_order: 11
layers:
roads:
enabled: false
pois:
enabled: false
buildings:
enabled: false
landuse:
enabled: false
_ourua:
data: {source: _ouroa}
draw:
# _points:
# collide: false
# color: red
# outline:
# color: '#333'
# width: 2.5px
# size: 20px
# _text:
# text_source: "wof:name"
# collide: false
# # anchor: top
# font:
# style: bold
# # size: 12px
# fill: red
# stroke:
# color: white
# width: 2.5px
label:
draw:
text:
text_source: "wof:name"
font:
style: bold
fill: red
stroke:
color: white
width: 3px
_rangitikei:
data: {source: _rangitikei}
labels:
filter: { label_placement: true }
draw:
text:
optional: false
# collide: false
text_source: "name:eng_x_variant"
font:
style: bold
fill: red
stroke:
color: white
width: 3px
# draw:
# lines:
# color: red
# width: 2px
# order: 2000
places:
filter: {name: [Auckland, Wellington, Napier, Wanganui, Ourua Downs]}
populated-places:
# _text_early:
draw:
text:
font:
style: bold
fill: red
stroke:
color: white
width: 3px
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment