Assigned
Status Update
Comments
ca...@google.com <ca...@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
We have discovered the problem about the interpolate method on google geometry API.
We are trying to create a map. The drawing function of our map requires interpolation of the distance in length of 3 meters.
If the created polyline's distance is above 3 meters(etc. 3.1m), it needs to interpolate in fraction of 0.5. In this situation, we execute the interpolate method with starting lat, lng and end lat, lng and the fraction 0.5 by calculation of the distance between the starting coordiate and ending coordinates.
3 meters has a close degree angle of 1e-5, and interpolation doesn't work from that percision. We found the issue in this linkhttps://stackoverflow.com/questions/7636546/google-maps-v3-geometry-library-interpolate-does-not-return-expected-lat-lng
and analyzed the code.
We got the result that google has early returned the code with the same coordinate of the starting coordinate when the l (in this case meaning sinAngle) is too small.
we figured out the problem, but we were wondering why you guys were limiting the precision. We can get a better precision without this early return. if (1E-6 > l) return new _.Oe(a.lat(),a.lng());
Please contact <REDACTED> and <REDACTED> about this question when you need some additional information.