[elm-discuss] Re: Dynamically load SVG files
You could generate the svg in elm and just base64 encode it and update it like a normal thing in your view, no? -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[elm-discuss] Re: Dynamically load SVG files
Couldn't you just use an img tag with the path/to.svg in the src attribute? On Monday, 30 May 2016 15:34:07 UTC+2, Håkon Rossebø wrote: > > I'm trying out some SVG maps from here: > > https://www.amcharts.com/svg-maps/?map=usa > > Seems to be too much to embed inline. What would be the best way of > loading SVG files dynamically? > > > > > -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[elm-discuss] Re: Dynamically load SVG files
Make an HTTP request in init, and have a Msg where they get added to the model. If you work through some tutorials (links conspicuously absent!) on the Elm Architecture, this should become pretty clear. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.