Unanswered: how to place a bubble on map using geolocation with onlocationupdatate event
Unanswered: how to place a bubble on map using geolocation with onlocationupdatate event
Hi friends i did a small program on placing a bubble on current location using updatelocation event but it shows only default location and also it does not place a bubble on that location.
onLocationUpdate: function(geo) {
var position = new google.maps.LatLng(geo.latitude, geo.longitude);
var infowindow = new google.maps.InfoWindow({
content: 'test info text'
});
var marker = new google.maps.Marker({
position: position,
title : 'Your location!',
map: this.map
});
}
});
It does not work properly. It does not show current location and also it doesnot place a bubble.
Pls help me because i am new to this technology.
And also i have one small doubt i.e
when a person moving from one location to another location then automatically a bubble has to place at that location with the given time and also i need to draw a line among those bubbles.