UNPKG

bcgis-type

Version:

The SDK is based on Cesium for secondary development of 2, 3D all-in-one WebGis application framework, the framework optimizes the use of Cesium and add some additional features, designed for developers to quickly build WebGis applications.

40 lines (39 loc) 1.02 kB
import GeoJsonLayer from "./GeoJsonLayer"; /** * TopoJson 图层,用于加载 TopoJson 格式数据 * @noInheritDoc * @example * ```ts * let layer = new BC.GeoJsonLayer('id', '**\/**.geojson') * layer.eachOverlay((item) => { * // item 为一个entity, * if (item.polyline) { * //todo * let polyline = BC.Polyline.fromEntity(item) * } * if (item.polygon) { * //todo * let polygon = BC.Polygon.fromEntity(item) * } * if (item.billboard) { * //todo * let point = BC.Point.fromEntity(item) * let divIcon = BC.DivIcon.fromEntity(item) * let billboard = BC.Billboard.fromEntity(item) * } * }) * ``` */ declare class TopoJsonLayer extends GeoJsonLayer { /** * @param id 图层唯一标识 * @param url 数据地址 * @param options 属性配置 */ constructor(id: string, url: string, options?: {}); /** * 类型 */ get type(): string; } export default TopoJsonLayer;