JSFiddle - React, Tailwind, and code Playground

by fxi

HTML

<img id="test">

JavaScript

const elImg = document.getElementById('test');



update().catch(console.error);

async function update() {
  const url = new URL("https://api.mapx.org/get/mirror/");
  url.searchParams.set("url", "http://201.116.60.30/arcgis/services/SINA/EMCA_DBO/MapServer/WMSServer?bbox=-10644926.307106785,1252344.271424327,-10018754.171394622,1878516.4071364924&service=WMS&version=1.1.1&styles=&request=getMap&zindex=10&srs=EPSG%3A3857&layers=14&format=image%2Fpng&exceptions=application%2Fvnd.ogc.se_blank&transparent=true&height=512&width=512")
  elImg.src = url.toString();
}