mar-v-in / MapsAPI

A replacement of the often used google maps api with an open source one using OpenStreetMap.
45 stars 7 forks source link

Map doesn't keep its position #4

Open dalb8 opened 10 years ago

dalb8 commented 10 years ago

I discovered that this works as a compile library , but not when used as an Android library. So if I do echo 'source.dir=$$MapsAPI$$/src;src' >>ant.properties it will work. Wish I'd known about this earlier!

So I tried it in https://github.com/SecUpwN/Android-IMSI-Catcher-Detector (also deleting uses-library tag from the Manifest and setting an appropriate SDK compile target) and it works fine, but as soon as the screen rotates or the activity changes then the position is reset to (0,0) off the coast of Ghana.

mar-v-in commented 10 years ago

Could you please check, if the latest commit fixes your problem?

dalb8 commented 10 years ago

That fixes the rotation but I still get sent back to the Gulf of Guinea if I re-enter the activity.

Generally, few of the apps that I've tried have centered the map on my location and I'm using microg NetworkLocation 1.3.2 on CM10.1. One that does is Mixare, but I've opened issue #7 about that.

dalb8 commented 10 years ago

Actually map position resets (but not zoom level) on rotation with Aripuca GPS Tracker (https://code.google.com/p/aripuca-tracker) too using Maps API: 323b519. Maps work well with this app otherwise.

dalb8 commented 10 years ago

Double tap to zoom also resets the map.

Rotation resets still for Ushahidi and Fake GPS Path at least.