
222 ◾ PhoneGap Build
near the device location. e geolocation information of the two markers will be displayed above
the map. Also, the distance between the two markers will be computed and displayed in kilome-
ters (see Figure 8.11a). Upon dragging the first marker on the Google map, that is, marker1,
its geolocation information displayed above the map will change to reflect its current location.
Also, the current distance between the two markers will be computed and displayed as shown
in Figure 8.11b. Similarly, upon dragging the second marker, again, its geolocation information
above the map will be updated along with the distance between t ...