Format POIs

This commit is contained in:
Norbert Renner 2021-03-19 10:23:37 +01:00
parent 7fc2f6bee5
commit da9ffd9224
5 changed files with 86 additions and 15 deletions

View file

@ -22,8 +22,9 @@ BR.Gpx = {
if (feature.properties.name) {
wpt.name = feature.properties.name;
}
if (feature.properties.type) {
wpt.type = feature.properties.type;
const type = feature.properties.type;
if (type && type !== 'poi') {
wpt.type = type;
}
return wpt;
}