You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
Someone correct if I am overlooking something, but it looks like the "markers" attribute is not getting populated with the current markers added on the page. The markers should be set in _updateMarkers where _setMarkers(newMarkers) is called, but that function is not set anywhere and the markers attribute still returns an empty list of markers when that attribute is referenced.
Activity
ammopt commentedon Aug 25, 2017
Hello @cmalagar,
I was having the same problem until I figured you have to declare the google-map-marker as:
<google-map-marker slot="markers" draggable="true" latitude="whatever" longitude="whatever"></google-map-marker>Notice the slot="markers" property. After that, my markers array is populated. You can see it in commit 361d389
This was the issue for me, at least.
Have a good one.
JohnRiv commentedon Mar 29, 2018
Thanks for figuring this out! Note this solution appears to need #354 to be merged in to work, otherwise you get this error: