How can I get a collection of latitude/longitude pairs for a given LineString which may be in raw or compressed format in OpenLayers 6?
var draw;
function addInteraction() {
var value ='LineString';
if (value !== 'None') {
draw = new Draw({
source: source,
type: 'LineString'
});
map.addInteraction(draw);
}
}
addInteraction();