flutter-maplibre-gl icon indicating copy to clipboard operation
flutter-maplibre-gl copied to clipboard

[BUG] Adding an existing source causes app to crash

Open albertmoravec opened this issue 4 months ago • 3 comments

Platforms

iOS

Version of flutter maplibre_gl

0.20.0

Bug Description

Calling controller.addSource() more than once for the same source causes app crash on iOS with MLNRedundantSourceIdentifierException.

Steps to Reproduce

  1. Call controller.addSource('123', VectorSourceProperties(...)).
  2. Call controller.addSource('123', VectorSourceProperties(...)) again with the same ID.

Expected Results

Exception should be returned.

Actual Results

App completely crashes with MLNRedundantSourceIdentifierException, not providing any option to handle the exception.

Code Sample

await controller.addSource('123', VectorSourceProperties());
await controller.addSource('123', VectorSourceProperties());

albertmoravec avatar Oct 15 '24 09:10 albertmoravec