Open Infrastructure Map, a view of infrastructure data in OpenStreetMap
Style tweaks
Russ Garrett0098d479fed9
diff --git a/dist/style/sprite.json b/dist/style/sprite.jsonindex fd93094..99cd31c 100644--- a/dist/style/sprite.json+++ b/dist/style/sprite.json@@ -1 +1 @@-{"power_plant":{"width":28,"height":28,"x":0,"y":0,"pixelRatio":1},"power_plant_coal":{"width":28,"height":28,"x":28,"y":0,"pixelRatio":1},"power_plant_geothermal":{"width":28,"height":28,"x":0,"y":28,"pixelRatio":1},"power_plant_hydro":{"width":28,"height":28,"x":28,"y":28,"pixelRatio":1},"power_plant_nuclear":{"width":28,"height":28,"x":56,"y":0,"pixelRatio":1},"power_plant_oilgas":{"width":28,"height":28,"x":84,"y":0,"pixelRatio":1},"power_plant_solar":{"width":28,"height":28,"x":56,"y":28,"pixelRatio":1},"power_plant_wind":{"width":28,"height":28,"x":84,"y":28,"pixelRatio":1},"comms_tower":{"width":15,"height":25,"x":0,"y":56,"pixelRatio":1},"power_compensator":{"width":14,"height":22,"x":15,"y":56,"pixelRatio":1},"power_transformer":{"width":14,"height":22,"x":29,"y":56,"pixelRatio":1},"power_tower":{"width":15,"height":15,"x":43,"y":56,"pixelRatio":1},"power_wind":{"width":14,"height":14,"x":58,"y":56,"pixelRatio":1},"power_line_ref":{"width":34,"height":13,"x":72,"y":56,"pixelRatio":1},"power_pole":{"width":10,"height":10,"x":0,"y":81,"pixelRatio":1},"power_switch":{"width":16,"height":7,"x":10,"y":81,"pixelRatio":1}}\ No newline at end of file+{"power_plant":{"width":28,"height":28,"x":0,"y":0,"pixelRatio":1},"power_plant_coal":{"width":28,"height":28,"x":28,"y":0,"pixelRatio":1},"power_plant_geothermal":{"width":28,"height":28,"x":0,"y":28,"pixelRatio":1},"power_plant_hydro":{"width":28,"height":28,"x":28,"y":28,"pixelRatio":1},"power_plant_nuclear":{"width":28,"height":28,"x":56,"y":0,"pixelRatio":1},"power_plant_oilgas":{"width":28,"height":28,"x":84,"y":0,"pixelRatio":1},"power_plant_solar":{"width":28,"height":28,"x":56,"y":28,"pixelRatio":1},"power_plant_wind":{"width":28,"height":28,"x":84,"y":28,"pixelRatio":1},"comms_tower":{"width":15,"height":25,"x":0,"y":56,"pixelRatio":1},"power_compensator":{"width":14,"height":22,"x":15,"y":56,"pixelRatio":1},"power_transformer":{"width":14,"height":22,"x":29,"y":56,"pixelRatio":1},"power_tower":{"width":15,"height":15,"x":43,"y":56,"pixelRatio":1},"power_line_ref":{"width":34,"height":14,"x":58,"y":56,"pixelRatio":1},"power_wind":{"width":14,"height":14,"x":92,"y":56,"pixelRatio":1},"power_pole":{"width":10,"height":10,"x":0,"y":81,"pixelRatio":1},"power_switch":{"width":16,"height":7,"x":10,"y":81,"pixelRatio":1}}\ No newline at end of filediff --git a/dist/style/sprite.png b/dist/style/sprite.pngindex 12ad50e..f456443 100644Binary files a/dist/style/sprite.png and b/dist/style/sprite.png differdiff --git a/dist/style/[email protected] b/dist/style/[email protected]index 3e7d363..a81ab10 100644--- a/dist/style/[email protected]+++ b/dist/style/[email protected]@@ -1 +1 @@-{"power_plant":{"width":56,"height":56,"x":0,"y":0,"pixelRatio":2},"power_plant_coal":{"width":56,"height":56,"x":56,"y":0,"pixelRatio":2},"power_plant_geothermal":{"width":56,"height":56,"x":0,"y":56,"pixelRatio":2},"power_plant_hydro":{"width":56,"height":56,"x":56,"y":56,"pixelRatio":2},"power_plant_nuclear":{"width":56,"height":56,"x":112,"y":0,"pixelRatio":2},"power_plant_oilgas":{"width":56,"height":56,"x":168,"y":0,"pixelRatio":2},"power_plant_solar":{"width":56,"height":56,"x":112,"y":56,"pixelRatio":2},"power_plant_wind":{"width":56,"height":56,"x":168,"y":56,"pixelRatio":2},"comms_tower":{"width":30,"height":51,"x":0,"y":112,"pixelRatio":2},"power_compensator":{"width":28,"height":44,"x":30,"y":112,"pixelRatio":2},"power_transformer":{"width":28,"height":44,"x":58,"y":112,"pixelRatio":2},"power_tower":{"width":30,"height":30,"x":86,"y":112,"pixelRatio":2},"power_wind":{"width":28,"height":28,"x":116,"y":112,"pixelRatio":2},"power_line_ref":{"width":68,"height":27,"x":144,"y":112,"pixelRatio":2},"power_pole":{"width":20,"height":20,"x":0,"y":163,"pixelRatio":2},"power_switch":{"width":32,"height":14,"x":20,"y":163,"pixelRatio":2}}\ No newline at end of file+{"power_plant":{"width":56,"height":56,"x":0,"y":0,"pixelRatio":2},"power_plant_coal":{"width":56,"height":56,"x":56,"y":0,"pixelRatio":2},"power_plant_geothermal":{"width":56,"height":56,"x":0,"y":56,"pixelRatio":2},"power_plant_hydro":{"width":56,"height":56,"x":56,"y":56,"pixelRatio":2},"power_plant_nuclear":{"width":56,"height":56,"x":112,"y":0,"pixelRatio":2},"power_plant_oilgas":{"width":56,"height":56,"x":168,"y":0,"pixelRatio":2},"power_plant_solar":{"width":56,"height":56,"x":112,"y":56,"pixelRatio":2},"power_plant_wind":{"width":56,"height":56,"x":168,"y":56,"pixelRatio":2},"comms_tower":{"width":30,"height":51,"x":0,"y":112,"pixelRatio":2},"power_compensator":{"width":28,"height":44,"x":30,"y":112,"pixelRatio":2},"power_transformer":{"width":28,"height":44,"x":58,"y":112,"pixelRatio":2},"power_tower":{"width":30,"height":30,"x":86,"y":112,"pixelRatio":2},"power_line_ref":{"width":68,"height":28,"x":116,"y":112,"pixelRatio":2},"power_wind":{"width":28,"height":28,"x":184,"y":112,"pixelRatio":2},"power_pole":{"width":20,"height":20,"x":0,"y":163,"pixelRatio":2},"power_switch":{"width":32,"height":14,"x":20,"y":163,"pixelRatio":2}}\ No newline at end of filediff --git a/dist/style/[email protected] b/dist/style/[email protected]index b9a5b4d..467eaec 100644Binary files a/dist/style/[email protected] and b/dist/style/[email protected] differdiff --git a/sprites/power_line_ref.svg b/sprites/power_line_ref.svgindex 0ee5598..c9b5e48 100644--- a/sprites/power_line_ref.svg+++ b/sprites/power_line_ref.svg@@ -1,10 +1,10 @@<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">-<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="34.016" height="13.606" viewBox="0, 0, 34.016, 13.606">+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="34" height="14" viewBox="0, 0, 34, 14"><g id="Layer_1"><g>- <path d="M9.17,13.806 L0.871,7.287 L9.168,0.766 L25.766,0.764 L34.066,7.283 L25.768,13.803 z" fill="#FFFFFF"/>- <path d="M9.17,13.806 L0.871,7.287 L9.168,0.766 L25.766,0.764 L34.066,7.283 L25.768,13.803 z" fill-opacity="0" stroke="#3B3B3B" stroke-width="0.48" stroke-linecap="round" stroke-linejoin="round"/>+ <path d="M8.702,13.521 L0.403,7.002 L8.7,0.481 L25.297,0.479 L33.597,6.998 L25.299,13.518 z" fill="#FFFFFF"/>+ <path d="M8.702,13.521 L0.403,7.002 L8.7,0.481 L25.297,0.479 L33.597,6.998 L25.299,13.518 z" fill-opacity="0" stroke="#3B3B3B" stroke-width="0.48" stroke-linecap="round" stroke-linejoin="round"/></g></g></svg>diff --git a/src/style_oim_power.js b/src/style_oim_power.jsindex 468e178..98fc609 100644--- a/src/style_oim_power.js+++ b/src/style_oim_power.js@@ -326,7 +326,7 @@ const layers = [layout: {'icon-image': 'power_tower','icon-size': ["interpolate", ["linear"], ["zoom"],- 13, 0.5,+ 13, 0.4,17, 1],'text-field': '{ref}',