Updated bubble-wrap scene file to use bckgrnd color as the earch color and remove... 14/92014/1
authorVarun <tallytalwar@gmail.com>
Tue, 11 Oct 2016 18:44:59 +0000 (14:44 -0400)
committerVarun <tallytalwar@gmail.com>
Wed, 12 Oct 2016 13:56:18 +0000 (09:56 -0400)
Improves some rendering performance

Change-Id: Id10935006cc45aeded629cb4642ab139fd15f288

scenes/bubble-wrap/bubble-wrap.yaml

index 9f1f806..7845653 100644 (file)
@@ -288,12 +288,11 @@ global:
     fence: [0.827,0.808,0.780]
     #
     #landuse
-    scene1: '#eee'                          # map background, water
     water1: [0.83, 0.83, 0.83]              # water
     water2: [.75,.75,.75]                   # playa
     water1_o: '#9dc3de'                     # water stroke
     water2_o: '#9dc3de'                     # water stroke 2
-    earth1: '#666'                          # land color
+    earth1: [0.870,0.870,0.870]             # land color, used to set scene background color
     earth1_r: '#666'                        # land color road
     earth2: '#e9e4e0'                       # urban
     earth2_v: false                         # urban
@@ -536,13 +535,11 @@ textures:
 
 sources:
     mapzen:
-        # EraserMaps the app only supports MVT format tiles
-        type:  MVT #TopoJSONTiles topojson
-        #url:  http://vector.dev.mapzen.com/osm/all/{z}/{x}/{y}.mvt
-        #enforce_winding: true  #because Tangram v0.4 and tiles v0.5-pre don't play nice
-        #url:  //localhost:8080/osm/all/{z}/{x}/{y}.mvt
-        url:  https://vector.mapzen.com/osm/all/{z}/{x}/{y}.mvt?api_key=vector-tiles-P6dkVl4
-        # road labels in Tangram JS are broken when overzooming, set max_zoom: 18 to preview fix
+        type: MVT
+        url: https://vector.mapzen.com/osm/all/{z}/{x}/{y}.mvt
+        # url: http://vector.dev.mapzen.com/osm/all/{z}/{x}/{y}.mvt
+        url_params:
+            api_key: vector-tiles-P6dkVl4
         max_zoom: 16
 
 #    # Only enable this for local debug, should not be enabled for prod (app inserts these at runtime)
@@ -959,7 +956,7 @@ styles:
 
 scene:
     background:
-        color: global.scene1
+        color: global.earth1
 
 layers:
     # Map overlays for styling the server response (using special source layer names) for route line, current location, and search result pins
@@ -1108,13 +1105,6 @@ layers:
                 width: 0px
 
     # Basemap styling
-    earth:
-        data: { source: mapzen, layer: earth }
-        draw:
-            polygons:
-                order: global.feature_order
-                color: [0.870,0.870,0.870]
-
     water:
         data: { source: mapzen, layer: water }
         draw: