This repository was archived by the owner on Nov 30, 2018. It is now read-only.
This repository was archived by the owner on Nov 30, 2018. It is now read-only.
Uncorrect update #1229
Open
Description
Why marker uncorrect update? I have collection marker, and once I wanna update icon in one marker. But marker icon don't update, because update marker in collection occurs if change langitude and Latitude at marker.
Watch code equals, which compares two models(markers)
ModelKey.prototype.modelKeyComparison = function(model1, model2) {
var scope;
scope = this.scope.coords != null ? this.scope : this.parentScope;
if (scope == null) {
throw 'No scope or parentScope set!';
}
return GmapUtil.equalCoords(this.evalModelHandle(model1, scope.coords), this.evalModelHandle(model2, scope.coords));
};
equalCoords: function(coord1, coord2) {
return getLatitude(coord1) === getLatitude(coord2) && getLongitude(coord1) === getLongitude(coord2);
}
Maybe, updating not only if changed langitude and Latitude params, but and which changing other param marker, for example icon?
Or how change this compare their?