google-maps-api-3

Why MissingKeyMapError using tag p:gmap with primefaces (in the simplest example)?

馋奶兔 提交于 2019-12-23 05:03:36
问题 I have read that, since Google Maps V3, developers do not need any api key in order to use google map api. My code is the following (the simplest one to visualize a google map). I have tried to run it both on google chrome and on firefox, but in both of them, the map popped up a few seconds and then the app raised this exception: js?sensor=false:32 Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error_.ab @

Google Map Road API not interpolating path and not giving smooth route

社会主义新天地 提交于 2019-12-23 04:57:17
问题 I am trying to get smooth route for below route path using road API in Roads Inspector but not getting smooth route.Google road api failing to provide smooth route.Some portion of route is not smooth with actual road route e.g at turns, at bridges etc. Please have look for below route path and provide solution to get smooth route/more accurate route along actual road. Points: 42.04144333333333,-88.060575|42.04123666666667,-88.06014333333333|42.04119166666667,-88.06017166666666|42.040835,-88

Google Maps click on InfoWindow

[亡魂溺海] 提交于 2019-12-23 04:51:21
问题 I am trying to call a function when user touches(clicks) on infoWindow. User scenario: User clicks on a google maps marker, an info window opens. User clicks on an item in infoWindow content. This click calls a function and another page opens. I am doing this in ionic 2 and typescript. Here is the info window content : text2 = text2 + '<div id="wrapper">' + '<div id="sidebar" >' + '<h5 onclick()=" '+ this.goToDealPage(businessDetails.deals[a])+ ' ">'+ businessDetails.deals[a].deal.title +'<

For angular google maps I want it possible for only a polyline to be drawn from the drawingModes and not a RECTANGLE for example

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 04:51:11
问题 For angular google maps I want it possible for only a polyline to be drawn from the drawingModes and not a RECTANGLE for example. I've got the actual polyline working and recording when the drawing is complete. I just want to hide the other options. I'm using angular version 1 with javascript, using an angular directive and template. In short I need to disable the other drawing options. This is my html: <ui-gmap-google-map center="config.map.center" zoom="config.map.zoom" options="config.map

How to get only administrative_area_level_2 from Google Geocoding API?

耗尽温柔 提交于 2019-12-23 04:45:59
问题 I am attempting to get only the county name from a Google geolocation API result. Unfortunately, the county is not always in the same spot for the results so I need to grab it by an identifying key administrative_area_level_2 Here's my call: $.getJSON( { url : 'http://maps.googleapis.com/maps/api/geocode/json?latlng=' + position.coords.latitude + ',' + position.coords.longitude + '&sensor=true', data : { sensor : false }, success : function( data, textStatus ) { var county = data.results[0]

Google place api search result with place_id returns different location with place_id

 ̄綄美尐妖づ 提交于 2019-12-23 04:45:16
问题 I'm using google places api, but it returns the value with different place_id. I have considered this blog : https://developers.google.com/places/documentation/search I have requested with place id like this : https://maps.googleapis.com/maps/api/place/details/json?key=AAIS... In this url, you can see that the place_id is "EiJ..." But in the returning json, i have received different place_id. "place_id" : "AASS...", "reference" : "df..." When I have tried with reference, it was the same. What

inside lat,lng bounds where query

萝らか妹 提交于 2019-12-23 04:35:26
问题 I am getting lat/lng bounds from google map in client side through xhr to my php script. which is making an sql query to search location within that bounds. My table stores lat, lng as different columns. now how can I arrange my where queries such that only the points within the specified NE, SW bounds are returned. In database its stored as number and I don't know if there already is any postgresql specific aggregate function to do the same. 回答1: Am I missing something? It's just a

How to get list of restaurants by using google maps. I want to get more than 20. Is it possible?

社会主义新天地 提交于 2019-12-23 04:34:26
问题 How to get list of restaurants by using google maps. I want to get more than 20. Is it possible? Btw, google places impossible to use, because in my case Ukrain Donetsk city doesn't show any restaurants in google places. But when I use simple google maps it shows all restaurants. How to get this list of restaurants which google maps shows. I.e. like this information: Restaurant name and address. Thank you very much. Regards, Sergey. 回答1: It's not possible to use more than 20 results, and it's

How to get list of restaurants by using google maps. I want to get more than 20. Is it possible?

安稳与你 提交于 2019-12-23 04:34:20
问题 How to get list of restaurants by using google maps. I want to get more than 20. Is it possible? Btw, google places impossible to use, because in my case Ukrain Donetsk city doesn't show any restaurants in google places. But when I use simple google maps it shows all restaurants. How to get this list of restaurants which google maps shows. I.e. like this information: Restaurant name and address. Thank you very much. Regards, Sergey. 回答1: It's not possible to use more than 20 results, and it's

Google Maps Multi-Touch: Touching on Google Maps while simultaneously touching outside of the container hijacks touch event

烈酒焚心 提交于 2019-12-23 04:26:30
问题 I'm creating an Angular project in which I'm using the Google Maps Javascript API to create a multi-touch application where users can interact with the map as well as other components simultaneously. (For example, one user can be moving the map around while another user is moving a separate component all simultaneously) I'm already able to successfully do multi-touch actions between other components so I know it's not a problem with my code but I think there may be something wrong with Google