我很難弄清楚它們在這種API /指令需要「coords」選項的格式。angular-google-maps指令不顯示標記
有人想過它嗎?問題:
<marker coords='{expression}'
icon='{expression}'
click='{expression}'
options='{expression}'
events='{expression}'>
</marker>
這是對marker-API的描述。所以,哪種格式我應該給協調?
我用盡了一切(陣列的兩個數字,新的google.maps.LatLng, 只是一個數字)
我的標誌是不是在我的地圖顯示...誰可以幫助?
這是我目前的HTML:
<google-map center="map.center" zoom="map.zoom" draggable="true">
<marker coords="[52.52000659999999, 13.404953999999975]"></marker>
</google-map>
UPDATE:這是我的標誌:
<marker coords="cities.list[0].LatLng"></marker>
和JavaScript控制檯顯示了這個:
scope.cities.list[0].LatLng
Q {d: 52.52000659999999, e: 13.404953999999975, toString: function, b: function, equals: function…}