我試圖用ng-hide來隱藏特定值爲空的多段線。 但它不工作,我得到一個黑色折線,我無法擺脫它。ng-hide在<shape>在NgMap不起作用
<ng-map center="{{lat}},{{lng}}" disable-default-u-i="true" zoom="15">
<shape ng-repeat="street in streets | filter : query.status" ng-hide="street.status.length === 0"
name="polyline"
path="[
[{{street.viewport.northeast.lat}}, {{street.viewport.northeast.lng}}],
[{{street.viewport.southwest.lat}}, {{street.viewport.southwest.lng}}]
]"
geodesic="true"
stroke-color="{{street.status | streetColor}}"
stroke-opacity="1.0"
stroke-weight="10">
</shape>
</ng-map>
這是一個好消息,如果它現在的工作:) –
我想他的意思是不是,它是一個錯字! –
是的,我明白了,謝謝;) –