UNPKG

@yandex/ymaps3-types

Version:

Types for ymaps3 maps library

28 lines (27 loc) 756 B
import { YMapEntity } from "../YMapEnities"; /** * YMapFeatureDataSource props */ type YMapFeatureDataSourceProps = { /** Data source id */ id: string; }; /** * Map geojson data source. Used to upload objects to the map in geojson format * * @example * ```javascript * const ID = 'id'; * const dataSource = new YMapFeatureDataSource({id: ID}); * const layer = new YMapLayer({source: ID, type: 'features', zIndex: 10}); * map * .addChild(dataSource) * .addChild(layer); * ``` */ declare class YMapFeatureDataSource extends YMapEntity<YMapFeatureDataSourceProps> { protected _onAttach(): void; protected _onDetach(): void; protected _onUpdate(): void; } export { YMapFeatureDataSource, YMapFeatureDataSourceProps };