google-maps-api-3

How to get the autocomplete list based on array of cities using Javascript

给你一囗甜甜゛ 提交于 2019-12-26 08:43:52
问题 I need to get the autocomplete values based on some city using google place API in Javascript. But as per my code its not working as expected. Here I have some cities in array like city=['Bhubaneswar','Balesore','abcd'] and When user will type to get the place the matching should be belongs to these cities only. I am explaining my code below. <script src="https://maps.googleapis.com/maps/api/js?key=MAP_KEY&libraries=places&callback=initMap" type="text/javascript" async defer></script>

How to get the autocomplete list based on array of cities using Javascript

佐手、 提交于 2019-12-26 08:43:04
问题 I need to get the autocomplete values based on some city using google place API in Javascript. But as per my code its not working as expected. Here I have some cities in array like city=['Bhubaneswar','Balesore','abcd'] and When user will type to get the place the matching should be belongs to these cities only. I am explaining my code below. <script src="https://maps.googleapis.com/maps/api/js?key=MAP_KEY&libraries=places&callback=initMap" type="text/javascript" async defer></script>

Where/How can I get Polygon data from Google Maps API?

不问归期 提交于 2019-12-26 06:51:26
问题 I really want to keep this question short, so.. I'd like to know If Google Maps possesses detailed info, in this case I need the polygon (array of coordinates) for a particular Municipality inside a city (ie. Envigado in the city of Medellin , Co) Is there a way to obtain this type of data? EDIT: I'm not sure if Google Maps is displaying the type of polygon geographic feature I need, as stated in an answer maybe not, but a simple query shows something interesting: 回答1: The boundaries on the

Where/How can I get Polygon data from Google Maps API?

孤街浪徒 提交于 2019-12-26 06:50:42
问题 I really want to keep this question short, so.. I'd like to know If Google Maps possesses detailed info, in this case I need the polygon (array of coordinates) for a particular Municipality inside a city (ie. Envigado in the city of Medellin , Co) Is there a way to obtain this type of data? EDIT: I'm not sure if Google Maps is displaying the type of polygon geographic feature I need, as stated in an answer maybe not, but a simple query shows something interesting: 回答1: The boundaries on the

how to change the radius of the circle of GeolocationMarker

别说谁变了你拦得住时间么 提交于 2019-12-26 02:10:24
问题 I'm trying to change the radius of the circle of the GeolocationMarker library to 3 km; here is my attempt: var geoMarker = new GeolocationMarker(); geoMarker.setCircleOptions({radius: 3000}); geoMarker.setMap(map); But it doesn't change the radius of the circle, that is the radius isn't at 3 km. How can I fix it? Thanks 回答1: It can't be done like this, the documentation you link to states: setCircleOptions(options:google.maps.CircleOptions) This method will ignore certain properties of the

how to change the radius of the circle of GeolocationMarker

纵然是瞬间 提交于 2019-12-26 02:09:52
问题 I'm trying to change the radius of the circle of the GeolocationMarker library to 3 km; here is my attempt: var geoMarker = new GeolocationMarker(); geoMarker.setCircleOptions({radius: 3000}); geoMarker.setMap(map); But it doesn't change the radius of the circle, that is the radius isn't at 3 km. How can I fix it? Thanks 回答1: It can't be done like this, the documentation you link to states: setCircleOptions(options:google.maps.CircleOptions) This method will ignore certain properties of the

… google maps Javascript API not supported. Use another Browser

拈花ヽ惹草 提交于 2019-12-25 20:32:01
问题 I am using two different third party programs (different companies) that apparently use the Google Maps Javascript API. When they load the map, the world map is shown, but an Error message is displayed: "Der von Ihnen verwendete Browser wird von Google Maps Javascript API nicht unterstützt. Verwenden Sie einen anderen Browser". (Translation: The browser you are using is not supported by Google Maps Javascript API. Use another browser). I am using Windows 7 and Internet Explorer 11.0.48. Early

… google maps Javascript API not supported. Use another Browser

◇◆丶佛笑我妖孽 提交于 2019-12-25 20:31:09
问题 I am using two different third party programs (different companies) that apparently use the Google Maps Javascript API. When they load the map, the world map is shown, but an Error message is displayed: "Der von Ihnen verwendete Browser wird von Google Maps Javascript API nicht unterstützt. Verwenden Sie einen anderen Browser". (Translation: The browser you are using is not supported by Google Maps Javascript API. Use another browser). I am using Windows 7 and Internet Explorer 11.0.48. Early

Is there possibility for registering URLs or domains in Google Maps API?

佐手、 提交于 2019-12-25 20:03:59
问题 Is there a way to register Authorized URLs in Google Maps via an API? Currently, I am manually adding URLs through the Google Maps Support portal, but I would like to be able to make an API call when a customer submits a new domain to my service. 回答1: Unfortunately, currently there is no way to manage API key restrictions programatically. There is a feature request in Google issue tracker to make it possible: https://issuetracker.google.com/issues/35829646 Please star this feature request to

how to change the marker image in google maps [duplicate]

删除回忆录丶 提交于 2019-12-25 20:02:54
问题 This question already has an answer here : how to change marker image in a google map (1 answer) Closed 2 years ago . i have 20 markers from which i want to show 10 markers with similar marker and with similar label ("A") , and other 10 i want to show with different marker image and different label ("B") . im getting all the marker with same image and same label js fiddle https://jsfiddle.net/9yq8y1p2/4/ var initMap = function () { var labels = '0123456789'; var labelIndex = 0; var myLatLng =