You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Identify: support custom vocabularies for the media type attribute #12871
The media display type introduced in #12786 reads the media type from another attribute (mediaTypeAttribute), but only recognises MIME strings (image/png, application/pdf) or the literal display type names (image, video, panorama, ...).
Datasets often use their own vocabulary for that column: IMG, VID, PAN, 360, or numeric codes. Those values are not recognised, so the attribute falls back to file extension detection. That is not enough, because a panorama is a .jpg and cannot be told apart from a plain image.
Proposal
Add an instance level alias configuration in localConfig.json:
This new configuration will allow to have aliases to resolve correctly the media type in a project. These are the changes we will need to introduce:
One featureInfoMediaTypeAliases in localConfig.json global for the whole application.
Implementation and support needs to be introduced in the resolveAttributeDisplayType function (access the configuration with ConfigUtils.getConfigProp).
Value normalized with String(value).trim().toLowerCase() to support also numeric value.
Configuration keys must validated against DISPLAY_TYPES so a typo can't invent a renderer.
Documentation
What kind of improvement you want to add? (check one with "x", remove the others)
Activity
allyoucanmap commentedon Sep 8, 2026
There is an open PR #12843 working on web/client/utils/FeatureInfoAttributeUtils.js, if it's not merged yet keep it into account in this work