【发布时间】:2017-11-13 02:52:45
【问题描述】:
我有一个 ng-map(使用流行的 ng-map 库通过 angularjs 实现 Google 地图):
<ng-map>
<div ng-repeat="loc in mapsCtrl.locations">
<marker ng-mouseover="mapsCtrl.handleMarkerMouseover({{loc}})"
...
</ng-map>
...但是鼠标悬停不会触发。如果我使用鼠标悬停它可以工作,但是会在存储在“loc”中的 JSON 上产生角度阻塞。我该如何解决?我想知道我是否需要在某个地方进行编译,但是我不想破解 ng-map 并且我不明白为什么需要编译,但这就像标记指令中的 ng-mouseover 可能不是是否正确编译为 Google 地图可以识别的事件?
【问题讨论】:
标签: javascript angularjs google-maps ng-map