Skip to content

Commit

Permalink
Add attribution, remove client side style
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Jan 2, 2024
1 parent c7395d8 commit 934b809
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 21 deletions.
19 changes: 0 additions & 19 deletions client-next/src/components/MapView/mapStyle.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public class DebugStyleSpec {
private static final RasterSource BACKGROUND_SOURCE = new RasterSource(
"background",
List.of("https://a.tile.openstreetmap.org/{z}/{x}/{y}.png"),
256
256,
"© OpenStreetMap Contributors"
);

public record VectorSourceLayer(VectorSource vectorSource, String vectorLayer) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public String type() {
/**
* Represents a raster-based source for map tiles.
*/
record RasterSource(String id, List<String> tiles, int tileSize) implements TileSource {
record RasterSource(String id, List<String> tiles, int tileSize, String attribution) implements TileSource {
@Override
public String type() {
return "raster";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png"
],
"tileSize": 256,
"attribution" : "&copy; OpenStreetMap Contributors",
"type": "raster"
},
"vectorSource": {
Expand Down

0 comments on commit 934b809

Please sign in to comment.