Dear Wikipathways team
Modern browsers make it possible for svg to become interactive (from Firefox 70 on, or something like this).
In this way, I converted KEGG-maps into programmatically colorizable and interactive SVGs (see it in action
here).
Would it be possible for you to add annotations to your svgs, too?
For example the
[TRP3]-box could in
this map could look like this (my code is added in black):
<g style="fill:white; text-rendering:geometricPrecision; stroke:white;">
<g style="fill:white; text-rendering:geometricPrecision; stroke:white;"
title="TRP3"
class="enzyme"
data-ensembl='["YKL211C"]'
data-entrez-gene='["853669"]'
data-gene-ontology='["GO:0003824", "GO:0006568"]'
data-kegg-gene='[]'
data-refseq='["NP_012711", "NM_001179776"]'
...
>
<path d="M561.336 238.1878 L601.336 238.1878 L601.336 258.1878 L561.336 258.1878 L561.336 238.1878 Z" style="clip-path:url(#clipPath29); stroke:none;"/>
<path d="M561.336 238.1878 L601.336 238.1878 L601.336 258.1878 L561.336 258.1878 L561.336 238.1878 Z" style="fill:none; clip-path:url(#clipPath29); stroke:black;"/>
<text x="569" y="252" style="font-size:10; clip-path:url(#clipPath29); fill:black; stroke:none;" xml:space="preserve">TRP3</text>
</g>
</g>
That way, I and anyone else could use the SVGs to great effect. I could load them dynamically from your website, color them according to your annotations in my backend, and create my own click menus. (Analogous to what I did with KEGG maps.)
For example, using modern jQuery, one could add listeners to all $('#svg .enzyme'), and get the data like this (more or less): $(event.target).data('ensembl') or similar.
I added KEGG first because my users want it the most, but in principle, I like open databases like yours much better.
Best,
University of Bern, Switzerland