Skip to content

[BUG] cameraTargetBounds on iOS not working #532

@Tamerlanchiques

Description

@Tamerlanchiques

Platforms

iOS

Version of flutter maplibre_gl

0.20.0

Bug Description

Map widget don't obey to given cameraTargetBounds on iOS (works on Android).

Steps to Reproduce

  1. Set "cameraTargetBounds" parameter to MapLibreMap widget
  2. Try to move out of the bounds

Expected Results

You can not move out of the bounds

Actual Results

You succesfully move out of bounds

Code Sample

          return MapLibreMap(
            cameraTargetBounds: CameraTargetBounds(
              LatLngBounds(
                southwest: LatLng(47.33376372996099, 111.87315765210667),
                northeast: LatLng(57.50798140247238, 141.70422498341333),
              ),
            ),
            minMaxZoomPreference: const MinMaxZoomPreference(5, 18),
          );

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions