TODO: Write a project description
TODO: Describe the installation process
if ("geolocation" in navigator) { | |
navigator.geolocation.getCurrentPosition(function(position) { | |
// Yes navigator got geolocation and you got permitions to use it | |
alert(position.coords.latitude, position.coords.longitude); | |
}); | |
} else { | |
alert('sorry your browser not support geolocalisation'); | |
} |
private boolean isVisibile(Marker marker) | |
{ | |
if(googleMap != null) | |
{ | |
//This is the current user-viewable region of the map | |
LatLngBounds latLongBounds = googleMap.getProjection().getVisibleRegion().latLngBounds; | |
if(latLongBounds.contains(marker.getPosition())) | |
//If the item is within the the bounds of the screen | |
return true; |