Skip to content

[BUG] cameraTargetBounds not working #691

@LouisRaverdy

Description

@LouisRaverdy

Platforms

iOS

Version of flutter maplibre_gl

0.24.1

Bug Description

The param cameraTargetBounds in the MapLibreMap constructor doesn't applies on iOS. Same issue after calling . On Android and web, all is working perfectly.

Steps to Reproduce

  1. Launch the official example project
  2. Go on "User Interface" section
  3. Click on "bound zoom"

Expected Results

The camera should be locked in the area like Android and web

Actual Results

The camera on iOS is still free

Code Sample

MapLibreMap(
   cameraTargetBounds: CameraTargetBounds(
      LatLngBounds(
         northeast: const LatLng(43.76, 4.14),
         southwest: const LatLng(43.42, 3.56),
      )
   )
)

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