Skip to main content

All Questions

-1 votes
1 answer
32 views

Trigger Google Maps advanced marker glick from HTML link

I'm in the process of updating an old Google Maps script to use the new advanced marker format. Everything is working fine in terms of dynamically generating the markers based on an array of ...
user3562286's user avatar
-2 votes
0 answers
25 views

Migrating google maps api Marker to AdvancedMarker, properties not found [closed]

I'm doing a migration of google map markers from google.maps.marker to google.maps.marker.AdvancedMarkerElement , but the problem is when i try to use old properties visible, clickable from marker i ...
Luis Soto's user avatar
0 votes
1 answer
37 views

how to set new color for legacy google map marker

I'm using a legacy version of google maps. I set up my markers like this, using Json data to fill in the variables: var marker = createMarker(marker_id, point, course_name, phone, holes, ninefee, ...
LauraNMS's user avatar
  • 2,806
0 votes
0 answers
63 views

Is there a way to have Advanced Map Markers render in the map canvas instead of on top of it in the DOM?

Currently my team and I have been researching how to improve map performance using the Google Maps API for our software application. The app we are working on needs to support thousands of Markers and ...
Joshua Coldsmith's user avatar
3 votes
0 answers
247 views

React Google Maps API MarkerClusterer rerender

I'm working on a proximity app. The database contains longitude, latitude and a geohash of each item. The client supplies GPS coordinates to the server. The server then converts those coordinates to a ...
Sebastian Meckovski's user avatar
0 votes
0 answers
158 views

AdvancedMarkerElement: making drag behaviour more like legacy Marker

With the legacy Marker, when dragging a marker there is a nice little crosshair to give the impression of a precise positioning movement, and this crosshair disappears automatically at the end of the ...
drmrbrewer's user avatar
  • 12.5k
0 votes
0 answers
80 views

Is there a way to determine if I've loaded a google maps library, like marker?

If I dynamically load a library like this: const { AdvancedMarkerElement } = await google.maps.importLibrary("marker") as google.maps.MarkerLibrary; is there any way to determine if the ...
chuckd's user avatar
  • 14.1k
4 votes
1 answer
561 views

How to specify anchor in AdvancedMarkerElement?

Since support for google.maps.Marker ends on February 21, 2024, we are considering migrating to google.maps.marker.AdvancedMarkerElement. I replace the marker icon with an image, but I don't know how ...
函館太郎's user avatar
1 vote
0 answers
94 views

Google Maps Ground Overlay malfunctioning when zooming, moving or panning

I created a Ground Overlay on top of the UK with some markers and reestrictions but when i zoom, move or select a marker that pans to the marker positions the overlay breaks, the image it's quite ...
Inti's user avatar
  • 101
1 vote
2 answers
5k views

How to add custom properties to AdvancedMarkerElement in Google Maps API

I am migrating map markers to AdvancedMarkerElement and I want to add custom properties to AdvancedMarkerElement. Like this: new AdvancedMarkerElement({ map: this.map, position: data.position, ...
asad nextstair's user avatar
0 votes
0 answers
40 views

I can't set a default latitude and longitude for the marker

I have a form built with react-hook-form in which I enter the longitude and latitude, which is then reflected in the form and I also have a button to view the record, where I set the information in ...
Peter Alexander's user avatar
0 votes
1 answer
200 views

Trigger google Marker click listener on marker label click

I have a Google Maps application that displays some markers with custom labels. I want to trigger the marker click listener when the user clicks on the label, not only on the marker icon. However, I ...
Matteo Trupia's user avatar
0 votes
0 answers
37 views

Loading data from local json file to create google maps marker in pure javascript [duplicate]

I'm using JS Google maps API to create a custom map, to insert Marker I need to load coordinates from a local JSON file using pure javascript, I'm not an JS expert, normally I used Jquery. I followed ...
GGKMNTN's user avatar
  • 141
0 votes
1 answer
38 views

Control marker visibility by zoom level Reactjs

From the backend I receive data with locations, then I show them on the map. How can I make it so that on the map, depending on the zoom, the number of markers changes, and when you get closer, so ...
Raul Orujov's user avatar
0 votes
0 answers
589 views

Google Maps JS API - Advanced Marker - show only nearest markers

I have the following Google Maps API code which displays AdvancedMarkers markers on the map from a JSON list of postcodes. Then when a postcode is entered (for example "SP4") into the form ...
ianhman's user avatar
  • 83

15 30 50 per page
1
2 3 4 5
137