The methods registerPatterns and registerSymbols are confusingly named, as they actually add the passed Patterns/Symbols as images to the map.
So they would be better named as addPatternsToMap / addSymbolsToMap respectively
Similarly getPatternImageId expects a "dataset" parameter, but it is in fact only a style config that is required
and registerPatterns expects patternConfigs but that is actually an array of Styles, so some renaming would aid understanding
The methods registerPatterns and registerSymbols are confusingly named, as they actually add the passed Patterns/Symbols as images to the map.
So they would be better named as addPatternsToMap / addSymbolsToMap respectively
Similarly getPatternImageId expects a "dataset" parameter, but it is in fact only a style config that is required
and registerPatterns expects patternConfigs but that is actually an array of Styles, so some renaming would aid understanding