Most voted "google-maps" questions
The Google Maps Apis family lets you incorporate the functionality of Google Maps into your own website and apps.
Learn more…530 questions
Sort by count of
-
0
votes1
answer695
viewsHow to get more accuracy in GPS using google Location on android
In my project, I need to get a current user location and address and constantly update my position because of greater accuracy. The problem is that when I got the location (Latitude and Longitude),…
-
0
votes0
answers60
viewsMap does not load en route
I am trying to upload a map into an HTML file that is mapped on a route using ui.router. Head of the index <head> <title>Página Inicial</title> <base href="/"> <meta…
-
0
votes0
answers150
viewsCentralize Google Maps between two Javascript routes
Good Afternoon, Folks! I’m facing problems to centralize using Google Maps API between 2 points, what happens follows in the images below. The application is in Ruby on Rails and we use the JS for…
javascript ruby-on-rails google-maps google-maps-api-3 maps-javascript-apiasked 7 years, 4 months ago João Henrique 33 -
0
votes1
answer897
viewsGoogle geolocation works on the pc browser, but not on the android browser
Using Ruby, Sinatra, Slim, Javascript, Google maps v3 API. Geolocation works perfectly in the browser on the PC, the map is generated with the partner marker, when you click on the button you are…
-
0
votes2
answers1639
viewsHow do I add bookmarks to the google map when I click it? - Javascript
I would like to know how to add markers to the map by clicking on a point on google maps. Actually create/add the marker "manually" I already know, what I would really like is to trigger the…
-
0
votes1
answer368
viewsGoogle maps: map does not render via javascript/jQuery call
I need to embed a map in my project. However, from the API’s own tutorial, I couldn’t get it to work, until I found out the problem was Bootstrap, or Laravel - or both, together. That is, although…
-
0
votes1
answer73
viewsHow to set different icons on the map at the beginning and end of the route?
I’m developing a tracking system and I need you to consult the route the vehicle went through. I want the initial and final point to be identified with another icon according to the image. It also…
-
0
votes1
answer223
viewsMarkerclusterer on Map with PHP echo XML
Hello, I am developing a map looking at the google api and the first step is completed, bring all establishments within the map, to be able to do this I looked at the google reference How to use…
-
0
votes1
answer422
viewsChanging position of a Marker
I have a Mapsactivity class, where it starts at a fixed point set on the map. I’m calling a Thread, where the Map is only fully loaded, when the return is true. (I will do a search in a comic book…
-
0
votes0
answers67
viewsWhat did I do wrong that the caption doesn’t position itself correctly?
Good morning. The code below shows a caption on google maps, only that the caption is appearing at the bottom of the map, not positioning itself according to the instruction:…
google-mapsasked 7 years ago Ito 1 -
0
votes1
answer338
viewsWhat is the best way to store Google Maps points in the database?
I am developing a system that will store some Google Maps paths of registered users and structured my table as below: ---------------------- | trajetos | ---------------------- | id | | id_usuario |…
-
0
votes2
answers126
viewsCustom icon does not display on Google Maps
I am developing an app that loads a map with some custom markings, these markings work perfectly, but the icon property is not working. I tried to put the icons of Google itself, I tried to leave…
-
0
votes1
answer211
viewsRun image from google maps not working
Well I need to run the icon image according to the header that comes for me. I’m trying to make several but none of them worked, let’s go to the codes. FIRST ATTEMPT [PATH OF THE ICON] this.marker =…
-
0
votes0
answers691
viewsHow to change the zoom on a particular location in google maps api v3?
I’m trying to get the map dee zoom into a certain markers location when they are created in Firebase. I’ve already tried to use the setZoom() setCenter() but what happens is this: I’d like him to go…
-
0
votes0
answers496
viewsGoogle maps measure mileage between two points per hour
Next galera: has how in google maps measure speed (mileage) between two points by the time of each point example: Point A (Lat and Long + time type 10:00 hs) Point B (Lat and Long + time type 11:00…
-
0
votes1
answer235
viewsPolygon events on google maps with javascript
I need to capture the event of DWELL, ENTER, LEAVE of the polygons, can already add them on the map with the following code: this.map.addPolygon({ points: geofence, strokeColor: '#FF0000',…
-
0
votes1
answer81
viewsPicking up data in pairs in sequential lines
I’m reading a spreadsheet csv with pandas across pd.read_csv(). The spreadsheet contains vehicle location data every moment. For example: Place 1: Latitude a, Longitude a Place 2: Latitude b,…
-
0
votes2
answers1034
viewsMeasure distance from multiple points using Google
I’m working on an app where the user can see the closest establishments to it. In the bank I keep the latitude and the longitude, and in mobile I recover the user’s position. I made a LIMIT in SQL…
-
0
votes1
answer199
viewsWhy can’t I add a marker by clicking on the map?
I’m using this code: import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.OnMapReadyCallback;…
-
0
votes0
answers93
viewsGoogle Maps Api V3 Div Bug
My Google Maps, when it is in the zoom "global" and I use draggable, it disappears, as if it were some bug in the div. OVERVIEW, WITHOUT DRAGGABLE. DRAGGING THE MAP IN THE OVERVIEW. CSS CODE: html,…
-
0
votes0
answers209
viewsForce the keypress enter or Submit form into form with JS, Geolocation!
Guys, I have the following problem to solve.. I’m using the google API to pick up the user’s current geolocation, but when you click on the icon that picks the geolocation the form is only submitted…
-
0
votes0
answers95
viewsListener (Listener) for Google Maps v2 Android Camera Zoom changes?
I’m using the Cameraposition() to get Camera Zoom on Google Maps mMap.getCameraPosition().zoom It works perfectly when I call somewhere in the code, but I would like to create a Listener (Listener)…
-
0
votes1
answer226
viewsPerform one page function on another
I have a question regarding my project. I have a button in a page "x" that when clicking it checks the geolocation in Google maps (fills the inputs with the coordinates). So far so good, I need to…
-
0
votes1
answer33
viewsOpen google-map info-window with ng-map without alias in ng-controller
I’m using this library (ng-map) / github. Is giving template rejection error in my controller, how could it solve this? Error shown: Possibly unhandled rejection: info-window Working as a template…
-
0
votes1
answer98
viewsGoogle Places API - Search with multiple Keywords using google Places api with javascript
I’m having trouble finding a way to search for more than one keyword at the same time, I couldn’t find anything in the google documentation about it. I need to look for sandwiches, but in São Paulo,…
-
0
votes1
answer49
viewsGoogle Distance Matrix, wait callback to continue loop
I’ve done a lot of research on the subject and I still can’t find a solution. When I run the code below, the loop proceeds before the API callback. In the callback the variable…
-
0
votes0
answers189
viewsWhy does the Google Maps API work in the APK release, but it doesn’t show the map in the APK loaded in the Beta open testing store?
In APK release key goes. In store APK does not show the map. Follow the manifest: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="br.com.blablabla.blablabla.android"…
-
0
votes2
answers44
viewsLoading Google Map
I want to link to a website I’m developing a Store API. I am using the following Google API - https://developers.google.com/maps/documentation/javascript/examples/marker-labels?hl=pt-br If I copy…
-
0
votes0
answers255
viewsMy Google Maps API Credential Has Stopped Working
I have an Android application and is no longer loading the bookmarks on the map, application that is active in Google Play Store, no update was made on apk, no key was changed in Google Cloud…
-
0
votes2
answers204
viewsMap navigation intent for all apps [mount route]
I’m looking for a way to give user option select which app mount your route (Waze, google maps, Uber...), but just does not work on google maps. When I choose it, it just shows the location on the…
-
0
votes1
answer446
viewsChanging color of a circle of a marker - Google Maps v3
The map correctly loads, the markers in the addresses coming from the bank, until then everything well, then happens a check if it has a marker superimposing the other, inside a if, I want to change…
-
0
votes0
answers86
viewsProblem Configuring Google Maps API
Guys I can’t set up the Google Maps API, I’ve put my Keys and everything but it won’t. <!DOCTYPE html> <html> <head> <title>Simple Map</title> <meta name="viewport"…
-
0
votes0
answers61
viewsI can’t draw a Polygon on Google Maps
I’m trying to square it with the coordinates, but it won’t show. There is no error in the browser, the map is created normally, only the square does not appear: var map; function initialize() { var…
-
0
votes1
answer26
viewsI can’t add Overlayview
I need to add a OverlayView on a map in a project Ionic3. The Google tutorial was used as a basis: Add Custom Overlayview The code used is a pro adaptation TypeScript that I found researching. Code:…
-
0
votes0
answers89
viewsDisplay static map Google with Picasso on Android
I am developing an app by Android Studio, I would like to create a Recyclerview where you have an Imageview and upload a static image of a determining point on the map. As here:…
-
0
votes0
answers193
viewsView locations by searching for the address in the JSON file / Google Maps Api
Hello, I’m in need of doing a search in the json file, where the attributes that will return me the location would address(Street, Number, Neighborhood, City) and with this information in hand…
-
0
votes0
answers137
viewsTo use the Google Maps API, do you need to enable billing?
I’m trying to put a map on the site, but Google says in the browser console that you need to enable billing. That’s right? window.initMap = function(){ if(document.getElementById('mapa')){ map = new…
-
0
votes1
answer24
viewsError using getDetails() from googlemaps API, Typeerror: this is null (Ionic, angular)
I’m new at Ionic and angular. I’m looking for nearby places using nearbySearch() that returns a resolve of results, of this results caught the place_id of the place and put in the function…
-
0
votes1
answer984
viewsObtain approach radius from a geographical coordinate
I have a PHP application that gets the latitude and longitude of an address, using the Google Maps API. The idea is to delimit a "tolerance" distance around this point to later validate whether the…
-
0
votes0
answers37
viewsDoubt about google map
Hello, I have a question about the google map and I can’t find an answer on the internet, basically I wanted to use a map with interactive black colors as the google map and I had to do several…
-
0
votes0
answers31
viewsperform the function again via the same button
Hello i have a script for google markers that works like this: i have a function that reads json, reads select, sees which or which options are selected in select within HTML, deletes markers (which…
-
0
votes0
answers27
viewsClear markers and put the selected [javascript]
Hello I am creating a script to remove the markers and put only the specific markers, but it is only working once if I then try to select another filter the markers appear all back and do not erase…
-
0
votes1
answer121
viewsRemove options from Google Maps
I’m using the Google Maps and would like to take away all other options (restaurants, churches, schools, posts, etc.) and leave only my markers Currently I start the map like this: function initMap(…
-
0
votes1
answer40
viewsMy asynchronous function does not return the value where it is called, but within its scope is working right. Reactjs + google maps
import React, { Component } from "react"; import { Map, GoogleApiWrapper, Marker } from "google-maps-react"; import { MAPS_API_TOKEN, GEOCODE_API_TOKEN } from "../Enviroments/dev"; import Geocode…
-
0
votes1
answer282
viewsSave user latitude and longitude in variables
Good afternoon, I am doing some projects using the Google Maps API and wanted to know how to save the values of latitude and longitude of the user in a variable each, which will be used later in…
-
0
votes1
answer36
viewsHow to set the google maps display by a form?
I applied viacep.com javascript in a form, so when the ZIP code is informed, it completes data such as address without number, city, state and neighborhood. I would like, with this information, to…
-
0
votes0
answers303
viewsPath between 2 points with polylines, google maps route
I made an app using flutter where I want to determine a path between two points. I can do it, but the problem is that the line that connects the points A, B doesn’t respect the streets... I use a…
-
0
votes1
answer96
viewsMake sure the Component is starting with the uppercase - React Native
I’m trying to load Google Maps into a project with React Native and TypeScript but it is returning me the error that the Component shall be started with a capital letter: Error: Invariant Violation:…
-
0
votes0
answers36
viewsAlternative to allow_url_fopen using xml and geolocation
Meta: User type an address and I must recover it by means of geolocation. Problem: The code below works locally and returns the latitude and longitude value. However, I need it to work on the…
-
0
votes0
answers19
viewsError in javascript code (import google maps)
I see in the console from the browser that shows the following error: Uncaught Referenceerror: Lat is not defined addMarker (functions.js:17) at window.onload (functions.js:44)…