Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

LocationLayerController layer map memory leak #14111

Closed
dsuresh-ap opened this issue Mar 13, 2019 · 0 comments
Closed

LocationLayerController layer map memory leak #14111

dsuresh-ap opened this issue Mar 13, 2019 · 0 comments
Assignees
Labels
Android Mapbox Maps SDK for Android

Comments

@dsuresh-ap
Copy link

Steps to reproduce

  1. Activate location component
  2. Set different styles
  3. Old layers aren't removed from layerMap in `LocationLayerController'

Expected behavior

New ids will only be added if they weren't already in the list.

Actual behavior

The only time ids are cleared is applyStyle is called.

private void addLayerToMap(Layer layer, @NonNull String idBelowLayer) {
    style.addLayerBelow(layer, idBelowLayer);
    layerMap.add(layer.getId()); // Ids keep getting added
  }

Configuration

Android versions:
Device models:
Mapbox SDK versions:7.2.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

No branches or pull requests

3 participants