Skip to content

Commit c052fc8

Browse files
committed
fixed duplicate map icons issue after searching an address on a new issue
1 parent 72b9c68 commit c052fc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/javascripts/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ var App = (function ($, publ) {
639639
features[features.length - 1].setGeometry(geom);
640640
} else {
641641
var feature = new ol.Feature({geometry: geom});
642-
vector.getSource().getFeatures().push(feature);
642+
vector.getSource().addFeatures([feature]);
643643
}
644644
publ.updateForm(vector.getSource().getFeatures());
645645
publ.zoomToExtent(true);

0 commit comments

Comments
 (0)