We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf878bf commit 640b3e3Copy full SHA for 640b3e3
src/openlayers/overlay/vectortile/MapboxStyles.js
@@ -411,7 +411,7 @@
411
})
412
}
413
if (fieldName === 'sprite' || fieldName === 'glyphs' || fieldName === 'url') {
414
- if (typeof styles[fieldName] === 'string' && !CommonUtil.isAbsoluteURL(styles[fieldName])) {
+ if (styles[fieldName] && typeof styles[fieldName] === 'string' && !CommonUtil.isAbsoluteURL(styles[fieldName])) {
415
styles[fieldName] = CommonUtil.relative2absolute(styles[fieldName], baseUrl);
416
417
if (paramUrl && !styles[fieldName].includes(paramUrl)) {
0 commit comments