google-maps-api-3

Access locations in My Places of a particular account through Google Maps API

大城市里の小女人 提交于 2019-12-29 06:27:32
问题 The Google Maps allow a user to add and group places in My Places . I would like to access the locations in a user's My Places programmatically instead of manually download the KML file. I did some search but could not find much helpful documentation or discussion on this topic. Apparently this is possible because this iOS app seems to be able to access it. The question is what Google Maps API or web services can provide this information? 回答1: No one answers this question. I found how to do

Correct redirect URI for Google API and oauth 2.0

若如初见. 提交于 2019-12-29 05:41:06
问题 I am making an application with the Google Maps API. I want to be able to have one person on a computer, watch what another person has edited to a map. I am thinking of passing information of the map to a Google Fusion Table. The other person will be able to see everything as a layer. I would like for the program to just run from the user's browser and not build a website for it. To edit the fusion tables, I need to gain access/tokens. I am currently trying to use these there javascript

Google Maps marker grouping

寵の児 提交于 2019-12-29 04:45:09
问题 I'm trying to achieve the following thing: Have different types of markers on my map for example, schools, libraries, bus stops and I want to be able to show/hide each group of markers. I have been searching google for a while but nothing came up :/ Any ideas how this can be achieved ? 回答1: There are various ways to tackle this, but let me show you one approach. First, let's start with an array of locations (borrowed from the Google Maps API Tutorials): var beaches = [ ['Bondi Beach', -33

Make custom overlay clickable (Google Maps API v3)

情到浓时终转凉″ 提交于 2019-12-29 03:35:29
问题 I have a custom overlay class ( ImageOverlay ) which inherits from google.maps.OverlayView . I want it to respond to Google Maps click events (not just DOM click events) but simply using addListener doesn't seem to do the trick. e.g. I have a shapes array which contains a mixture of google.maps.Polygon and ImageOverlay objects: for (var i in shapes) { google.maps.event.addListener(shapes[i], 'click', function(){alert('hi')}); } Clicking on the polygons triggers an alert but clicking on the

Responsive Google Maps v3 - Cannot get 100% height

依然范特西╮ 提交于 2019-12-29 02:09:32
问题 Been on this for a while now, I need to make the map height 100% of its container. And also keep it centred when its resizing. I have tried nearly all of the examples on here with no avail.. The code example below shows what I am using, there's markers and infowindows in there and also custom marker symbols too. I don't get any errors in the console. <script type="text/javascript"> var markers = [ { "title": 'xxxxx School', "lat": '53.004758', "lng": '-2.241232', "description": '<br/><a href=

Centering google maps SymbolPath on LatLon

安稳与你 提交于 2019-12-29 02:08:54
问题 Is there a way to get the google.maps.SymbolPath.FORWARD_CLOSED_ARROW to put the center of the icon at the LatLng position. It seems to be putting the point of the arrow there. I have tried to experiment with the anchor but to no avail. Here is my example code: var marker=new google.maps.Marker({ position: new google.maps.LatLng(50.124462, -5.539994), icon: { path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW, scale: 8, strokeWeight: 2, fillColor: '#009933', fillOpacity: 1, rotation: 210,

Google Maps Waypoints not showing whole path

戏子无情 提交于 2019-12-29 02:05:25
问题 I am drawing a simple route from a source to destination using Google Maps V3 Directions Service. I need to add some locations(midpoints or waypoints) that the route has to pass through. Google maps provides waypoints for this. I have referred to their documentation and example to add waypoints. But when I try to draw the route by adding waypoints the route is displayed only from the last location added in the waypoints array to the destination . I want the route displayed from src to

Google Maps Waypoints not showing whole path

随声附和 提交于 2019-12-29 02:04:52
问题 I am drawing a simple route from a source to destination using Google Maps V3 Directions Service. I need to add some locations(midpoints or waypoints) that the route has to pass through. Google maps provides waypoints for this. I have referred to their documentation and example to add waypoints. But when I try to draw the route by adding waypoints the route is displayed only from the last location added in the waypoints array to the destination . I want the route displayed from src to

Creating a multi color svg icon for google map marker

守給你的承諾、 提交于 2019-12-29 01:59:10
问题 I want to add a svg icon to the google map marker. Right now i am able to create a svg icon by a single path, Please find the code below: var car = "M17.402,0H5.643C2.526,0,0,3.467,0,6.584v34.804c0,3.116,2.526,5.644,5.643,5.644h11.759c3.116,0,5.644-2.527,5.644-5.644 V6.584C23.044,3.467,20.518,0,17.402,0z M22.057,14.188v11.665l-2.729,0.351v-4.806L22.057,14.188z M20.625,10.773 c-1.016,3.9-2.219,8.51-2.219,8.51H4.638l-2.222-8.51C2.417,10.773,11.3,7.755,20.625,10.773z M3.748,21.713v4.492l-2.73-0

Retrieving location address based on place name and city in Google Spreadsheet

好久不见. 提交于 2019-12-29 01:50:28
问题 I'd like to retrieve a place's location based on the name and address in Google Sheets, something like: =PlaceAddress("White House, Washington, DC") =PlaceAddress("Moma, New York, NY") =PlaceAddress("Google, Mountain View, CA") which would return results as they (respectively) appear in Google search, i.e.: 1600 Pennsylvania Ave NW, Washington, DC 20500 11 W 53rd St, New York, NY 10019 1600 Amphitheatre Pkwy, Mountain View, CA 94043 The Maps Apps Script service has a geocoder, but this seems