I’m trying to make a more advanced label that depend on two external images which would be part of the label which is an svg initially. However whenever I load an external image into the svg cesium fails to draw it.
Here is an example: http://cesiumjs.org/Cesium/Apps/Sandcastle/?src=Hello%20World.html&label=Showcases&gist=faeefbf7808300f59b656837960c9295
Any suggestion that could make this, or something similar work? The svg I load it into contains the label background and some text.
Any suggestions would be appreciated.
This has to do with security when you draw an SVG to the canvas, when you draw an external image to the Canvas the Canvas is marked as "tainted" and you can't get the image data from the canvas and draw it to another canvas then.
The best idea to get around this is to draw everything using pure SVG or Canvas calls.
Drawing a photo as a svg sounds expensive to performance. But drawing all on a canvas instead could be the solution. Thanks!