Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 10-04 15:59:43.851: I/RESPONSE:(31206): <!DOCTYPE html>
- 10-04 15:59:43.851: I/RESPONSE:(31206): <html style="width: 100%; height: 100%">
- 10-04 15:59:43.851: I/RESPONSE:(31206): <head>
- 10-04 15:59:43.851: I/RESPONSE:(31206): <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
- 10-04 15:59:43.851: I/RESPONSE:(31206): <title>Google Maps V3 API Sample</title>
- 10-04 15:59:43.851: I/RESPONSE:(31206): <script type="text/javascript" src="//maps.google.com/maps/api/js?sensor=false"></script>
- 10-04 15:59:43.851: I/RESPONSE:(31206): </head>
- 10-04 15:59:43.851: I/RESPONSE:(31206): <body style="font-family: Arial; border: 0 none; width: 100%; height: 100%;margin:0;padding:0">
- 10-04 15:59:43.851: I/RESPONSE:(31206): <div id="map-canvas" style="width: 100%; height: 100%"></div>
- 10-04 15:59:43.851: I/RESPONSE:(31206): </body>
- 10-04 15:59:43.851: I/RESPONSE:(31206): <script type="text/javascript">
- 10-04 15:59:43.851: I/RESPONSE:(31206): function initialize() {
- 10-04 15:59:43.851: I/RESPONSE:(31206): var mapDiv = document.getElementById('map-canvas');
- 10-04 15:59:43.851: I/RESPONSE:(31206): var map = new google.maps.Map(mapDiv, {
- 10-04 15:59:43.851: I/RESPONSE:(31206): center: new google.maps.LatLng(0, -180),
- 10-04 15:59:43.851: I/RESPONSE:(31206): zoom: 15, //nota...dovresti trovare un modo per zoomare a seconda della distanza percorsa(almeno secondo me)
- 10-04 15:59:43.851: I/RESPONSE:(31206): mapTypeId: google.maps.MapTypeId.ROADMAP
- 10-04 15:59:43.851: I/RESPONSE:(31206): });
- 10-04 15:59:43.851: I/RESPONSE:(31206): //Settiamo il centro della mappa leggendo i parametri dall'elemento centrale
- 10-04 15:59:43.851: I/RESPONSE:(31206): map.setCenter(new google.maps.LatLng(,));
- 10-04 15:59:43.851: I/RESPONSE:(31206): var path = [new google.maps.LatLng(40.6188296712935,14.94515547528863),new google.maps.LatLng(40.618842830881476,14.945213729515672),];
- 10-04 15:59:43.851: I/RESPONSE:(31206): var line = new google.maps.Polyline({
- 10-04 15:59:43.851: I/RESPONSE:(31206): path: path,
- 10-04 15:59:43.851: I/RESPONSE:(31206): strokeColor: '#ff0000',
- 10-04 15:59:43.851: I/RESPONSE:(31206): strokeOpacity: 1.0,
- 10-04 15:59:43.851: I/RESPONSE:(31206): strokeWeight: 2
- 10-04 15:59:43.851: I/RESPONSE:(31206): });
- 10-04 15:59:43.851: I/RESPONSE:(31206): line.setMap(map);
- 10-04 15:59:43.851: I/RESPONSE:(31206):
- 10-04 15:59:43.851: I/RESPONSE:(31206): var startIm = 'http://www.google.com/mapfiles/dd-start.png';
- 10-04 15:59:43.851: I/RESPONSE:(31206): var stopIm = 'http://www.google.com/mapfiles/dd-end.png';
- 10-04 15:59:43.851: I/RESPONSE:(31206): var startMarker = new google.maps.Marker({
- 10-04 15:59:43.851: I/RESPONSE:(31206): map: map,
- 10-04 15:59:43.851: I/RESPONSE:(31206): position: new google.maps.LatLng(40.6188296712935, 14.94515547528863),
- 10-04 15:59:43.851: I/RESPONSE:(31206): icon: startIm,
- 10-04 15:59:43.851: I/RESPONSE:(31206): flat: true,
- 10-04 15:59:43.851: I/RESPONSE:(31206): draggable: false
- 10-04 15:59:43.851: I/RESPONSE:(31206): });
- 10-04 15:59:43.851: I/RESPONSE:(31206):
- 10-04 15:59:43.851: I/RESPONSE:(31206): var stopMarker = new google.maps.Marker({
- 10-04 15:59:43.851: I/RESPONSE:(31206): map: map,
- 10-04 15:59:43.851: I/RESPONSE:(31206): position: new google.maps.LatLng(40.618842830881476, 14.945213729515672),
- 10-04 15:59:43.851: I/RESPONSE:(31206): icon: stopIm,
- 10-04 15:59:43.851: I/RESPONSE:(31206): flat: true,
- 10-04 15:59:43.851: I/RESPONSE:(31206): draggable: false
- 10-04 15:59:43.851: I/RESPONSE:(31206): });
- 10-04 15:59:43.851: I/RESPONSE:(31206):
- 10-04 15:59:43.851: I/RESPONSE:(31206): }
- 10-04 15:59:43.851: I/RESPONSE:(31206): google.maps.event.addDomListener(window, 'load', initialize);
- 10-04 15:59:43.851: I/RESPONSE:(31206): </script>
- 10-04 15:59:43.851: I/RESPONSE:(31206): </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement