Binding SVG to map
See original GitHub issueShort question Is there a way to bind a SVG-image to particular coordinates on the map?
Description I’m working on a small project using Folium. And I have a problem. I have a SVG-image something like:
import pygal
b_chart = pygal.Bar(show_legend=False)
b_chart.title = "Destiny Kill/Death Ratio"
b_chart.add("Dijiphos", [0.94])
b_chart.add("Punisherdonk", [1.05])
b_chart.add("Musclemuffins20", [1.10])
svg_image = b_chart.render()
Is there a way to bind such image to particular coordinates on the map?
The only thing I found is how to insert it into a popup like this:
iframe = folium.IFrame(html=svg_image)
popup = folium.Popup(iframe)
It works but it’s not exactly what I need. I also tried something like this:
folium.map.Marker(
[0,0],
icon=DivIcon(
html=svg_image,
)
).add_to(m)
But it obviously did not work.
Output of folium.__version__
0.7.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
d3.js- noob- how to bind data to path from external svg by path ...
I'm attempting to make a chloropleth map using an SVG file of the counties and ... //Bind data and create one path per...
Read more >How to publish a map with your SVG markers in Web GIS
There are two ways to bind SVG markers to layer objects so that they are not lost when you publish your project to...
Read more >SVG Maps With HTML, JavaScript and Svelte - Strani Anelli
I can, for example, create an input element of type range , by binding its value to the scale variable. <script>.
Read more >IMPORT SVG MAP WITH TEXT - Visualizations & Dashboards
Hi, I created SVG Map for mall and import to Dundas BI and defined shapes works perfectly fine. Now I required to import...
Read more >B JavaScript Functions for SVG Maps - Oracle Help Center
This API contains predefined functions that can be called from outside the SVG map, typically from the HTML document in which the SVG...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay, thanks, I’ll make a PR tomorrow
Thanks 😃 Sorry for the late response (I really need to configure notifications). I’ll think of some non-linguistic example and make a notebook (probably tomorrow).
But where exactly do I need to send it?