arcgis js api 4.x 加载高德影像地图
简介
arcgis js api 4.x 是esri 公司推出二三维一体化web gis 开发 api,该 js api 提供强大二三维可视化能力,这里通过typescript 扩展 arcgis js api4.x 实现高德影像地图服务加载。
扩展类代码
import {
subclass,
property
} from "esri/core/accessorSupport/decorators";
import BaseTileLayer from "esri/layers/BaseTileLayer";
import request from "esri/request";
import {
renderable,
tsx
} from "esri/widgets/support/widget";
interface GDImageLayerParams extends __esri.LayerProperties {
urlTemplate: string,
tint: any
}
@subclass("esri.layers.GDImageLayer")
class GDImageLayer extends BaseTileLayer {
private _elevation: any = null;
constructor(params ? : GDImageLayerParams) {
super(params);
}
@property()
@renderable()
urlTemplate: string;
@property()