Closed remotewhiteboard closed 8 years ago
Do you have some sample code?
Sorry, I have now put in the markdown above.
Probably has to do with a common angular mistake, binding directly to primitives.
Thanks for getting back to me so quickly.
I tried converting it to a a non primitive
the object:
$scope.loc={latitude:0, longitude:0}
and the filter checkbox
<input ng-checked="loc.latitude != 0" type="checkbox" eui-filter="ejs.GeoDistanceFilter('location').distance(100).point(ejs.GeoPoint([loc.latitude, loc.longitude]))" ng-model="filter.enabled">
Still no luck. So when I click the checkbox, it filters it fine. When I select a lat/lon from the dropdown, and set the object (and I checked, it is being set), it checks the checkbox, but it does not run the filter?
Anyway I can do it manually? Any other ideas?
So I have a filter setup
<input ng-checked="latitude != 0" type="checkbox" eui-filter="ejs.GeoDistanceFilter(\'location\').distance(100) .point(ejs.GeoPoint([latitude, longitude]))" ng-model="filter.enabled">
And was hoping it would fire when I set the latitude value. but it does not. I mean, when I set the latitude from a drop down, the input becomes checked, but it does cause the search to fire??