25,029 questions
-4
votes
0
answers
49
views
Text Placeholder for new Google Autocomplete
I have started using the new PlaceAutocompleteElement in React, but I cannot seem to set a placeholder value for the search box. The placeholder values are all well documented for previous versions of ...
1
vote
1
answer
117
views
How to extend zoom level beyond available WMTS tiles in Google Maps JavaScript API?
I'm working with WMTS tile layers from geoservices in the Google Maps JavaScript API. My issue is that the ORTHOPHOTOS layer has a maximum zoom level of 19, as no tiles are available beyond that (...
-1
votes
1
answer
90
views
How to access the actual Google Maps 3D canvas? (Needed for streaming)
I want to get the actual canvas of the Google Maps 3D html element to call a captureStream on it, because I want to stream the footage somewhere.
I am using the google maps beta channel.
Now the ...
1
vote
1
answer
75
views
How can I get the index of a google maps polyline path which is clicked
I have the following code to catch the polyline click
localPolyLine.addListener('click', (e) => {
});
Let's say the localPolyline has many points in it's path.
How can I get the index of the path ...
0
votes
1
answer
71
views
Some Maps Platform quotas are meaninglessly named `(Unlabeled limit)` for the Maps Javascript API, `gcloud alpha quotas info` not working either [closed]
In the Google Cloud console, Google Maps Platform section, some quotas are just listed as (Unlabeled limit) as can be observed in the attached capture.
Is this expected or is this a bug?
I tried to ...
1
vote
2
answers
148
views
Google maps place id refresh
I have a relatively simple question, I can't find an answer for. I'm using the google places api and store the ids. However the documentation states, that refreshing placeId is free of charge. It's ...
0
votes
1
answer
88
views
How to remove padding from Google Maps InfoWindow in Vue 3 to make image cover full popup?
I'm building a Google Maps component using vue3-google-map, and I want the image inside the InfoWindow to fully cover the popup — edge to edge, no default padding.
The problem is that Google Maps ...
0
votes
2
answers
242
views
NextJS + React Google Maps Api not working on production build
I have dependencies
"dependencies": {
"@react-google-maps/api": "^2.20.7",
"next": "15.4.1",
"react": "19.1.0",
&...
-1
votes
1
answer
105
views
Sometimes getting the wrong destination when using google maps distance_matrix API
I have a python script that uses distance_matrix from the Google Maps API (yes I know this is now legacy and replaced by routes, but I'm updating an older piece of code and don't really want to change ...
3
votes
0
answers
512
views
Google Maps embed iframe throws 'Uncaught Error: Nc' in console
I get this error on multiple sites when I'm using Google Maps embed:
Uncaught Error:
Nc https://maps.googleapis.com/maps-api-v3/api/js/61/3b/intl/hu_ALL/main.js:46
oaa https://maps.googleapis....
2
votes
0
answers
107
views
Google Maps types are outdated while updating google.maps.places.Autocomplete to google.maps.places.PlaceAutocompleteElement
I am using google.maps.places.Autocomplete in my project, as you can see, and getting a warning:
"js?key=YOUR_API_KEY&libraries=drawing,geometry,places:83
As of March 1st, 2025, google.maps....
0
votes
2
answers
473
views
Deck.gl causing "TypeError: Cannot set properties of undefined (setting 'adapter')" with vite dev mode
I have a React project that uses Deck.gl. The app has been working fine for several weeks, and is in production without issue. However, today, while developing, the app started crashing with these ...
0
votes
1
answer
113
views
Google Maps JS API – heading and tilt not working despite using vector map with mapId
I'm trying to enable tilt and heading rotation on a Google Map using the @react-google-maps/api library in a React app.
I have:
Created a Map ID via Google Cloud Console with:
Map type: JavaScript
...
-1
votes
1
answer
212
views
How to highlight region boundaries (country, state, county) on Google Maps like Azure Maps?
I'm trying to build a feature using the Google Maps JavaScript API where users can search for a region (such as a country, state, or county) and have that region's boundary automatically highlighted ...
0
votes
0
answers
63
views
Googlemaps API Loader setMap(null) not working on vue
I have this vue component
<template>
<div>
<div ref="mapContainer" style="width: 100%; height: 500px"></div>
<div v-if="routeInfo.distance&...
2
votes
2
answers
317
views
JavaFX 21.0.6 WebView problem loading Google Maps v3.58+ on Windows 11
Included below is a minimal application that attempts to load Google Maps using a JavaFX 21.0.6 application (compiled using the 21.0.5 JDK).
On a Windows 10 machine the code works as expected, but it ...
-2
votes
1
answer
119
views
Places API "REQUEST_DENIED (This API project is not authorized to use this API.)"
Places API (New) not working and returns "REQUEST_DENIED (This API project is not authorized to use this API.)"
I already activated the API and even removed all restrictions. I'm also using ...
4
votes
2
answers
431
views
Google Maps API – "This API project is not authorized to use this API" (REQUEST_DENIED)
I'm currently working on integrating the Google Maps API into my project and have enabled all required APIs, including:
Maps JavaScript API
Directions API
Geocoding API
Places API
Distance Matrix API
...
1
vote
0
answers
47
views
Can I use Cloud Google Maps Styles on mapTypeId other than roadmap?
I'm trying to use hybrid mapTypeId, but hide Point of Interest pins.
So I have a style set up in Maps Management with PoIs visibility hidden - however this is a roadmap style and when I use on my JS ...
0
votes
0
answers
72
views
Coordinate function in Google Maps API polygon?
Is anyone familiar with Google Maps API and putting polygons onto a still map?
I have a lot of coordinates I want to place down, but it's difficult to copy and paste every single one into the ...
6
votes
2
answers
3k
views
Google Places API (New) Autocomplete not working
I am trying to setup a map using the Places Autocomplete service so I can type an address and plot it on a map. I am using the @googlemaps/js-api-loader npm package to load.
The version when using ...
0
votes
1
answer
158
views
3.58 Breaking Change?
My mapping application broke with the upgrade to Google Maps JavaScript API v3.58 and above. I am trying to create a new google.maps.Polyline using a custom class that extends the Polyline with a few ...
1
vote
1
answer
121
views
How to limit google maps auto complete to only one country?
I have tried everything so my search input only gives autocomplete options from the Dominican Republic but I have not been able to achieve it, does anyone here know how to do this?
<input
type=...
3
votes
2
answers
742
views
AdvancedMarkerElement do not display on the map
Description of the issue
I have a vue app that worked with the legacy markers and i am moving to the new AdvancedMarkerElement. However, i am unable to make it work.
The whole logic works, listerners ...
0
votes
1
answer
105
views
How to detect when a user enters or exits an expressway using Google Maps API in Android?
I'm building an Android app where I need to detect when a user enters or exits an expressway.
I’m using the Google Maps API to track a user’s location in real-time.
How can I identify if the user is ...
0
votes
0
answers
45
views
How can I include postal codes in Google Places Autocomplete to differentiate similar addresses?
I have a form where users can input their address using the Google Places Autocomplete API. I’ve run into a problem where the autocomplete isn’t distinguishing between similar addresses in the UK, ...
1
vote
0
answers
50
views
Routes API is not returning the train route
I am using route API
https://routes.googleapis.com/directions/v2:computeRoutes
This is the body I am sending
"origin": {
"address": "Delhi"
},
"destination": {...
0
votes
1
answer
187
views
Deckgl + google maps click event
I have a polygon and a ScatterplotLayer, and both the polygon and ScatterplotLayer have click events. These click events work fine until the layers overlap. When the ScatterplotLayer is overlapped by ...
1
vote
1
answer
171
views
Change advancedMarkerELement position on drag event in order to be moved on a straight a line
I have changed from markers to AdvancedMarkerElement in google maps api.
I want to drag the marker in a straight line and I achieved this with the old Markers.
The logic is to calculate and reset ...
0
votes
0
answers
133
views
Using Google Maps API with DeckGLOverlay throws an undefined error
So I'm following this example by visgl from this PR: https://github.com/visgl/react-google-maps/blob/1a0ac6e13d15ceda5212d310ffc2370ffdd90e65/examples/deckgl-overlay/src/app.tsx
I even am using the ...
0
votes
0
answers
75
views
Google Maps JavaScript API - How to add hover effects to POIs?
Using maps.google.com, if I hover over a POI (point of interest), the cursor changes to indicate a clickable item, the text changes color, and a pop-up is shown. For instance, consider the case of me ...
0
votes
1
answer
151
views
Google Places Autocomplete API limit to residential address
Is there a way to limit google places autocomplete type to just, home address, condominium, flat, apartment or residential building? (for property listing)
Looking at the Place Types in https://...
1
vote
1
answer
355
views
How to avoid getting a 404 Error on Google Maps Routes API
I am trying to use Google Routes API, however it is returning a 404 error. No information on the network tab or anywhere else gives any indication of why this is happening so it is almost impossible ...
0
votes
0
answers
62
views
how to set the marker at the center and move the map around that marker in flutter and I dont what the cameraPosition while Zooming in or out
Movable Marker,
So this is the movable marker when the marker is dragged and dropped it only fetches the lat and long when it is dropped and it is working perfectly, but when I am Zooming IN and OUT ...
0
votes
0
answers
62
views
how to make the longitude and latitude lines on map disappear in google maps api [duplicate]
I have this map in js code in google map api, and I cannot find solution how to make longitude and latitude lines on map disappear.
An image showing the longitude and latitude lines I want to remove
...
-2
votes
1
answer
320
views
Uncaught (in promise) TypeError: Spread syntax requires ...iterable[Symbol.iterator] to be a function [closed]
as title writed. i got this error in google map api 3.59.1.
for some reason, i use leaflet + googleMutant to drive google map api.
since 2024/11/21 the 3.59 new one was pernounced, i try to change to ...
0
votes
0
answers
88
views
How can I get a URL to open the Google Maps app from a custom route accessed via python API?
I am creating a Flask webapp that involves the use of the google maps API. I currently have JS query the flask backend for navigation results, using the googlemaps python library reference to compute ...
0
votes
0
answers
40
views
Google Maps Directions API: Is it Possible to Specify Multiple Departure Times in One Request for Hourly Traffic Data?
I want to display a chart showcasing the hourly traffic for a specific route on Google Maps. Based on the documentation, it seems I need to call the API multiple times to retrieve traffic data for ...
1
vote
0
answers
114
views
Google Maps API (Cloud Platform) How to change this text color using style editor (instead of JSON Array)?
When I changed the text fill color and stroke color it appears all fine on the preview Custom Maps editor, but when I applied the custom style to map-ID, and use the map-ID in javascript, the text ...
0
votes
1
answer
2k
views
Cannot find native module 'ExpoLocation', js engine: hermes
I'm trying to import the expo-location in my react-native app with expo.
I installed the library with this command:
npx expo install expo-location
And importing it:
import * as Location from 'expo-...
0
votes
0
answers
118
views
Google Maps: Over 200 markers and clustering - Slow
I get the data async from the backend so there is not really a way to load it from memory.
I created the map like this
@Composable
private fun HoaxLocatorScreen(
cameraPosition: ...
2
votes
0
answers
75
views
How to Prevent Google Maps ImageMapType Overlay from Overloading and Freezing During Rapid Zooming in React
I'm using the Google Maps JavaScript API with React and TypeScript to add a custom ImageMapType overlay with dynamically generated tiles to a map. My application retrieves tile URLs through the ...
-1
votes
1
answer
49
views
on Google maps, how to have infowindow come up for different circles that are layered on top of one another but are different radii? [closed]
I have a map with a form above it. The user enters an address and the map places four circles of various radii around that address. I want the user to be able to click each of the circles and get an ...
-1
votes
1
answer
171
views
how to change color of a google maps v3 Marker icon [closed]
I'm placing a series of google maps Markers on a page using an array of points and a circle as an icon.
Once all the markers are on the page, I want to change the fill color of one of the Marker ...
-4
votes
1
answer
91
views
Why does Google Map restrict the zoom if the origin and destination are the same places?
I have a use case for a map that requires showing a marker with the same lat/lng for it's origin and destination.
However, I find that it often results in these:
Image
where the marker is not centered ...
-3
votes
1
answer
276
views
google new text search api returning data out of bounds
I’m using Google’s new Places API with the Text Search feature, but I’m running into an issue. Often, when I search for a keyword in a specific location, I get results that are far outside the desired ...
-1
votes
1
answer
286
views
How to restrict autocomplete suggestions to given state? [closed]
I have an address form and I'm using Google's Places Autocomplete (new) API to autocomplete the fields.
I have 3 fields:
country
administrative_area_level_1 (State / Province)
locality (City / Town)
...
0
votes
1
answer
120
views
Google Maps API onClick event: how to reduce the debounce delay for multiple or fast clicks?
I have implemented the regular strategy for getting the onClick event on the google maps api:
map.value.addListener("click", (event) => {
onClick(event);
});
This works well for most ...
1
vote
0
answers
162
views
I keep getting a Pod install error in terminal
I'm trying to use the google maps SDK api for an xcode (version 16.0) project, I downloaded Ruby 3.1.0 using Rbenv, and I have Cocoapods (1.15.2) downloaded. I verified that I'm using Ruby 3.1.0 by ...
-2
votes
1
answer
175
views
Integrate Google Maps static API with email AMP [closed]
We would like to submit a form in email created with AMP4EMAIL to Google Maps Static API and retrieve an image to be displayed in the email according to the form submission.
How can CORS requirement ...