UNPKG

@awhere/maps-maptalks

Version:

The awesome aWhere JavaScript API for Maptalks.

59 lines (58 loc) 1.81 kB
export default FeatureLayer; declare class FeatureLayer extends maptalks.VectorLayer { /** * Reproduce a FeatureLayer from layer's profile JSON. * @param {String} itemId - layer's profile JSON * @param {Object} [options] - layer's options * @return {maptalks.FeatureLayer} * @static * @function */ static fromId(itemId: string, options?: any): maptalks.FeatureLayer; /** * Reproduce a FeatureLayer from aWhere's item. * @param {Item} item - aWhere's item * @param {Object} [options] - layer's options * @return {maptalks.FeatureLayer} * @static * @function */ static fromItem(item: Item, options?: any): maptalks.FeatureLayer; /** * Reproduce a FeatureLayer from layer's profile JSON. * @param {Object} json - layer's profile JSON * @return {maptalks.FeatureLayer} * @static * @function */ static fromJSON(json: any): maptalks.FeatureLayer; constructor(layerId: any, itemId: any, options: any); _itemId: any; _name: any; _item: any; getData(options: any): Promise<any>; getDataFromItem(item: any, options?: {}): any; setName(val: any): void; getName(): any; getItemId(): any; /** * Export the FeatureLayer's JSON. * @return {Object} layer's JSON */ toJSON(): any; _loadedIds: any; _loadedArea: any; _getData(): void; _fetchingData: boolean; onRendererCreate(): void; refresh(): void; clear(): FeatureLayer; addGeometry(geometries: any, fitView: any): FeatureLayer; _filters: any; getFilters(): any; setFilters(filters: any): void; _applyFilters(): void; _generateFilters(filters: any): any; } import * as maptalks from "maptalks"; import Item from "@awhere/api/core/Item";