Status Update
Comments
ka...@google.com <ka...@google.com> #2
Thanks for the post!
Upon checking, it appears that this is a duplicate of
jc...@katapultengineering.com <jc...@katapultengineering.com> #3
Ohh my bad for not catching that. Thank you!
Description
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 Polylines on the map at the same time. Through some trial and error we realized that the Legacy version of Markers can be rendered directly on the map canvas when the
optimized
flag is set to true
and thedraggable
flag is not set on the marker. However, we also wanted to upgrade to Advanced Markers, but it appears that there is no way to get these markers to render on the canvas. For us, this resulted in Advanced Markers being significantly less performant than the legacy markers. Does anyone know of a way to get Advanced Markers to render in the canvas in the same way the legacy markers will?One of the ways we tried getting Advanced Markers to render in the canvas was by not adding the
gmpDraggable
flag when creating the marker. However, this did not result in the markers being rendered in the canvas but still had them render on top of the canvas in the DOM.I also asked this question in the Google Maps Help Community and was directed to ask this question here. My original question:https://support.google.com/maps/thread/278589337?hl=en&sjid=3384645650526377507-NA
I also asked this question on Stack Overflow and I was directed here: Stack Overflow link:https://stackoverflow.com/questions/78591862/is-there-a-way-to-have-advanced-map-markers-render-in-the-map-canvas-instead-of