I am using angularjs-google-maps and I get an error when trying to block my clients as markers on the map.
<map> <custom-marker ng-repeat="cust in customers" position="[ {{ cust.lat }}, {{ cust.lon }} ]"> <div class="{{ cust.category }}">{{ cust.name }}</div> </custom-marker> </map>
The error seems to be related to cust.category and cust.name , since they work fine when deleted.
This is the first couple of lines of the error message I get:
Watchers fired in the last 5 iterations: [["[ cust.category , cust.name ]; newVal: [\"pro\",\"Fred\"]; oldVal: [\"pro\",\"Fred\"]","fn: function (context) {\n try {\n for(var i = 0, ii = length, part; i<ii; i++) {\n
Full error message here .
Any help with this is appreciated. Thanks in advance!
UPDATE
The code for the custom marker directive is that part of angular-google-maps is here .
source share