Skip to content

Commit

Permalink
add a max height to basemap inspect popup (#175)
Browse files Browse the repository at this point in the history
* add a max height to basemap inspect popup

* fix planetiler build

* linting

* linting
  • Loading branch information
bdon authored Nov 2, 2023
1 parent dc7e1f8 commit 23a4bb3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/MapViewComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const ATTRIBUTION =

const FeaturesProperties = (props: { features: MapGeoJSONFeature[] }) => {
return (
<div>
<div className="features-properties">
{props.features.map((f, i) => (
<div key={i}>
<span>
Expand Down
5 changes: 5 additions & 0 deletions app/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,8 @@ a {
.maplibregl-popup-close-button {
color: black;
}

.features-properties {
max-height: 45vh;
overflow-y: scroll;
}
2 changes: 1 addition & 1 deletion tiles/src/main/java/com/protomaps/basemap/Basemap.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 23a4bb3

Please sign in to comment.