TANGRAM VERSION: 0.21.1
ENVIRONMENT: win7 64bit Firefox 84.0.1, win10 64bit Firefox 85.0, (no errors:) win10 64bit Edge 87
TO REPRODUCE THE ISSUE, FOLLOW THESE STEPS:
- use
scene.setDataSource with type "GeoJSON" and data property instead of an URL
- look at the console output (at layer rebuild)
RESULT:
There are errors at the blob locations: "XML Parsing Error: not well-formed".
Apparently the browser assumes blobs to be XML by default, if no type is given.
Outside of the console, I could not notice negative effects.
EXPECTED RESULT:
No such errors appearing in the console.
It seems like this is fixed, at least for (Geo)JSON data, by providing an object like { type: 'application/geo+json' } or at least { type: 'application/json' } to the Blob constructor here:
|
source.url = URLs.createObjectURL(new Blob([JSON.stringify(source.data)])); |
TANGRAM VERSION: 0.21.1
ENVIRONMENT: win7 64bit Firefox 84.0.1, win10 64bit Firefox 85.0, (no errors:) win10 64bit Edge 87
TO REPRODUCE THE ISSUE, FOLLOW THESE STEPS:
scene.setDataSourcewith type"GeoJSON"anddataproperty instead of an URLRESULT:
There are errors at the blob locations: "XML Parsing Error: not well-formed".
Apparently the browser assumes blobs to be XML by default, if no type is given.
Outside of the console, I could not notice negative effects.
EXPECTED RESULT:
No such errors appearing in the console.
It seems like this is fixed, at least for (Geo)JSON data, by providing an object like
{ type: 'application/geo+json' }or at least{ type: 'application/json' }to theBlobconstructor here:tangram/src/scene/scene.js
Line 1037 in 990d260