Skip to content

Commit

Permalink
KML import: remove features default style to display layer style
Browse files Browse the repository at this point in the history
  • Loading branch information
nboisteault committed Jan 19, 2024
1 parent 5960c95 commit c0ef7b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/src/modules/Digitizing.js
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,8 @@ export default class Digitizing {
} else if (fileExtension === 'gpx') {
OL6features = (new GPX()).readFeatures(fileContent, options);
} else if (fileExtension === 'kml') {
OL6features = (new KML()).readFeatures(fileContent, options);
// Remove features default style to display layer style
OL6features = (new KML({ extractStyles: false })).readFeatures(fileContent, options);
}
} catch (error) {
lizMap.addMessage(error, 'error', true)
Expand Down

0 comments on commit c0ef7b1

Please sign in to comment.