Android Question Detecting "map moved" in Google Maps SOLVED

Discussion in 'Android Questions' started by Roger Daley, May 9, 2015.

  1. Roger Daley

    Roger Daley Well-Known Member Licensed User

    Hi All

    I am trying to detect when a Google Map is moved so I can obtain the maps new Lat/Lng.
    I am assuming that the event "CameraChange (Position As CameraPosition)" is what should trigger the required Sub but can't find anything that shows the correct syntax.

    Can someone please point me to an example code that does this.

    Regards Roger
     
  2. klaus

    klaus Expert Licensed User

    Did you have a look at the MapFragment_CameraChange (Position As CameraPosition) event ?
     
  3. Roger Daley

    Roger Daley Well-Known Member Licensed User

    Yes Klaus,
    As I said in the post above that I assumed that this was where the answer lies. However when I looked at it, it looked back and I found I am out of my depth again. Extracting relocation of the map center looks like an equal mystery.

    Any chance of me finding sample code?

    Regards Roger
     
  4. Roger Daley

    Roger Daley Well-Known Member Licensed User

    Problem solved for the moment by bypassing the need to detect MapMoved.
    Capturing the Map Centre in Activity Paused will do for now.

    Regards Roger
     
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