Skip to content

Commit

Permalink
Merge pull request #124 from govlt/remove-power-layer
Browse files Browse the repository at this point in the history
Remove power layer
  • Loading branch information
vycius authored Nov 17, 2024
2 parents a71e600 + fade013 commit 19e4ce1
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 160 deletions.
5 changes: 1 addition & 4 deletions vector/src/main/java/lt/lrv/basemap/Basemap.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
public class Basemap extends ForwardingProfile {
// For local development in order to speed up build it's recommended to comment out some GRPK layers
static final String[] GRPK_LAYERS = {
Layers.GRPK_ELEKTR_L,
Layers.GRPK_ELEKTR_T,
Layers.GRPK_GELEZINK,
Layers.GRPK_HIDRO_L,
Layers.GRPK_MISKAS_L,
Expand All @@ -27,7 +25,7 @@ public class Basemap extends ForwardingProfile {
Layers.GRPK_VIETOV_T,
};

public static void main(String[] args) throws Exception {
public static void main(String[] args) {
var grpkGlobPattern = "{" + String.join(",", GRPK_LAYERS) + "}*.shp";

Planetiler.create(Arguments.fromConfigFile(Path.of("config.properties")))
Expand Down Expand Up @@ -70,7 +68,6 @@ public Basemap(Planetiler runner) {
new MountainPeak(),
new ForestCompartment(config),
new Park(),
new Power(config),
new Place(),
new Poi(),
new Transportation(),
Expand Down
2 changes: 0 additions & 2 deletions vector/src/main/java/lt/lrv/basemap/constants/Layers.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ public class Layers {
public static final String GRPK_RIBOS = "RIBOS";
public static final String GRPK_VIETOV_P = "VIETOV_P";
public static final String GRPK_VIETOV_T = "VIETOV_T";
public static final String GRPK_ELEKTR_L = "ELEKTR_L";
public static final String GRPK_ELEKTR_T = "ELEKTR_T";

private Layers() {
}
Expand Down
81 changes: 0 additions & 81 deletions vector/src/main/java/lt/lrv/basemap/layers/Power.java

This file was deleted.

73 changes: 0 additions & 73 deletions vector/styles/bright/style.json
Original file line number Diff line number Diff line change
Expand Up @@ -4013,79 +4013,6 @@
"text-halo-width": 1.5
}
},
{
"id": "power-pole",
"type": "circle",
"source": "openmaptiles",
"source-layer": "power",
"paint": {
"circle-radius": 2,
"circle-color": "rgba(97, 97, 97, 0.8)"
},
"filter": [
"all",
[
"==",
"class",
"pole"
]
]
},
{
"id": "power-line",
"type": "line",
"source": "openmaptiles",
"source-layer": "power",
"filter": [
"all",
[
"==",
"class",
"line"
]
],
"paint": {
"line-width": 0.3,
"line-opacity": 0.7,
"line-color": "rgba(97, 97, 97, 1)"
},
"layout": {
}
},
{
"id": "power-line-label",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "power",
"layout": {
"text-field": "{name:latin}",
"symbol-placement": "line",
"text-font": [
"Noto Sans Italic"
],
"text-size": 9,
"text-offset": [
0,
-0.6
]
},
"filter": [
"all",
[
"==",
"class",
"line"
],
[
"has",
"name:latin"
]
],
"minzoom": 15,
"paint": {
"text-color": "rgba(97, 97, 97, 1)"
}
},
{
"id": "poi-level-3",
"type": "symbol",
Expand Down

0 comments on commit 19e4ce1

Please sign in to comment.