Questions tagged as 'google-maps'

1
answer

Google distance matrix, wait for callback to continue loop

I researched a lot about it and still could not find a solution. When I run the code below, the loop proceeds before the API callback. In the callback the variable this.userRoute.newRoute [i] .address is changed, so I need the loop to wait...
asked by 04.05.2018 / 17:35
0
answers

How to access methods of a Fragment from an Activity?

I have an Activity that contains a Fragment (and this Fragment is Google Map). I want for example, having a button in the Activity change the map type to Satellite. How could I do this through this Button? Activity: public class MainActivit...
asked by 26.04.2018 / 17:01
1
answer

Google Places API - Multiple keywords search using google places api with javascript

I am having trouble finding a way to search for more than one keyword at a time, I have not found anything in the google documentation about this. I need to look for sandwiches, but in São Paulo, especially in the interior, they call sandwiches...
asked by 13.04.2018 / 07:19
2
answers

Placing MapActivity in a Fragment

So, I have a MapActivity, but I'd like the map to be in a Fragment. How can I do this? I created a Fragment, implemented the MapActivity methods created by Android Studio, but I run into an error. The getSupportFragment () method turns red an...
asked by 20.04.2018 / 11:58
0
answers

Several points in google maps with ruby on rails

I need my map to be populated with points, these have the specific lat and long. I made iteration loops but always only returns the last record. <script> function initMap() { <% @units.each do |unit|%> var map =...
asked by 17.04.2018 / 23:45
1
answer

Open google-map info-window with ng-map without alias in ng-controller

I'm using this library (ng-map) / github . You are giving template rejection error in my controller, how could I solve this?    Error shown: Possibly unhandled rejection: info-window working as a template must have a container Co...
asked by 28.03.2018 / 16:11
0
answers

Google map rendered in gray screen

I am opening a modal using $uibModal , where it has a request, when the request arrives, it should render the map. The problem is that everything goes gray. Also, it's not centralizing ... you need to give a delay and then centralize ... O...
asked by 04.04.2018 / 16:26
0
answers

How do I get the full address from the Google Maps API?

I have a form in which I want to validate the person's zip code. I found an endpoint that returns me part of the address, but I would like the street too, does anyone know how to get the full address? This is the endpoint I'm calling: link...
asked by 18.03.2018 / 14:55
0
answers

Google Maps, remote server does not respond

Person, I'm working with geolocation, and I'm using a class to receive data from my remote server, such as lat, lng, until then it was working but I do not know what happened that my application stopped receiving the positions registered in the...
asked by 16.03.2018 / 15:23
0
answers

List Google Maps points through a query

I would like to know how I can list the data of establishments in a 10km radius through a query in Google maps using an input Search of Google maps itself? An example that works perfectly is the Hyundai website: link     
asked by 15.03.2018 / 23:41