google-maps

Why doesn't Google Places API return a business when given a lat/long like a regular Google Search does?

不问归期 提交于 2021-01-27 20:08:56
问题 Ok so let's say for instance I'm trying to find the business that is returned from this google search (using the Google Places API): https://www.google.com/?gws_rd=ssl#q=precision+services+6632+warrior+river+road+bessemer+al+35023 Firstly I use the Google Geocoding API to get lat/long for the exact address of the business(6632 Warrior River Road, Bessemer, AL) Then when I try to use the Place ID that is returned OR use a nearby search with that lat/long I am never able to get the business

Google Maps display route from json

天大地大妈咪最大 提交于 2021-01-27 14:27:01
问题 I have the next problem to display a route from basic JSON. I do a this call on backend side: curl to https://maps.googleapis.com/maps/api/directions/json I send back the response json to frontend In frontend I try render the route just for visual, why I don't use the google v3 API to get routeResponse object is because I don't want duplicate the same config as backend use and translate to requestObejct in frontent I try to create the routeResponse json based on backend json from googleapi:

GoogleMaps change icon's marker when MapStyle change

*爱你&永不变心* 提交于 2021-01-27 04:16:35
问题 I am doing a web dynamic project with a Google map in a body of my html/jsp page. I made a function which create a marker thanks to (lat,lng,map) and use a special image.png as icon in the parameters of the marker. In my map, I made two different styles (colors of map...) : "Day" and "Night". I want to know how can I change the icon of my marker when user click on Night to change the style. Indeed, the color of the marker is not good for this style of map... I tried to initialize a var image

GoogleMaps change icon's marker when MapStyle change

风流意气都作罢 提交于 2021-01-27 04:16:17
问题 I am doing a web dynamic project with a Google map in a body of my html/jsp page. I made a function which create a marker thanks to (lat,lng,map) and use a special image.png as icon in the parameters of the marker. In my map, I made two different styles (colors of map...) : "Day" and "Night". I want to know how can I change the icon of my marker when user click on Night to change the style. Indeed, the color of the marker is not good for this style of map... I tried to initialize a var image

GoogleMaps change icon's marker when MapStyle change

旧城冷巷雨未停 提交于 2021-01-27 04:15:33
问题 I am doing a web dynamic project with a Google map in a body of my html/jsp page. I made a function which create a marker thanks to (lat,lng,map) and use a special image.png as icon in the parameters of the marker. In my map, I made two different styles (colors of map...) : "Day" and "Night". I want to know how can I change the icon of my marker when user click on Night to change the style. Indeed, the color of the marker is not good for this style of map... I tried to initialize a var image

Android: requires unavailable shared library com.google.android.maps; failing

会有一股神秘感。 提交于 2021-01-27 04:09:27
问题 First of all, I set the Project Build Target in project\properties\android. I created AVD with Level 7 and 8 with Google APIs, set each AVD only the SD card size 4Gb, set the min version of SDK to 7 the target SDK to 8 in Manifest file. Without success. I delete all AVD and recreate those. After I reinstall Eclipse Rcp, Installed ADT in Eclipse, and Installed Android SDK, and create AVDs again. My GPS application is worked fine without Google APIs, in the earlier version I currently

Android: requires unavailable shared library com.google.android.maps; failing

妖精的绣舞 提交于 2021-01-27 04:09:07
问题 First of all, I set the Project Build Target in project\properties\android. I created AVD with Level 7 and 8 with Google APIs, set each AVD only the SD card size 4Gb, set the min version of SDK to 7 the target SDK to 8 in Manifest file. Without success. I delete all AVD and recreate those. After I reinstall Eclipse Rcp, Installed ADT in Eclipse, and Installed Android SDK, and create AVDs again. My GPS application is worked fine without Google APIs, in the earlier version I currently

Is it possible to change Google Map styles after the map has been initialised?

爷,独闯天下 提交于 2021-01-27 03:02:00
问题 I understand how to initialise a map with custom styles like the following: var styles = [ { featureType: "water", stylers: [ { visibility: "on" }, { color: "#ffffff" } ] } ]; var mapOptions = { zoom: 13, maxZoom: 15, minZoom: 12, center: new google.maps.LatLng(50.924229,-1.396841), disableDefaultUI: true, mapTypeId: google.maps.MapTypeId.ROADMAP styles: styles }; map = new google.maps.Map(document.getElementById('map'), mapOptions); But is it possible to change to another style once the map

Is it possible to change Google Map styles after the map has been initialised?

不想你离开。 提交于 2021-01-27 02:58:35
问题 I understand how to initialise a map with custom styles like the following: var styles = [ { featureType: "water", stylers: [ { visibility: "on" }, { color: "#ffffff" } ] } ]; var mapOptions = { zoom: 13, maxZoom: 15, minZoom: 12, center: new google.maps.LatLng(50.924229,-1.396841), disableDefaultUI: true, mapTypeId: google.maps.MapTypeId.ROADMAP styles: styles }; map = new google.maps.Map(document.getElementById('map'), mapOptions); But is it possible to change to another style once the map

Populating Google Maps infowindow with React renderToString

笑着哭i 提交于 2021-01-25 03:23:17
问题 I am building a GoogleMaps Polygon widget in React JS and want to populate the infowindow with a react component because I need some more complex HTML hierarchy, adding a button in it. I looked on StackOverflow because I wasn't sure how to get the innerHTML of a React component and found this: How to use a react component for showing Google Maps InfoWindow But after implementing I am getting an error on the renderToString function every first time a Polygon is being clicked, see below. Does