From 23a4bb3484db560eca184feda0850986960a04ac Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Wed, 1 Nov 2023 19:16:37 -0700 Subject: [PATCH] add a max height to basemap inspect popup (#175) * add a max height to basemap inspect popup * fix planetiler build * linting * linting --- app/src/MapViewComponent.tsx | 2 +- app/src/index.css | 5 +++++ tiles/src/main/java/com/protomaps/basemap/Basemap.java | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/MapViewComponent.tsx b/app/src/MapViewComponent.tsx index 33ec2d90..2080f046 100644 --- a/app/src/MapViewComponent.tsx +++ b/app/src/MapViewComponent.tsx @@ -34,7 +34,7 @@ const ATTRIBUTION = const FeaturesProperties = (props: { features: MapGeoJSONFeature[] }) => { return ( -
+
{props.features.map((f, i) => (
diff --git a/app/src/index.css b/app/src/index.css index d584044b..f563533f 100644 --- a/app/src/index.css +++ b/app/src/index.css @@ -82,3 +82,8 @@ a { .maplibregl-popup-close-button { color: black; } + +.features-properties { + max-height: 45vh; + overflow-y: scroll; +} diff --git a/tiles/src/main/java/com/protomaps/basemap/Basemap.java b/tiles/src/main/java/com/protomaps/basemap/Basemap.java index f6928fe2..b68f10d2 100644 --- a/tiles/src/main/java/com/protomaps/basemap/Basemap.java +++ b/tiles/src/main/java/com/protomaps/basemap/Basemap.java @@ -134,7 +134,7 @@ static void run(Arguments args) throws Exception { .addShapefileSource("osm_land", sourcesDir.resolve("land-polygons-split-3857.zip"), "https://osmdata.openstreetmap.de/download/land-polygons-split-3857.zip"); - Downloader.create(planetiler.config(), planetiler.stats()).add("ne", neUrl, nePath) + Downloader.create(planetiler.config()).add("ne", neUrl, nePath) .add("qrank", "https://qrank.wmcloud.org/download/qrank.csv.gz", sourcesDir.resolve("qrank.csv.gz")).run(); var tmpDir = nePath.resolveSibling(nePath.getFileName() + "-unzipped");