Compare commits

...

2 Commits

Author SHA1 Message Date
9c685e5e2e Update classic style 2026-04-16 17:23:30 +02:00
fbc8b8eedb Fix raster sources
Fix typo
2026-04-16 17:23:28 +02:00
3 changed files with 2941 additions and 50 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,9 +1,18 @@
package eu.konggdev.strikemaps.map.source; package eu.konggdev.strikemaps.map.source;
import com.fasterxml.jackson.databind.JsonNode;
public class MapSource { public class MapSource {
public String url; public String url;
public String type; public String type;
public String schema; public String schema;
public String attribution;
/* For raster sources */
public JsonNode tiles;
public int minzoom;
public int maxzoom;
public MapSource() { } public MapSource() { }
} }

View File

@@ -31,7 +31,7 @@ public class MapStyle {
try { try {
JsonNode root = mapper.readTree(styleContents); JsonNode root = mapper.readTree(styleContents);
MapStyle style = new MapStyle(); MapStyle style = new MapStyle();
style.name = root.path("name").asText(); style.name = root.path("name").asText();
style.icon = getIcon(root.path("icon").asText(), app); style.icon = getIcon(root.path("icon").asText(), app);