Android Question gmap.MyLocation.Latitude

Discussion in 'Android Questions' started by Emerito, May 29, 2019.

  1. Emerito

    Emerito Member Licensed User

    How to know when MyLocation has a value to avoid the error "error evaluating expression"
    Este error se produce a veces en el código siguiente:
    Code:
    If gmap.IsInitialized=True Then
                        camaraGoogle.Initialize2(gmap.MyLocation.Latitude, gmap.MyLocation.Longitude, gmap.CameraPosition.Zoom, 
    00)
                        gmap.moveCamera(camaraGoogle)
                    
    End If
    Can you help me?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Code:
    If gmap.MyLocation.IsInitialized Then
     ...
     
  3. Emerito

    Emerito Member Licensed User

    Thank you
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice