OpenLayers: How to refresh map after changing the vector layer
vectorlayer.refresh({force:true});
Try this.
For openlayers > 3
vectorlayer.getSource().refresh()
You should call redraw()
method on layer not map - this.vector.redraw()
vectorlayer.refresh({force:true});
Try this.
For openlayers > 3
vectorlayer.getSource().refresh()
You should call redraw()
method on layer not map - this.vector.redraw()