Skip to content

Instantly share code, notes, and snippets.

@wewindy
Created February 21, 2024 19:12
Show Gist options
  • Save wewindy/244e5cc34b9a3fd25fb3051b3fa650ac to your computer and use it in GitHub Desktop.
Save wewindy/244e5cc34b9a3fd25fb3051b3fa650ac to your computer and use it in GitHub Desktop.
Cesium Amap Tiles
const viewer = new Cesium.Viewer("cesiumContainer");
viewer.imageryLayers.addImageryProvider(new Cesium.UrlTemplateImageryProvider({
url: 'http://wprd0{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=2&scl=1&style=7',
subdomains: '1234',
tileWidth: 512,
tileHeight: 512,
}));
viewer.resolutionScale = 2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment