Geolocation watchPosition ft. Google Maps

Discussion in 'JavaScript' started by Liam O'Byrne, Jun 28, 2013.

  1. #1
    Instruction
    Please navigate to the following web URL using your mobile phone.

    http://www.liamobyrne.com/CycleMile/media/pages/track.html

    Click 'Start' and wait for GPS to locate your position. Once located, you will be presented with a Google Map and Google Marker.

    Problem
    The GPS causes the Google Map and Google Marker to refresh consistently (almost every second). However, every refresh causes Google Map and Google Marker to refresh, which causes the browser to crash.

    Question
    How can I resolve this so that only the Google Marker is updated upon every refresh and NOT the Google Map?

    Note
    The source code can be viewed from the web URL.
     
    Liam O'Byrne, Jun 28, 2013 IP