Skip to content

Make mapContentInset environment value public#143

Merged
Archdoog merged 1 commit into
maplibre:mainfrom
hactar:pr/content-inset-public
Apr 7, 2026
Merged

Make mapContentInset environment value public#143
Archdoog merged 1 commit into
maplibre:mainfrom
hactar:pr/content-inset-public

Conversation

@hactar
Copy link
Copy Markdown
Collaborator

@hactar hactar commented Apr 6, 2026

Issue/Motivation

Exposes the mapContentInset environment variable, so that Views such as the ones Ferrostar creates can read them in and apply them selectively. I'm creating a PR for Ferrostar which allows users to set the .mapContentInset on the Ferrostar view, so that the inset is applied when not navigating, while ferrostar applies its own when navigation is taking place. Example usage: stadiamaps/ferrostar#872

Alternatively we could of course create a ferrostar specific override, but I think this solution is cleaner and could be a way of allowing people to control ferrostars non navigation behavior for other modifiers too if we like this pattern.

@Archdoog Archdoog merged commit 139e83d into maplibre:main Apr 7, 2026
5 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.

2 participants