tangrams / tangram-play

Text editor web app for Tangram scenes
https://tangram.city/play/
MIT License
94 stars 27 forks source link

it is not clear how one may add additional files #751

Closed matkoniecz closed 6 years ago

matkoniecz commented 6 years ago

For example, I would like to add .svg file with icons (from Cinnabar) so I will be able to display icons on a map (as file is not added I currently get "failed to load texture...").

bcamper commented 6 years ago

Hi -- Tangram Play does not currently support uploading files (or editing multiple YAML files for one scene). You can however upload these assets to any https-accessible server (S3 etc.) and access them via Tangram Play (though you will need CORS enabled).

skorasaurus commented 6 years ago

@matkoniecz

You can also upload them via github, just be sure to use the raw github url for example, you can plop this in tangram play and it'll load - https://raw.githubusercontent.com/skorasaurus/sc3n3/master/pericoli.yaml

matkoniecz commented 6 years ago

Thanks! Especially for the code example.