Skip to content

Commit

Permalink
fix: remove unintended se namespace prefix from filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jansule committed Feb 12, 2024
1 parent f58d53d commit 389b010
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SldStyleParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1190,6 +1190,10 @@ export class SldStyleParser implements StyleParser<string> {
* @returns The tagName as used by the configured sldVersion
*/
getTagName(tagName: string): string {
const ogcList = ['Filter'];
if (ogcList.includes(tagName)) {
return tagName;
}
if (tagName === 'CssParameter') {
return this.sldVersion === '1.1.0' ? 'se:SvgParameter' : 'CssParameter';
}
Expand Down

0 comments on commit 389b010

Please sign in to comment.