Skip to content

Commit

Permalink
Merge pull request #178 from tangrams/nvkelso/mz_default_point-line-p…
Browse files Browse the repository at this point in the history
…olygon

add default point, line, and polygon overlays for SDK
  • Loading branch information
nvkelso committed Apr 18, 2016
2 parents fdf843a + e91edc9 commit 01b4447
Showing 1 changed file with 58 additions and 1 deletion.
59 changes: 58 additions & 1 deletion bubble-wrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ sources:

# Only enable this for local debug, should not be enabled for prod (app inserts these at runtime)
# These are all in San Francisco, California

#
# Current location gem
# mz_current_location:
# type: GeoJSON
Expand Down Expand Up @@ -417,6 +417,18 @@ sources:
# mz_search_result:
# type: GeoJSON
# url: https://gist.githubusercontent.com/anonymous/57dc09eeb120919f76de/raw/43426217da3c2bae0522dc4257aaa61e4df3981e/map.geojson
# Default point styling (SDK)
# mz_default_point:
# type: GeoJSON
# url: https://gist.githubusercontent.com/anonymous/16324c771edfce45be0721390389b878/raw/7dbaebf17da7da8562e6c6f8768bc8cff83efa88/map.geojson
# # Default line styling (SDK)
# mz_default_line:
# type: GeoJSON
# url: https://gist.githubusercontent.com/anonymous/26f4e8b6b34b2617b5d5533d89decb39/raw/df8e180ab4f7f19448014dccc4a755f7cfa20003/map.geojson
# # Default polygon styling (SDK)
# mz_default_polygon:
# type: GeoJSON
# url: https://gist.githubusercontent.com/anonymous/88235c795bb44b8c45150bdd5561f947/raw/71d4fab97b6513833bf1a589167119e6169ef86d/map.geojson

cameras:
isometric:
Expand Down Expand Up @@ -761,6 +773,20 @@ styles:
interactive: true
blend: overlay
blend_order: 3
sdk-point-overlay:
base: points
texture: pois
interactive: true
blend: overlay
blend_order: 3
sdk-line-overlay:
base: lines
blend: overlay
blend_order: 0
sdk-polygon-overlay:
base: polygons
blend: overlay
blend_order: 0

scene:
background:
Expand Down Expand Up @@ -852,6 +878,37 @@ layers:
transition:
[show, hide]:
time: 0s

# Used by the SDK to place point, line, and polygon overlays on the map
mz_default_point:
data: { source: mz_default_point }
draw:
sdk-point-overlay:
interactive: true
sprite: search-active
size: [36px,54px]
collide: false
anchor: top
transition:
[show, hide]:
time: 0s
mz_default_line:
data: { source: mz_default_line }
draw:
sdk-line-overlay:
color: '#06a6d4'
order: 503
width: 3px
mz_default_polygon:
data: { source: mz_default_polygon }
draw:
sdk-polygon-overlay:
color: [0.02,0.65,0.82,0.5] #'#06b1e2'
order: 501
sdk-line-overlay:
color: '#06a6d4'
order: 502
width: 0px

# Basemap styling
earth:
Expand Down

0 comments on commit 01b4447

Please sign in to comment.