erikabruni73 / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

GoogleWrapperSample throws Illegal State exception on second instantiation of Google Map view #197

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Build the wrapper sample project, go from OSM to Google view twice. Second time 
round get "You are only allowed to ave a single map view in a map activity "

Easy work round to put in an instance variable and check for null before 
instantiating in setMapView()

Just raised it for info really, otherwise nice demo

Original issue reported on code.google.com by n...@nthearle.demon.co.uk on 2 Apr 2011 at 11:24

GoogleCodeExporter commented 9 years ago
I'm aware of the error, but keeping an instance of it after it's no longer 
needed doesn't seem like a good idea.

Original comment by neilboyd on 5 Apr 2011 at 6:14