8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 348d809 commit 9609782Copy full SHA for 9609782
src/openlayers/overlay/vectortile/MapboxStyles.js
@@ -388,7 +388,7 @@ export class MapboxStyles extends Observable {
388
})
389
}
390
if (fieldName === 'sprite' || fieldName === 'glyphs' || fieldName === 'url') {
391
- if (typeof styles[fieldName] === 'string' && !CommonUtil.isAbsoluteURL(styles[fieldName])) {
+ if (styles[fieldName] && typeof styles[fieldName] === 'string' && !CommonUtil.isAbsoluteURL(styles[fieldName])) {
392
styles[fieldName] = CommonUtil.relative2absolute(styles[fieldName], baseUrl);
393
394
0 commit comments