google-maps-api-3

How to know if sessionToken was implemented properly?

余生颓废 提交于 2020-04-18 06:04:41
问题 So I'm trying to implement a simple location autocompletion with the google places api. I'm using the autocomplete service for this (see: https://developers.google.com/maps/documentation/javascript/reference/places-autocomplete-service). What I'm doing right now is, creating an autocomplete token and renewing it if either 3 Minutes ran out (according to How long do the new Places API session tokens last?) or a place detail request was set (according to https://developers.google.com/places/web

Google Maps API : Rotation with a custom marker Icon

纵然是瞬间 提交于 2020-04-17 19:35:39
问题 I'm working with Google Map Javascript API and I'm trying to create a custom Marker with a custom Icon which works with rotation, var marker = new google.maps.Marker({ position: latlng, map: this.map }); marker.setIcon({ url:"assets/icon/nav.png", //path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW, scale: 1, rotation: heading, scaledSize: new google.maps.Size(35, 35), }); The rotation attribute is working with google.maps.SymbolPath.XXXX as the line commented in the code but not with a

Google Maps API : Rotation with a custom marker Icon

ⅰ亾dé卋堺 提交于 2020-04-17 19:30:19
问题 I'm working with Google Map Javascript API and I'm trying to create a custom Marker with a custom Icon which works with rotation, var marker = new google.maps.Marker({ position: latlng, map: this.map }); marker.setIcon({ url:"assets/icon/nav.png", //path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW, scale: 1, rotation: heading, scaledSize: new google.maps.Size(35, 35), }); The rotation attribute is working with google.maps.SymbolPath.XXXX as the line commented in the code but not with a

Google map does not display correctly in jupyter notebook

拜拜、爱过 提交于 2020-04-10 04:04:29
问题 I'm trying to use google map API to visualize some data in jupyter notebook. Here is the code I used to display basic map in jupyter: import gmaps import os import json import gmaps.datasets gmaps.configure(api_key="AIz....") fig=gmaps.figure() fig After I ran the code, nothing was displayed. I used my own google API key and couldn't figure out why the map isn't displayed. I'm new to the geojson field, so any idea or thoughts is appreciated. 回答1: Did you make sure Widgets are enabled in your

resizing a google map to fit a group of markers

大城市里の小女人 提交于 2020-04-05 19:19:00
问题 I'm using the V3 version of google maps, and wondered how to go about this-- I have an array of google.maps.Markers with their LatLng positions set. I would like to loop through the array and find the min/max latitude and longitude values of the markers, and center and resize the map so all the markers fit on the screen, with a small fudge factor. Looping through the markers array I can handle, but I'm not sure of how go about centering and resizing the map to fit them all (with a small

resizing a google map to fit a group of markers

此生再无相见时 提交于 2020-04-05 19:17:55
问题 I'm using the V3 version of google maps, and wondered how to go about this-- I have an array of google.maps.Markers with their LatLng positions set. I would like to loop through the array and find the min/max latitude and longitude values of the markers, and center and resize the map so all the markers fit on the screen, with a small fudge factor. Looping through the markers array I can handle, but I'm not sure of how go about centering and resizing the map to fit them all (with a small

resizing a google map to fit a group of markers

限于喜欢 提交于 2020-04-05 19:15:36
问题 I'm using the V3 version of google maps, and wondered how to go about this-- I have an array of google.maps.Markers with their LatLng positions set. I would like to loop through the array and find the min/max latitude and longitude values of the markers, and center and resize the map so all the markers fit on the screen, with a small fudge factor. Looping through the markers array I can handle, but I'm not sure of how go about centering and resizing the map to fit them all (with a small

Enabling and Disabling large amounts of markers in Google Maps API V3

左心房为你撑大大i 提交于 2020-03-28 06:26:54
问题 I have a program that will have a couple thousand markers on it. Performance isn't the issue here, but organizing the markers so they make sense is what I am going for. I was thinking about making a few check boxes and for example, turning group 1 which has 500 markers on and off and leave group 2 on which has say 200. I have not, however, in my research been able to figure out a viable method for this. I found this example: http://www.geocodezip.com/v2_MarkerCheckBoxesNoXml.asp. However, if

Enabling and Disabling large amounts of markers in Google Maps API V3

旧时模样 提交于 2020-03-28 06:25:33
问题 I have a program that will have a couple thousand markers on it. Performance isn't the issue here, but organizing the markers so they make sense is what I am going for. I was thinking about making a few check boxes and for example, turning group 1 which has 500 markers on and off and leave group 2 on which has say 200. I have not, however, in my research been able to figure out a viable method for this. I found this example: http://www.geocodezip.com/v2_MarkerCheckBoxesNoXml.asp. However, if

Google Maps API Deprecation Error in VueJS web app: utc_offset is deprecated as of November 2019 and will be turned off in November 2020

眉间皱痕 提交于 2020-03-25 18:59:30
问题 I'm currently receiving the following error in my VueJS web application. utc_offset is deprecated as of November 2019 and will be turned off in November 2020. Use utc_offset_minutes instead. As per Google Maps API documentation: The Places fields opening_hours.open_now and utc_offset are deprecated as of November 20, 2019, and will be turned off on November 20, 2020. These fields are deprecated ONLY in the Places Library, Maps JavaScript API. This guide shows you how to update your code to