iOS Question iGoogleMaps Zoom doesn't work

Discussion in 'iOS Questions' started by mauro vicamini, Jul 17, 2015.

  1. mauro vicamini

    mauro vicamini Active Member Licensed User

    Hi everyone,
    I've a probelm with the zoom of iGoogleMaps. When I click on the map I'd like to put a marker and that map could zoom to street level (zoom level 16 or more), but the map remain always at level 2.

    This is the code I use

    Code:
    private Sub gmap_Click (Point As LatLng)
        gmap.CameraPosition.Initialize(
    Point.Latitude,Point.Longitude,16)
        MyPosition.Initialize2(
    Point.Latitude,Point.Longitude)
        
    If MyMarker.IsInitialized Then
           
            MyMarker.Position = 
    Point
        
    Else
            MyMarker = gmap.AddMarker(MyPosition.Latitude, MyPosition.Longitude,
    "Mia Posizione")
        
    End If
    End Sub
    There is also the problem that when I put the marker the map doesn't center it: I've tried to use
    Code:
    Dim CamPos As CameraPosition
    CamPos.Initialize(
    Point.Latitude,Point.Longitude,16)
    gmap.MoveCamera(CamPos)
    but it return the error:

    Code:
    -[GMSCameraPosition applyToCamera:onMap:]: unrecognized selector sent to instance 0x19eab550
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Please do not make duplicate posts.
     
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