我正在尝试使用谷歌地图webcomponents,我正在尝试添加多个标记到纬度,多头位置我跟随问题creating a google map with marker using web-component我尝试添加多个标记,但标记没有添加
<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/google-apis/google-
apis.html">
<link rel="import" href="../../bower_components/google-map/google-
map.html">
<dom-module id="map-view">
<template>
<google-map map="{{map}}" disableDefaultUI fitToMarkers>
<template is="dom-repeat" items="{{marker}}">
<google-map-marker map={{map}} latitude="{{item.latitudine}}"
longitude="{{item.longitudine}}">
</google-map-marker>
</template>
</google-map>
</template>
<script>
Polymer({
is:'map-view',
properties:{
marker:{
type:Array
}
},
ready: function() {
this.marker = [
{latitudine: '41.223596', longitudine: '16.296087'},
{latitudine: '41.222450', longitudine: '16.291259'}
];
}
});
</script>
</dom-module>
我正在另一个div中使用map-view但是我无法获得多个标记
任何人都可以向jsfiddle展示如何向googlemap webcomponents添加多个标记吗?