JSFiddle - React, Tailwind, and code Playground
HTML
<img id="im" width="256" height="256"/>
<div id="sp"></div>
<form>
map:<input name="STRAVA" value="luxena"/><br/>
x: <input name="x" value="83796"/><br/>
y: <input name="y" value="42457"/><br/>
z: <input name="z" value="17"/><br/>
<input type="button" value="test" onClick="
var url =computeUrl(form.map.value,form.x.value,form.y.value,form.z.value);
document.getElementById('im').src=url;
document.getElementById('sp').innerHTML=url;
return false;
"/>
</form>
JavaScript
function computeUrl(mapName,x,y,z) {
var url = 'http://heatmap-external-a.strava.com/tiles-auth/ride/bluered/'+(z-1)+'/'+x+'/'+y+'.png?v=19'
return url;
};