My issue is with the marker event not working on a UI Google Map. I am using this link. Here is my view setup:
<ui-gmap-markers models="mapResult" fit="true" idkey="mapResult.id" coords="'form_geo'" click="'onclick'" events="mapResult.events" >
<ui-gmap-windows show="show" closeClick="closeClick()">
<div ng-controller="MapsDemoCtrl" ng-non-bindable>
<span style="color:#000;font-weight:bold;">
Formname : <a href='#/formspostview/{{id}}' style="color:#000;">
{{form_name}}
</a><br>
Username : {{user_name}}<br>
Date : {{createdAt | date: "MM/dd/yyyy H:mm"}}<br>
</span>
</div>
</ui-gmap-windows>
</ui-gmap-markers>
This is how I've set it up on the controller side:
$scope.onclick = function () {
// check if there is query in url
// and fire search in case its value is not empty
console.log("hai");
};
I'm struggling to get the marker event to work. Can anyone provide guidance on how to properly use the marker event?