This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void getLocation() { | |
try { | |
if (canGetLocation) { | |
Log.d(TAG, "Can get location"); | |
if (isGPS) { | |
// from GPS | |
Log.d(TAG, "GPS on"); | |
locationManager.requestLocationUpdates( | |
LocationManager.GPS_PROVIDER, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
google.maps.event.addListener(drawingManager, 'overlaycomplete', function(event) { | |
if (event.type == google.maps.drawing.OverlayType.MARKER) { | |
//event.overlay.setTitle("Hello"); | |
var infowindow = new google.maps.InfoWindow({ | |
content: '<div id="content" onmouseover="updateContent()">Hello</div>', | |
maxWidth: 10 | |
}); | |
google.maps.event.addListener(event.overlay,'click',function(){ | |
infowindow.open(map,event.overlay); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var map; // Global declaration of the map | |
var iw = new google.maps.InfoWindow(); // Global declaration of the infowindow | |
var lat_longs = new Array(); | |
var markers = new Array(); | |
var drawingManager; | |
function initialize() { | |
var myLatlng = new google.maps.LatLng(40.9403762, -74.1318096); | |
var myOptions = { | |
zoom: 13, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vi /etc/environment | |
add these lines... | |
LANG=en_US.utf-8 | |
LC_ALL=en_US.utf-8 |
NewerOlder