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 support for 'setPadding' #258

Open
stefanschaller opened this issue Jun 22, 2023 · 2 comments
Open

Add support for 'setPadding' #258

stefanschaller opened this issue Jun 22, 2023 · 2 comments
Assignees
Labels
android enhancement New feature or request ios

Comments

@stefanschaller
Copy link
Collaborator

stefanschaller commented Jun 22, 2023

Since padding for the viewport is useful for centering the content, it would be helpful to add the setPadding to this package.
Example: https://maplibre.org/maplibre-gl-js-docs/example/offset-vanishing-point-with-padding/

The documentation for the native side:
https://maplibre.org/maplibre-gl-js-docs/api/map/#map#setpadding

Example: (Native)

        mapView = MapView(context, options)

        mapView.setPadding(20, 20, 10, 60)

It would be great to use it like that:

maplibreMapController.setPadding(left: 20, right: 20, bottom: 20, top: 20);

@artemmmon
Copy link

Any updates? Really need this feature.

@josxha josxha added enhancement New feature or request and removed improvement labels Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android enhancement New feature or request ios
Projects
None yet
Development

No branches or pull requests

5 participants