Skip to content

google-map markers property is not notifying #297

@thexs-dev

Description

@thexs-dev

When using a sample code as below

<google-map map="{{map}}" markers="{{markers}}">
  <template is="dom-repeat" items="{{locations}}">
    <google-map-marker latitude="{{item.latitude}}" longitude="{{item.longitude}}">
    </google-map-marker>
  </template>
</google-map>

markers changes are not visible outside google-map element, it always returns undefined

Just by adding notify:true within google-map element, markers property becomes available outside google-map element.

markers: {
        type: Array,
        value: function() { return []; },
        notify: true,
        readOnly: true
      },

Could you please, fix or report this issue to be fixed?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions