Axxxon
Axxxon

Reputation: 733

Android - GoogleMaps - display markers without internet connection?

lately my client wants to add functionality like that: when user have Internet connection maps are displayed normaly, but when user starts app offline(even just after instalation), maps arent shown but he can still see markers on its area however with custom background on it?

I see some way to add overlay for background but if theres a way to show markers? I have never met with something like that, and after searching app I'm not 100% sure is there anything like that possible.

Thanks for any help.

Upvotes: 1

Views: 859

Answers (1)

MaciejGórski
MaciejGórski

Reputation: 22232

Google Maps Android API v2 needs to connect to server to confirm your API key is correct. It won't display any data (including markers) before that.

After the first connection, the result is stored and you don't need internet to display markers. The map data won't load obviously (unless it is cached), but markers will appear.

I consider it a bug that you cannot display markers (or other visual objects like polylines) without checking API key correctness. It would make more sense to force that only when you want to load Google map tiles. It was actually requested on gmaps-api-issues.

Upvotes: 3

Related Questions