Created
February 12, 2017 07:36
-
-
Save tallytalwar/1b3b26feadbf9cd8c56f242dc01e75e3 to your computer and use it in GitHub Desktop.
Scene file to render State Assembly Constituencies of Haryana State
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author @patriciogv - 2015 | |
global: | |
text_stroke: [0,0,0,.0] | |
line_param: | |
color: green | |
width: [[14,2px],[16,4px],[17,5px],[18,6px],[19,9px],[20,11px]] | |
order: 401 | |
haryana_ac_name: | | |
function() { | |
return feature["AC_NAME"]; | |
} | |
import: | |
- https://tangrams.github.io/blocks/global.yaml | |
- https://tangrams.github.io/blocks/filter/height.yaml | |
- https://tangrams.github.io/blocks/space/constant.yaml | |
- https://s3.amazonaws.com/mapzen-assets/images/languages-of-india/refill-fader.yaml | |
# - https://mapzen.com/carto/refill-style-no-labels/refill-style-no-labels.yaml | |
sources: | |
osm: | |
type: TopoJSON | |
url: https://tile.mapzen.com/mapzen/vector/v1/all/{z}/{x}/{y}.topojson | |
max_zoom: 16 | |
haryana: | |
type: GeoJSON | |
url: https://gist.githubusercontent.com/tallytalwar/f1850cb1ccce8a7f5fe0db7bb80e247c/raw/1d6c818884bd293c87d204f45129d4f50e034b5f/Haryana_AC.geojson | |
generate_label_centroids: true | |
cameras: | |
cam: | |
type: perspective | |
# vanishing_point: [0, -500] | |
lights: | |
dir: | |
type: directional | |
direction: [.1, .5, -1] | |
diffuse: .7 | |
ambient: .5 | |
layers: | |
# override color of Refill place labels | |
labels: | |
data: { source: mapzen} | |
draw: | |
text: | |
font: | |
fill: grey | |
places: # fade out towndots | |
data: { source: mapzen, layer: places} | |
draw: | |
icons: | |
color: | |
[1,1,1,0.4] | |
pois_and_landuse_labels: | |
visible: false | |
data: { source: mapzen, layer: [pois,landuse]} | |
draw: | |
icons: | |
color: | |
[1,1,1,0.4] | |
roads: # hide roads | |
data: { source: mapzen, layer: roads } | |
visible: false | |
haryana: | |
data: { source: haryana} | |
draw: | |
lines: | |
global.line_param | |
labels: | |
filter: { label_placement: true, $zoom: {min: 7} } | |
draw: | |
text-overlay: | |
text_source: global.haryana_ac_name | |
font: | |
family: Helvetica | |
fill: orangered | |
size: [[8,9px],[16,60px]] | |
stroke: | |
color: white | |
width: 3 | |
styles: | |
text_overlay: | |
base: text | |
blend: overlay | |
blend_order: 100 | |
text-overlay: | |
base: text | |
blend: overlay | |
blend_order: 100 | |
# dashed: | |
# base: lines | |
# dash: [4, 4] | |
# dash_background_color: '#666' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment