GoogleWebComponents / google-map

Google Maps web components

Home Page:https://elements.polymer-project.org/elements/google-map

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to render google-map-poly

marindimitrov opened this issue · comments

if (point.tagName == 'google-map-point')

Hello there,

This code doesn't work fine due to the fact the tagName is always uppercase (https://developer.mozilla.org/en-US/docs/Web/API/Element/tagName), so it never pushes the point to poly path. When I make the tagName lowercase, it works just fine.

if (point.tagName && point.tagName.toLowerCase() == 'google-map-point')

Is this the real issue or I'm missing something more major?

Thanks