Android Question Google maps question

Discussion in 'Android Questions' started by kohle, Jun 25, 2015.

Similar threads

B4A Code Snippet [B4X] Google Geocoding REST API
B4A Tutorial Google Maps
B4A Example MapsDecodePolyline
B4A Tutorial GPS tutorial
B4A Tutorial Google Maps Android v2 tutorial
  1. kohle

    kohle Active Member Licensed 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 :

     
Loading...