12place
Contour Map Creator All the ideas and discussions
21 votes Vote

Add elevation value to kml file.

The new feature "download kml file" is wonderful.

Please add elevation data for each contour.

David Rey Arvayo Carrillo , 27.02.2019, 17:32
Idea status: under consideration

Comments

Flo, 02.07.2020, 11:15
I second this, would be very useful.
David Reed, 22.08.2020, 10:37
It would be great if the "name" tag was the elevation label (instead of "Contour")

Also could the "description" tag be a set of key value pairs?
Elevation:
Color:
Created With:
David Reed, 01.10.2020, 10:53
Code to implement the suggestions above

```
if(document.getElementById("plotLines").checked){
var elevationStr = meter2unit(output[iPath].level,true);
var descriptionStr = '{"Elevation":"'+ elevationStr + '", "Color":"' + rgb + '", "Created With":"https://contourmapcreator.urgr8.ch/""}';
//plot polyline
svgString += ''
//kmlString += 'ContourContourContour11absolute' + thesePointsKML + '';
kmlString += '' + elevationStr + '' + descriptionStr + '' + thesePointsKML + '';
}
```

to replace the code that is currently in that `if(document.getElementById("plotLines").checked)` block.

Leave a comment