Android Question Google maps question

kohle

Active Member
Licensed User
Longtime User
Hi,
I get an error message when I use googleMapsExtras to show a mapp with 2 points.
This error only is triggered, when I close the app with the back key and open it again over the task manager.

Error:
java.lang.IllegalStateException: Error using newLatLngBounds(LatLngBounds, int): Map size can't be 0. Most likely, layout has not yet occured for the map view. Either wait until layout has occurred or use newLatLngBounds(LatLngBounds, int, int, int) which allows you to specify the map's dimensions.

The code is in the map_ready

Using this Code:



This code works fine :

Dim cp As CameraPosition
cp.Initialize(GL_m_lati,GL_m_longi, 15)
gmap.AnimateCamera(cp)
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…