Selecting any sample results in a blank map and a slew of CORSRequestNotHttp errors about bogus request URLs such as openmapsamples-highway-attributes://landuse and openmapsamples-highway-attributes://park. The culprit appears to be this source definition:
|
style.sources[sampleSourceId] = { |
|
type: 'geojson', |
|
data: `openmapsamples-${sample.getId()}://${sourceLayerId}`, |
|
}; |
This comes immediately after adding a protocol for “openmapsamples-highway-attributes”. Does the client application need to set up a CORS rule for every custom MapLibre protocol generated by a sample?
Reproduces in Firefox 143.
Selecting any sample results in a blank map and a slew of
CORSRequestNotHttperrors about bogus request URLs such asopenmapsamples-highway-attributes://landuseandopenmapsamples-highway-attributes://park. The culprit appears to be this source definition:OpenMapSamples-MapLibre/OpenMapSamplesControl.js
Lines 331 to 334 in d0bb7b8
This comes immediately after adding a protocol for “openmapsamples-highway-attributes”. Does the client application need to set up a CORS rule for every custom MapLibre protocol generated by a sample?
Reproduces in Firefox 143.