Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bathymetry outline layer to base theme. #186

Merged
merged 2 commits into from
Dec 28, 2024
Merged

Add bathymetry outline layer to base theme. #186

merged 2 commits into from
Dec 28, 2024

Conversation

charliemcgrady
Copy link
Collaborator

@charliemcgrady charliemcgrady commented Dec 20, 2024

This PR adds bathymetry to the Overture Explorer.

https://explore.overturemaps.org/aria/c5ab0ff-20.x-aria.html#3.31/38.7/-42.62

Screenshot 2024-12-20 at 11 30 10 AM

{
theme: "base",
type: "bathymetry",
outline: true,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bathymetry layer is exclusively polygons. I chose an outline over a fill layer because the inner area of the bathymetry polygons overlap with land, leading to irrelevant clicks. Outline layers better represent boundaries.

@@ -141,6 +141,22 @@ const ThemeTypeLayer = ({
{...(minzoom ? { minzoom } : {})}
/>
) : null}
{outline ? (
<Layer
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add an invisible line which is larger than the rendered outline to enable easier clicks.

@charliemcgrady charliemcgrady marked this pull request as ready for review December 28, 2024 15:29
@charliemcgrady charliemcgrady merged commit 76fddf1 into main Dec 28, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants