Hi, I want to show one place in my country on google map in my web page. But currently that page is not in the Google Maps and also I don't want to add it to the google maps. What i want is mark that place temporary in google maps and get embed map to my web page. How can I do it?

Member Avatar
Member Avatar
+0 forum 1

Hello, I'm trying to display the google map in a bootstrap modal. But only a part of the map is visible not the complete map. here's my modal code, followed by the javascript for the map <div id="geo_modal" class="modal fade"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title modal-primary">Sign-in</h4> </div> <div id="map" class="modal-body"> </div> </div> </div> </div> the javascript function initialize() { var mapOptions = { center: new google.maps.LatLng(-34.397, 150.644), zoom: 8 }; var map = new google.maps.Map(document.getElementById('map'), mapOptions); var drawingManager = new google.maps.drawing.DrawingManager({ drawingMode: google.maps.drawing.OverlayType.MARKER, drawingControl: true, drawingControlOptions: { position: google.maps.ControlPosition.TOP_CENTER, drawingModes: [ google.maps.drawing.OverlayType.MARKER, …

Member Avatar
Member Avatar
+0 forum 3

0 down vote favorite In new google map there are several travel mode like driving, bicycling, walking and transit but they also added fly mode also. I can choose fly mode in new google map but i cant get fly travel mode in google maps v3 api. I want to to show fly distance between two cities on my site like google map shows on google map. http://maps.googleapis.com/maps/api/directions/xml?sensor=false&origin=Lahore&destination=Multan&mode=driving $base_url = 'http://maps.googleapis.com/maps/api/directions/xml?sensor=false'; $xml = simplexml_load_file("$base_url&origin=Lahore&destination=Multan"); echo $distance = (string)$xml->route->leg->distance->text; echo $duration = (string)$xml->route->leg->duration->text driving, walking and other modes are working but fly is not working.

Member Avatar
Member Avatar
+0 forum 2

The End.