Skip to content

Commit

Permalink
udpate styles
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Mar 18, 2024
1 parent 2909159 commit 5e3eb81
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions demo/streetcomplete-night.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
{ "id": "roads-major-tunnel", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["==", ["get", "class"], "main"], ["==", ["geometry-type"], "LineString"], ["==", ["get", "structure"], "tunnel"]], "type": "line","paint": {"line-color": "#559", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 9, 1.0, 17, 12.0, 24, 1536.0], "line-opacity": 0.25},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "motorways-tunnel", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["==", ["get", "class"], "motorway"], ["==", ["geometry-type"], "LineString"], ["==", ["get", "structure"], "tunnel"]], "type": "line","paint": {"line-color": "#669", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 8, 1.0, 17, 16.0, 24, 2048.0], "line-opacity": 0.25},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "motorway-links-tunnel", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["==", ["get", "class"], "motorway_link"], ["==", ["geometry-type"], "LineString"], ["==", ["get", "structure"], "tunnel"]], "type": "line","paint": {"line-color": "#669", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 11, 1.0, 17, 8.0, 24, 1024.0], "line-opacity": 0.25},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "paths-tunnel-private", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["==", ["get", "class"], "path"], ["==", ["geometry-type"], "LineString"], ["in", ["get", "access"], ["literal", ["no", "private", "destination", "customers", "delivery", "agricultural", "forestry", "emergency"]]], ["==", ["get", "structure"], "tunnel"]], "type": "line","paint": {"line-color": "#f3dacd", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 14, 0.25, 17, 1.5, 24, 192.0], "line-dasharray": [1, 2]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "roads-service-tunnel-private", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["in", ["get", "class"], ["literal", ["service", "driveway"]]], ["==", ["geometry-type"], "LineString"], ["in", ["get", "access"], ["literal", ["no", "private", "destination", "customers", "delivery", "agricultural", "forestry", "emergency"]]], ["==", ["get", "structure"], "tunnel"]], "type": "line","paint": {"line-color": "#f3dacd", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 13, 0.25, 17, 3.0, 24, 384.0], "line-dasharray": [1, 2]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "paths-tunnel-private", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["==", ["get", "class"], "path"], ["==", ["geometry-type"], "LineString"], ["in", ["get", "access"], ["literal", ["no", "private", "destination", "customers", "delivery", "agricultural", "forestry", "emergency"]]], ["==", ["get", "structure"], "tunnel"]], "type": "line","paint": {"line-color": "#3d364e", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 14, 0.25, 17, 1.5, 24, 192.0], "line-dasharray": [1, 2]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "roads-service-tunnel-private", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["in", ["get", "class"], ["literal", ["service", "driveway"]]], ["==", ["geometry-type"], "LineString"], ["in", ["get", "access"], ["literal", ["no", "private", "destination", "customers", "delivery", "agricultural", "forestry", "emergency"]]], ["==", ["get", "structure"], "tunnel"]], "type": "line","paint": {"line-color": "#3d364e", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 13, 0.25, 17, 3.0, 24, 384.0], "line-dasharray": [1, 2]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "pedestrian-casing", "source": "jawg-streets", "source-layer": "road", "minzoom": 15.5, "filter": ["all", ["==", ["get", "class"], "street_limited"], ["==", ["get", "type"], "pedestrian"], ["==", ["geometry-type"], "LineString"], ["!", ["in", ["get", "structure"], ["literal", ["bridge", "tunnel"]]]]], "type": "line","paint": {"line-color": "#547", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 16, 1, 24, 128], "line-gap-width": ["interpolate", ["exponential", 2], ["zoom"], 13, 1.5, 17, 8.0, 24, 1024.0], "line-opacity": ["interpolate", ["exponential", 2], ["zoom"], 15.0, 0, 16, 1]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "roads-service-casing", "source": "jawg-streets", "source-layer": "road", "minzoom": 15.5, "filter": ["all", ["in", ["get", "class"], ["literal", ["service", "driveway"]]], ["==", ["geometry-type"], "LineString"], ["!", ["in", ["get", "structure"], ["literal", ["bridge", "tunnel"]]]]], "type": "line","paint": {"line-color": "#547", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 16, 1, 24, 128], "line-gap-width": ["interpolate", ["exponential", 2], ["zoom"], 13, 0.5, 17, 6.0, 24, 768.0], "line-opacity": ["interpolate", ["exponential", 2], ["zoom"], 15.0, 0, 16, 1]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "roads-minor-casing", "source": "jawg-streets", "source-layer": "road", "minzoom": 15.5, "filter": ["all", ["in", ["get", "class"], ["literal", ["street", "street_limited"]]], ["!=", ["get", "type"], "pedestrian"], ["==", ["geometry-type"], "LineString"], ["!", ["in", ["get", "structure"], ["literal", ["bridge", "tunnel"]]]]], "type": "line","paint": {"line-color": "#547", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 16, 1, 24, 128], "line-gap-width": ["interpolate", ["exponential", 2], ["zoom"], 11, 0.5, 17, 8.0, 24, 1024.0], "line-opacity": ["interpolate", ["exponential", 2], ["zoom"], 15.0, 0, 16, 1]},"layout": {"line-cap": "round", "line-join": "round"} },
Expand All @@ -63,8 +63,8 @@
{ "id": "roads-major", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["==", ["get", "class"], "main"], ["==", ["geometry-type"], "LineString"], ["!", ["in", ["get", "structure"], ["literal", ["bridge", "tunnel"]]]]], "type": "line","paint": {"line-color": "#559", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 9, 1.0, 17, 12.0, 24, 1536.0], "line-opacity": ["interpolate", ["exponential", 2], ["zoom"], 5.0, 0, 6.0, 1]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "motorways", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["==", ["get", "class"], "motorway"], ["==", ["geometry-type"], "LineString"], ["!", ["in", ["get", "structure"], ["literal", ["bridge", "tunnel"]]]]], "type": "line","paint": {"line-color": "#669", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 8, 1.0, 17, 16.0, 24, 2048.0], "line-opacity": ["interpolate", ["exponential", 2], ["zoom"], 5.0, 0, 6.0, 1]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "motorway-links", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["==", ["get", "class"], "motorway_link"], ["==", ["geometry-type"], "LineString"], ["!", ["in", ["get", "structure"], ["literal", ["bridge", "tunnel"]]]]], "type": "line","paint": {"line-color": "#669", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 11, 1.0, 17, 8.0, 24, 1024.0]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "paths-private", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["==", ["get", "class"], "path"], ["==", ["geometry-type"], "LineString"], ["in", ["get", "access"], ["literal", ["no", "private", "destination", "customers", "delivery", "agricultural", "forestry", "emergency"]]], ["!", ["in", ["get", "structure"], ["literal", ["bridge", "tunnel"]]]]], "type": "line","paint": {"line-color": "#f3dacd", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 14, 0.25, 17, 1.5, 24, 192.0], "line-dasharray": [1, 2]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "roads-service-private", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["in", ["get", "class"], ["literal", ["service", "driveway"]]], ["==", ["geometry-type"], "LineString"], ["in", ["get", "access"], ["literal", ["no", "private", "destination", "customers", "delivery", "agricultural", "forestry", "emergency"]]], ["!", ["in", ["get", "structure"], ["literal", ["bridge", "tunnel"]]]]], "type": "line","paint": {"line-color": "#f3dacd", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 13, 0.25, 17, 3.0, 24, 384.0], "line-dasharray": [1, 2]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "paths-private", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["==", ["get", "class"], "path"], ["==", ["geometry-type"], "LineString"], ["in", ["get", "access"], ["literal", ["no", "private", "destination", "customers", "delivery", "agricultural", "forestry", "emergency"]]], ["!", ["in", ["get", "structure"], ["literal", ["bridge", "tunnel"]]]]], "type": "line","paint": {"line-color": "#3d364e", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 14, 0.25, 17, 1.5, 24, 192.0], "line-dasharray": [1, 2]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "roads-service-private", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["in", ["get", "class"], ["literal", ["service", "driveway"]]], ["==", ["geometry-type"], "LineString"], ["in", ["get", "access"], ["literal", ["no", "private", "destination", "customers", "delivery", "agricultural", "forestry", "emergency"]]], ["!", ["in", ["get", "structure"], ["literal", ["bridge", "tunnel"]]]]], "type": "line","paint": {"line-color": "#3d364e", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 13, 0.25, 17, 3.0, 24, 384.0], "line-dasharray": [1, 2]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "railways", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["in", ["get", "class"], ["literal", ["major_rail", "minor_rail"]]], ["==", ["geometry-type"], "LineString"], ["!", ["in", ["get", "structure"], ["literal", ["bridge", "tunnel"]]]]], "type": "line","paint": {"line-color": "#96c", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 12, 0.75, 13, 2.0, 16.999, 4, 17, 2, 24, 128], "line-gap-width": ["interpolate", ["exponential", 2], ["zoom"], 12, 0, 17, 0, 24, 256], "line-opacity": ["interpolate", ["exponential", 2], ["zoom"], 12, 0, 13, 1]},"layout": {"line-join": "round"} },
{ "id": "barriers-large", "source": "jawg-streets", "source-layer": "structure", "minzoom": 16.0, "filter": ["in", ["get", "type"], ["literal", ["city_wall", "dam", "cliff"]]], "type": "line","paint": {"line-color": "rgba(31,82,82,0.8)", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 16, 4, 24, 768]} },
{ "id": "barriers-wall", "source": "jawg-streets", "source-layer": "structure", "minzoom": 16.0, "filter": ["all", ["==", ["get", "class"], "fence"], ["!=", ["get", "type"], "city_wall"]], "type": "line","paint": {"line-color": "rgba(31,82,82,0.8)", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 16, 1, 24, 256]} },
Expand All @@ -91,8 +91,8 @@
{ "id": "roads-major-bridge", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["==", ["get", "class"], "main"], ["==", ["geometry-type"], "LineString"], ["==", ["get", "structure"], "bridge"]], "type": "line","paint": {"line-color": "#559", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 9, 1.0, 17, 12.0, 24, 1536.0], "line-opacity": ["interpolate", ["exponential", 2], ["zoom"], 5.0, 0, 6.0, 1]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "motorways-bridge", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["==", ["get", "class"], "motorway"], ["==", ["geometry-type"], "LineString"], ["==", ["get", "structure"], "bridge"]], "type": "line","paint": {"line-color": "#669", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 8, 1.0, 17, 16.0, 24, 2048.0], "line-opacity": ["interpolate", ["exponential", 2], ["zoom"], 5.0, 0, 6.0, 1]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "motorway-links-bridge", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["==", ["get", "class"], "motorway_link"], ["==", ["geometry-type"], "LineString"], ["==", ["get", "structure"], "bridge"]], "type": "line","paint": {"line-color": "#669", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 11, 1.0, 17, 8.0, 24, 1024.0]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "paths-bridge-private", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["==", ["get", "class"], "path"], ["==", ["geometry-type"], "LineString"], ["in", ["get", "access"], ["literal", ["no", "private", "destination", "customers", "delivery", "agricultural", "forestry", "emergency"]]], ["==", ["get", "structure"], "bridge"]], "type": "line","paint": {"line-color": "#f3dacd", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 14, 0.25, 17, 1.5, 24, 192.0], "line-dasharray": [1, 2]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "roads-service-bridge-private", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["in", ["get", "class"], ["literal", ["service", "driveway"]]], ["==", ["geometry-type"], "LineString"], ["in", ["get", "access"], ["literal", ["no", "private", "destination", "customers", "delivery", "agricultural", "forestry", "emergency"]]], ["==", ["get", "structure"], "bridge"]], "type": "line","paint": {"line-color": "#f3dacd", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 13, 0.25, 17, 3.0, 24, 384.0], "line-dasharray": [1, 2]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "paths-bridge-private", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["==", ["get", "class"], "path"], ["==", ["geometry-type"], "LineString"], ["in", ["get", "access"], ["literal", ["no", "private", "destination", "customers", "delivery", "agricultural", "forestry", "emergency"]]], ["==", ["get", "structure"], "bridge"]], "type": "line","paint": {"line-color": "#3d364e", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 14, 0.25, 17, 1.5, 24, 192.0], "line-dasharray": [1, 2]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "roads-service-bridge-private", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["in", ["get", "class"], ["literal", ["service", "driveway"]]], ["==", ["geometry-type"], "LineString"], ["in", ["get", "access"], ["literal", ["no", "private", "destination", "customers", "delivery", "agricultural", "forestry", "emergency"]]], ["==", ["get", "structure"], "bridge"]], "type": "line","paint": {"line-color": "#3d364e", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 13, 0.25, 17, 3.0, 24, 384.0], "line-dasharray": [1, 2]},"layout": {"line-cap": "round", "line-join": "round"} },
{ "id": "railways-bridge", "source": "jawg-streets", "source-layer": "road", "filter": ["all", ["in", ["get", "class"], ["literal", ["major_rail", "minor_rail"]]], ["==", ["geometry-type"], "LineString"], ["==", ["get", "structure"], "bridge"]], "type": "line","paint": {"line-color": "#96c", "line-width": ["interpolate", ["exponential", 2], ["zoom"], 12, 0.75, 13, 2.0, 16.999, 4, 17, 2, 24, 128], "line-gap-width": ["interpolate", ["exponential", 2], ["zoom"], 12, 0, 17, 0, 24, 256], "line-opacity": ["interpolate", ["exponential", 2], ["zoom"], 12, 0, 13, 1]},"layout": {"line-join": "round"} },
{ "id": "oneway-arrows", "source": "jawg-streets", "source-layer": "road", "minzoom": 16.0, "filter": ["all", ["==", ["geometry-type"], "LineString"], ["==", ["get", "oneway"], true]], "type": "symbol", "paint": {"icon-color": "#ccf"}, "layout": {"icon-image": "oneway", "symbol-spacing": 200, "symbol-placement": "line", "icon-padding": 5} },
{ "id": "boundaries", "source": "jawg-streets", "source-layer": "admin", "filter": ["all", ["==", ["get", "admin_level"], 2], ["!=", ["get", "maritime"], true]], "type": "line","paint": {"line-color": "#e72", "line-width": 1, "line-dasharray": [1, 2]} },
Expand Down

0 comments on commit 5e3eb81

Please sign in to comment.