We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4c7f152 + e0ffd6b commit 8f5f1a8Copy full SHA for 8f5f1a8
1 file changed
lib/parser/from_geojson.ts
@@ -200,7 +200,14 @@ export async function from_geojson(
200
201
if (feature.properties.icon) {
202
// Web Rendering uses a ":", to avoid issues we support it on input and normalize it to a "/"
203
- feature.properties.icon = feature.properties.icon.split(':').join('/')
+ if (feature.properties.icon.includes(':')) {
204
+ feature.properties.icon = feature.properties.icon
205
+ .split(':').join('/')
206
+
207
+ if (!feature.properties.icon.endsWith('.png')) {
208
+ feature.properties.icon += '.png';
209
+ }
210
211
212
cot.event.detail.usericon = { _attributes: { iconsetpath: feature.properties.icon } }
213
}
0 commit comments