Comments (8)
Have you tried using
android:configChanges="keyboardHidden|orientation|screenSize"
for the map activity at the AndroidManifest.xml to avoid restarting the activity at each device rotation?
from osmdroid.
I want to handle configuration changes by myself. I don't want to use android:configChanges
- it just hides problems.
from osmdroid.
+1
from osmdroid.
BUMP
from osmdroid.
Confirmed. According to the memory analyzer it looks like it is retaining the MapView via the mMyLocationConsumer. Can anyone confirm if removing both the MyLocationNewOverlay and the CompassOverlay overlay eliminates the issue?
from osmdroid.
I will confirm it tomorrow.
from osmdroid.
Can anyone confirm if removing both the MyLocationNewOverlay and the CompassOverlay overlay eliminates the issue?
Yes!
from osmdroid.
So I found the issue with OpenStreetMapViewer. It actually had nothing to do with the MyLocationNewOverlay and CompassOverlay. We were simply re-adding a new MapFragment every rotate. I will update the OpenStreetMapViewer code and close this ticket. If you still find you have issues, please re-open.
from osmdroid.
Related Issues (20)
- The project is dead? HOT 3
- Maps broken HOT 2
- Could you please explain the source of your map data? HOT 2
- Fix tiny typo in tileinfo about OpenStreetMap HOT 2
- Missing release information - not updated release page HOT 1
- RTL Layout not working properly
- Map blurring during zoom and issues with text clarity when scaling is enabled
- Overlay is not replaced after adding it multiple times HOT 1
- Cluster click doesn't work properly
- Map became much larger than restricted size
- Setting tilesource clears cache
- GitHub Pages site is outdated HOT 1
- What is the current version of osmdroid? HOT 3
- can support the sqlite of arcgis offline tiles when zoom=0 but has more than one tiles?
- MapTileProviderArray with two DownloadProviders / combining regional & global online maps not working
- How should I use user-supplied maps? HOT 3
- One-finger zoom in and out HOT 2
- Is JDK17 supported? HOT 2
- TileLooper calculates wrong number of required tiles when map repetition is disabled HOT 3
- 89°.29".10' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osmdroid.