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

mapbox_gl: ^0.12.0 : updateSymbol(symbol, changes) and clearSymbols() dont work #704

Closed
p3im4n opened this issue Oct 3, 2021 · 3 comments
Labels

Comments

@p3im4n
Copy link

p3im4n commented Oct 3, 2021

hi
on android 11 and mapbox_gl: ^0.12.0 : updateSymbol(symbol, changes) and clearSymbols() dont work
and I have to downgrade to mapbox_gl: ^0.11.0
and this leads to other dependencies versions conflicting.
this is my pubsec.yaml

version: 1.0.0+1

environment:
sdk: ">=2.12.0 <3.0.0"

dependencies:
flutter:
sdk: flutter
hive: ^2.0.4
hive_flutter: ^1.1.0
mapbox_gl: ^0.12.0
meta: ^1.6.0
cupertino_icons: ^1.0.2

dev_dependencies:
timer_builder: ^2.0.0
flutter_test:
sdk: flutter

polyline: ^1.0.2
http: ^0.13.3
equatable: ^1.2.6
flutter_svg: ^0.22.0
provider: ^6.0.1
path_provider: ^2.0.2
hive_generator: ^1.0.0
build_runner: ^1.11.1

@lecanhhiep
Copy link

Hi,

You can use like below code:
FullMapPage.mapController?.symbols.forEach((element) {//loop all symbols and remove them one by one.
FullMapPage.mapController?.removeSymbol(element);
});

Thanks,

@mekkolodziejski
Copy link

mekkolodziejski commented Oct 11, 2021

remove doesn't work either. most don't work in version 12

AAverin pushed a commit to AAverin/flutter-mapbox-gl that referenced this issue Oct 21, 2021
Dispose all potential leaks: platform channel, platform callbacks, controller and any callbacks that could be set from outside
tobrun added a commit that referenced this issue Nov 13, 2021
* Fix optionals in location requests

* Make sure onStyleLoaded callback is invoked when map is loaded and ready

* Update iOS SDK

* Clear and dispose everything that could be holding references

* Clear more of the platform argument callbacks

* Clear method channel handler

* Dispose leaking MapboxGLPlatform

* Merge in #704 simplifying platform usage
Dispose all potential leaks: platform channel, platform callbacks, controller and any callbacks that could be set from outside

* Bring back final modifiers to variables

Co-authored-by: stanlry <stanlry.g@gmail.com>
Co-authored-by: Tobrun <tobrun.van.nuland@gmail.com>
@stale
Copy link

stale bot commented Jan 14, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 14, 2022
@stale stale bot closed this as completed Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants