lib-open-swiss-maps-sdk
lib-open-swiss-maps-sdk copied to clipboard
setBaseLayerType causes outOfMemory error
https://github.com/geoadmin/lib-open-swiss-maps-sdk/blob/05847c4bb004783b79e83c0d690764029b9128ac/android/src/main/java/ch/admin/geo/openswissmaps/view/SwisstopoMapView.kt#L99
Every time the "setBaseLayerType" method is called, it does not release some resources correctly. Calling it repeatedly will cause the outOfMemory error
Hi @MicheleIlluzzi,
Thank you very much for your report. In 466 we've fixed an issue with improper texture deallocations on layer removal. The update is currently available on develop. We're planning another release for this module during the next week, with which we will publish an updated prebuilt package on maven central.