Skip to content

Commit

Permalink
Merge pull request #4260 from camptocamp/merge23b
Browse files Browse the repository at this point in the history
 Merge remote-tracking branch 'origin/2.3'
  • Loading branch information
sbrunner committed Sep 24, 2018
2 parents 85ddfe9 + ee85ae9 commit a2b768d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contribs/gmf/src/datasource/ExternalDataSourcesManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ const exports = class {
};

if (ngeoFile.isKml(content)) {
features = new olFormatKML().readFeatures(content, readOptions);
features = new olFormatKML({extractStyles: false}).readFeatures(content, readOptions);
} else if (ngeoFile.isGpx(content)) {
features = new olFormatGPX().readFeatures(content, readOptions);
}
Expand Down
2 changes: 1 addition & 1 deletion contribs/gmf/src/profile/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ exports.Controller_.prototype.getZFactory_ = function(layerName) {
if ('values' in item && layerName in item['values']) {
return parseFloat(item['values'][layerName]);
}
return 0;
return null;
};
return getZFn;
};
Expand Down
4 changes: 3 additions & 1 deletion examples/importfeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ exports.MainController = function($scope) {
* @private
* @type {ol.format.KML}
*/
this.kmlFormat_ = new olFormatKML();
this.kmlFormat_ = new olFormatKML({
extractStyles: false
});

/**
* @private
Expand Down
4 changes: 3 additions & 1 deletion src/profile/d3Elevation.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,9 @@ const exports = function(options) {
// Configure the d3 line.
line = d3.line()
.x(d => x(distanceExtractor(d)))
.y(d => y(linesConfiguration[name].zExtractor(d)));
.y(d => y(linesConfiguration[name].zExtractor(d)))
.defined(d => d.value !== null);


// Update path for the line.
g.select(`.line.${name}`)
Expand Down

0 comments on commit a2b768d

Please sign in to comment.