google-maps-api-3

Google Maps Javascript API Doesn't Respond to Touch Events in iOS 10

左心房为你撑大大i 提交于 2020-01-12 08:04:49
问题 I run a website with a number of custom Google Maps built in (showing various locations on a map after a search or generating directions to/from a location). I use Google Maps Javascript API for this. My users have started reporting that on iOS 10, these maps no longer respond to touch events -- they cannot pinch-to-zoom nor can they click on the "pins" on the map to open the location info balloons. I've been searching all over for others who have had this issue to no avail. I found one

Trigger a click event on a Google Map Marker by clicking on a button and a seperate JS file with jQuery

早过忘川 提交于 2020-01-12 07:35:17
问题 I am using Google Map API v3 anf jQuery 1.11.0. I have a Google Map in the following div- <div id="googleMap" class="map_div"></div> The map has 4 markers and it's click event is added by this way in JS- google.maps.event.addListener(marker, 'click', (function(marker, i) //Adding Click Function { return function() { //Add Your Customized Click Code Here alert(locations[i][3]); //End Add Your Customized Click Code Here } })(marker, i)); Now I have a button in another part of the html ( outside

Export geoJSON data from Google Maps

别说谁变了你拦得住时间么 提交于 2020-01-12 02:37:07
问题 Is there built-in support or any library to export geoJSON data from the google.maps.Data layer or google.maps.Data.Feature or google.maps.Data.Geometry or even using Marker , Polyline and Polygon .I have code like this,for example: var point=new google.maps.Data.Point(m.getPosition()); activeFeature.setGeometry(point); console.log(activeFeature.getGeometry()); equiLayer.add(activeFeature); I would like to export this data to the server as geojson.Something like the toGeoJson method in

Add custom image to Marker Cluster without overwriting markers

折月煮酒 提交于 2020-01-11 14:44:05
问题 I have the following jQuery code which adds map marker clusters: markerCluster = new MarkerClusterer(map); I'm using markerCluster.addMarker(Marker); to add individual markers to clusters (full code block at the bottom of the page). The problem I have is my clusters have no image attached by default. I can do the following: var options = 'an image path'; markerCluster = new MarkerClusterer(map,markers,options); However as options is the third parameter, I effectively overwrite the second

Google maps myoptions will not work

你说的曾经没有我的故事 提交于 2020-01-11 14:24:11
问题 I'm trying to customize a map of Mass..to show 10 districts. I've added the link to the map created in "my places", but I can't get the map to center, zoom or title.. The center LatLng is Worcester.. nothing works Help !! Thanks <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>dist-layer</title> <script src="http://maps.google.com/maps/api/js?sensor=false"> </script> <script> function initialize() { // var myLatlng = new google.maps.LatLng(42.268843,71.803774); // zoomControl:false

How can I calculate a current distance to polyline points on google maps v2 in android?

早过忘川 提交于 2020-01-11 12:03:19
问题 I have used tutorial from the link below to display Google map route in Android app. My question is how can I calculate distance to polyline points on map? Like when I use Google maps app and it tells when a street turn is getting close. I want to implement similar feature in my app. I am able to display the route polyline on the map and it updates itself while I drive along it but I want it to warn me 500 feet in advance of a coming turn. How can I do that? Here is the link: http:/

Good Python library for plotting points on a U.S. map by zip code

╄→гoц情女王★ 提交于 2020-01-11 10:04:10
问题 I am working in python on a website that lets users search for used textbooks. When a user performs a search and selects a result to view, the site displays some details about the book (title, picture, price comparison across different websites, etc.), as well as, ideally, a map showing where the different sellers are located in the United States. What I am looking for is a nice way to plot points on a U.S. map by zipcode, since the search results I get from book sellers' APIs all provide

Good Python library for plotting points on a U.S. map by zip code

こ雲淡風輕ζ 提交于 2020-01-11 10:02:28
问题 I am working in python on a website that lets users search for used textbooks. When a user performs a search and selects a result to view, the site displays some details about the book (title, picture, price comparison across different websites, etc.), as well as, ideally, a map showing where the different sellers are located in the United States. What I am looking for is a nice way to plot points on a U.S. map by zipcode, since the search results I get from book sellers' APIs all provide

Google maps api works with browser inspect element

和自甴很熟 提交于 2020-01-11 09:23:35
问题 I've been struggling several day to try to fix google map canves plugin to in my app which uses twitter bootstrap. The map is to buggy full of grey patches, and it's never well center. but what I lately notice d is that once I click "inspect element" on the page containing the plugin, everything is normal and the map works fine. This might seem weird, but that is what I noticed. Anyideas what is the problem and how to fix it. Note: I tested it on chrome and firefox browser. Code page

Google Maps API v3: How to Set Zoom Level And Map Center To User Submitted Location?

北城以北 提交于 2020-01-11 08:25:34
问题 I have used this tutorial from Google to build a web app that finds the closest store from the user entered location: http://code.google.com/apis/maps/articles/phpsqlsearch_v3.html I have my app almost working the way I want it, upon page load, the map is loaded, centered and set to zoom level 6 and the user fills out the form with their location. The app then pulls all the store info from the db and populates the map with a marker for each. The zoom level seems to decrease aswell but I can't