Giter VIP home page Giter VIP logo

Comments (5)

yunikkk avatar yunikkk commented on May 22, 2024 3

@LjubiTech-Maxko @dawid-niedzwiecki I assume it's related to the multimap setup and #54, looking as well.

from mapbox-maps-flutter.

dawid-niedzwiecki avatar dawid-niedzwiecki commented on May 22, 2024

Same issue here, pushing one view with a map on top of another view with a map, it raises that exception.

May I ask when this issue is estimated to be resolved?

In the meantime - are there any known workarounds?

from mapbox-maps-flutter.

LjubiTech-Maxko avatar LjubiTech-Maxko commented on May 22, 2024

Probably related because styleLayerExists is called on the second instance of the map which is at the time of calling already disposed.

from mapbox-maps-flutter.

irjayjay avatar irjayjay commented on May 22, 2024

This doesn't seem to be fixed.
Map 1 initialises without issues.
Map 2 initialises, then we destroy it later.
Back on map1, any methods run on its MapboxMap instance throws:
PlatformException(channel-error, Unable to establish connection on channel., null, null)

Seems the second map's instance is somehow bound to the first map's MapboxMap instance now.

Miraculously the first map is still able to function despite these exceptions. So it's as if it's bound to two maps at the same time.

from mapbox-maps-flutter.

irjayjay avatar irjayjay commented on May 22, 2024

Just an update on our issue. We have a home screen with a map and I noticed the whole map widget rebuilds each time we pop the navigation stack back home.
Since it was rebuilding and we often move the map based on actions done on child pages, it was trying to run these methods on an old instance of the map controller.

This is unfortunate, that the map is rebuilt entirely.

We made a hack where we save a reference to the map widget the first time it's built, then return this map variable each time the build is retriggered, instead of allowing it to rebuild each time.

from mapbox-maps-flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.