High-level loader function, returning a Cesium imagery layer for a PNG+world file.
URL to the PNG or JPG file.
URL to its world file (.pgw, .jgw).
Imagery layer covering the referenced area.
const imageryLayer = await load('map.png', 'map.pgw');viewer.imageryLayers.add(imageryLayer); Copy
const imageryLayer = await load('map.png', 'map.pgw');viewer.imageryLayers.add(imageryLayer);
High-level loader function, returning a Cesium imagery layer for a PNG+world file.