【问题标题】:Angular Google Maps ui-gmap-markers labelsAngular Google Maps ui-gmap-markers 标签
【发布时间】:2015-07-06 13:41:13
【问题描述】:

我已经使用谷歌地图创建了 Angular 应用程序。在地图上我显示标记。但对我来说,如何创建一个将在点击时打开的标签(在 pin 上)仍然不明显。

请帮帮我

    <ui-gmap-google-map center='map.center' zoom='map.zoom'>
    <ui-gmap-circle center='map.marker'
       radius='8046'
       fill='map.circle.fill'
       stroke='map.circle.stroke'>
   </ui-gmap-circle>
   <ui-gmap-markers models="notices"
       coords="'location'">
   </ui-gmap-markers>
   </ui-gmap-google-map>

【问题讨论】:

    标签: google-maps google-maps-api-3 angular-google-maps


    【解决方案1】:

    需要在&lt;ui-gmap-markers&gt;标签内使用&lt;ui-gmap-windows&gt;标签

    <ui-gmap-markers models="randomMarkers" coords="'self'" icon="'icon'" click="'onClick'">
        <ui-gmap-windows show="show">
            <div ng-non-bindable>{{title}}</div>
        </ui-gmap-windows>
    </ui-gmap-markers>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-11-28
      • 2016-02-21
      • 1970-01-01
      • 2015-05-08
      • 1970-01-01
      • 2015-11-04
      • 2014-04-18
      相关资源
      最近更新 更多