[問題] 關於 google map v3 api的 dragend問題

作者: slamgundam (Rick)   2015-06-13 13:58:35
想請問大家關於 google map v3 api的 dragend傾聽事件內透過Geocoder() API的座標位
置取得formatted_address的住址字串,然後要傳回給輸入欄位。
現在重點是當我移動Marker時,我無法把住址字串傳回給輸入欄位。
目前是有透過$watch來監聽.....但是一樣沒辦法把住址傳回給輸入欄位。
有透過console.log()來觀察,是有變化的。
我是用 IONIC Framework
手機排版...不好意思...
謝謝大家 ><"
這是在view內
<div class="list list-inset">
<label class="item item-input">
<input type="text" placeholder="Pickup location" ng-model-options="{ updateOn
:'default blur' }" ng-model="pickupLocation" ng-blur="pickupLocationEvent(pick
upLocation)" />
</label>
</div>

Links booklink

Contact Us: admin [ a t ] ucptt.com