google-maps-api-3

Enabling and Disabling Dragging Markers by Checkbox

*爱你&永不变心* 提交于 2020-01-05 08:56:24
问题 Can you please take a look at this Demo and let me know how I can make the markers Dragable when the check box is unchecked. Please be informed that all markers has their own associated checkbox it means that user can lock each marker which they want( Not all together). Initially all Markers are unchecked when they loaded to page . And finally I need to change the icon when the marker checked as lock. var contentString = ' -- Lock <input name="your_name" value="your_value" type="checkbox">';

How do I draw rectangle covering more than 180 degrees longitude using google maps drawing library?

匆匆过客 提交于 2020-01-05 08:53:27
问题 The issue can be seen on google's example page https://developers.google.com/maps/documentation/javascript/examples/drawing-tools. If you zoom out to a point where you can see the entire world, and try to draw a rectangle it will snap around to cover the opposite direction when more than 180 degrees of longitude are covered. I have not found any way to change this behavior in the documentation https://developers.google.com/maps/documentation/javascript/drawing. Is there a way to fix this? If

Custom Google Map v3 Controls Position Issue

我的未来我决定 提交于 2020-01-05 08:14:14
问题 I'm having an issue with three custom controls I have created for a map application. According to the API documentation: The API places controls at each position by the order of an index property; controls with a lower index are placed first. For example, two custom controls at position BOTTOM_RIGHT will be laid out according to this index order, with lower index values taking precedence. By default, all custom controls are placed after placing any API default controls. You can override this

Getting No response from google direction api

扶醉桌前 提交于 2020-01-05 08:08:36
问题 I am using google direction api to get direction/routes between two places. When I query http://maps.googleapis.com/maps/api/directions/json?origin=New%20York%20LaGuardia%20Airport%20Marriott,%20Queens,%20NY,%20United%20States&destination=200%20e%2057th%20st%20ny&sensor=false Iam getting Status = NOT_FOUND. But when I search this path from New York LaGuardia Airport Marriott, Queens, NY, United States to 200 e 57th st ny using https://maps.google.com/. Google display a direction path between

How to display a side panel on the left and Google maps api canvas on the right, filling remainder of page?

一曲冷凌霜 提交于 2020-01-05 08:04:44
问题 I need to be able to have a side panel that fills the height of the page on the left and a map filling the rest of the page on the right. I would like the side panel to have a width of 300px, regardless of the size of the browser with the map to the right of it. Also, I am not able to move any of the divs within #panel, they are all just aligned one after the other. Here's my css: body {margin:0;} #panel {height:100%; width:300px; position:absolute; padding:0;background-color:#8C95A0;} #div1

Google Maps API v3 Info Bubble [duplicate]

╄→гoц情女王★ 提交于 2020-01-05 07:56:14
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: InfoWindow not Displaying Still lingering on a problem that I do not understand. I do not see why this would not work and I'm sure it's something extremely simple. I've changed a few things and still nothing. I am trying to have a user click anywhere on the map and an infoWindow will tell them the lat/lng of that location. Thanks var window; function InfoWindow(location) { if ( window ) { window.setPosition

Google Maps API v3 Info Bubble [duplicate]

风格不统一 提交于 2020-01-05 07:55:13
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: InfoWindow not Displaying Still lingering on a problem that I do not understand. I do not see why this would not work and I'm sure it's something extremely simple. I've changed a few things and still nothing. I am trying to have a user click anywhere on the map and an infoWindow will tell them the lat/lng of that location. Thanks var window; function InfoWindow(location) { if ( window ) { window.setPosition

How to set precision of results returned by Google Maps v3 API directionsService?

强颜欢笑 提交于 2020-01-05 07:31:07
问题 The google maps v3 directionsService returns lat/long points that are sometimes longer than I want. Here is a call I might make: var request = { origin: start_position, destination: end_position, travelMode: google.maps.DirectionsTravelMode.DRIVING }; directionsService.route(request, function(response, status) { if (status === google.maps.DirectionsStatus.OK) { // do something with response, e.g. set the overview_path to a polyline; } }); The resulting response might return the following

Dynamically Add Image To Infowindow

六月ゝ 毕业季﹏ 提交于 2020-01-05 07:28:46
问题 I wonder whether someone may be able to help me please. I'm using the code below to load images onto a HTML page, which are pertient to the current 'Location' and 'User' id's. <div id="galleria"> <?php $dirlist = getFileList($galleryPath, true); $x = 0; foreach($dirlist as $file) { if((preg_match("/\.jpg$/", $file['name'])) or (preg_match("/\.jpeg$/", $file['name'])) or (preg_match("/\.png$/", $file['name'])) or (preg_match("/\.bmp$/", $file['name'])) or (preg_match("/\.gif$/", $file['name'])

Dynamically Add Image To Infowindow

走远了吗. 提交于 2020-01-05 07:28:30
问题 I wonder whether someone may be able to help me please. I'm using the code below to load images onto a HTML page, which are pertient to the current 'Location' and 'User' id's. <div id="galleria"> <?php $dirlist = getFileList($galleryPath, true); $x = 0; foreach($dirlist as $file) { if((preg_match("/\.jpg$/", $file['name'])) or (preg_match("/\.jpeg$/", $file['name'])) or (preg_match("/\.png$/", $file['name'])) or (preg_match("/\.bmp$/", $file['name'])) or (preg_match("/\.gif$/", $file['name'])