Skip to content

Commit

Permalink
Add link to osm.org from new debug client
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Mar 25, 2024
1 parent 6f105e9 commit d1a5306
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client-next/src/components/MapView/GeometryPropertyPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ export function GeometryPropertyPopup({
))}
</tbody>
</Table>
<div className="geometry-popup-osm-link">
<a
href={`https://www.openstreetmap.org/?mlat=${coordinates.lat}&mlon=${coordinates.lng}#map=18/${coordinates.lat}/${coordinates.lng}`}
target="_blank"
>
↗️ osm.org
</a>
</div>
</Popup>
);
}
7 changes: 7 additions & 0 deletions client-next/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@
padding-left: 2px;
}

/* geometry popup */

.geometry-popup-osm-link {
text-align: right;
padding: 0 5px;
}

/* debug layer selector */

.maplibregl-ctrl-group.layer-select {
Expand Down

0 comments on commit d1a5306

Please sign in to comment.