Open Infrastructure Map, a view of infrastructure data in OpenStreetMap
Wind style tweaks
Russ Garrett9a479ce5157f
diff --git a/src/build_sprites.js b/src/build_sprites.jsindex f3090cf..92be574 100644--- a/src/build_sprites.js+++ b/src/build_sprites.js@@ -27,7 +27,10 @@ var path = require('path');spritezero.generateLayout({imgs: svgs, pixelRatio: pxRatio, format: true},function(err, dataLayout) {- if (err) return;+ if (err) {+ console.log(err);+ return;+ }fs.writeFileSync(jsonPath, JSON.stringify(dataLayout));},);@@ -38,7 +41,10 @@ var path = require('path');{imgs: svgs, pixelRatio: pxRatio, format: false},function(err, imageLayout) {spritezero.generateImage(imageLayout, function(err, image) {- if (err) return;+ if (err) {+ console.log(err);+ return;+ }fs.writeFileSync(pngPath, image);});},diff --git a/src/style_oim_power.js b/src/style_oim_power.jsindex 73011d1..599fd44 100644--- a/src/style_oim_power.js+++ b/src/style_oim_power.js@@ -383,11 +383,18 @@ const layers = [paint: text_paint,layout: {'icon-image': 'power_wind',+ 'icon-anchor': 'bottom',+ 'icon-size': ["interpolate",+ ["linear"],+ ["zoom"],+ 11, 0.5,+ 14, 1+ ],'text-field': '{name}','text-size': ["step",["zoom"],0,- 11, 9+ 12, 9],'text-offset': [0, 1],'text-anchor': 'top',diff --git a/src/style_oim_telecoms.js b/src/style_oim_telecoms.jsindex 78a9868..793e10e 100644--- a/src/style_oim_telecoms.js+++ b/src/style_oim_telecoms.js@@ -45,6 +45,7 @@ const layers = [paint: text_paint,layout: {'icon-image': 'comms_tower',+ 'icon-anchor': 'bottom','icon-size': ['interpolate', ["linear"], ["zoom"],10, 0.6,14, 1