Assigned
Status Update
Comments
ka...@google.com <ka...@google.com> #2
We are building a polygon array with a click event: https://developers.google.com/maps/documentation/javascript/examples/polygon-arrays
However, looking for keyboard accessibility, we are not able to trigger the information dialog using a keyboard similar to how to map markers can be triggered using arrow keys:https://developers.google.com/maps/documentation/javascript/examples/marker-accessibility
Is there something we can do about it?
Thank you!
Map version: 3.49.12
However, looking for keyboard accessibility, we are not able to trigger the information dialog using a keyboard similar to how to map markers can be triggered using arrow keys:
Is there something we can do about it?
Thank you!
Map version: 3.49.12
Description
I want to drag the marker in a straight line and I this worked with the old Markers.
The logic is to calculate and reset position on drag event.
But the drag event moves the advancedMarkerElement where the cursor goes without reposition to a straight line
let ruler4 = new google.maps.marker.AdvancedMarkerElement({
map: map,
position: firstLatLng,
content: pinTextGlyph.element,
gmpClickable: true,
gmpDraggable:true,
});
ruler4.addListener('drag', (event) => {
repositionedLatLng = getFinalPoint(azimuth, localDistance, ruler2.position);
ruler4.position = repositionedLatLng ;
});