Skip to content
Snippets Groups Projects
Commit a3a4d53d authored by Florent Lavelle's avatar Florent Lavelle
Browse files

fix wrong id on popup link for csv imported features

parent 81f656f6
No related branches found
No related tags found
No related merge requests found
......@@ -561,7 +561,12 @@ const mapService = {
</div>
${author}
`;
const featureId = feature.getProperties ? feature.getProperties().feature_id || feature.getId() : feature.id; //* feature.id was used with leaflet, with ol feature.getId replace it, but keeping it as fallback can prevent regression
const featureId =
feature.getId() ?
feature.getId() :
feature.getProperties ?
feature.getProperties().feature_id :
feature.id;
return { html, feature_type, featureId };
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment