Open stefanschaller opened 1 year ago
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/
setPadding
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);
Any updates? Really need this feature.
Looks like we could use
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)
It would be great to use it like that:
maplibreMapController.setPadding(left: 20, right: 20, bottom: 20, top: 20);