import Coordinate from '../geo/Coordinate'; import Path, { PathOptionsType } from './Path'; import Extent from '../geo/Extent'; import { AnySymbol, LineSymbol } from '../symbol'; /** * 表示LineString类型的Geometry。 * @english * Represents a LineString type Geometry. * @category geometry * @extends Path * @example * var line = new LineString( * [ * [121.45942, 31.24123], * [121.46371, 31.24226], * [121.46727, 31.23870], * [121.47019, 31.24145] * ] * ).addTo(layer); */ export declare class LineString extends Path { /** * @param {Coordinate[]|Number[][]} coordinates - coordinates of the line string * @param {Object} [options=null] - construct options defined in [LineString]{@link LineString#options} */ constructor(coordinates: LineStringCoordinatesType, options?: LineStringOptionsType); getOutline(): any; /** * 给线段设置坐标 * @english * Set new coordinates to the line string * @param {Coordinate[]|Number[][]} coordinates - new coordinates * @fires LineString#shapechange * @return {LineString} this */ setCoordinates(coordinates: Array | Array>): this; /** * 获取线段的坐标 * @english * Get coordinates of the line string * @return {Coordinate[]|Number[][]} coordinates */ getCoordinates(): Coordinate[]; /** * 获取具有给定范围的线串的交点的中心 * @english * Get center of linestring's intersection with give extent * @example * const extent = map.getExtent(); * const center = line.getCenterInExtent(extent); * @param {Extent} extent * @return {Coordinate} center, null if line doesn't intersect with extent */ getCenterInExtent(extent: Extent): Coordinate; } export default LineString; export type LineStringCoordinatesType = Array | Array>; export type LineStringOptionsType = PathOptionsType & { arrowStyle?: 'classic' | [number, number]; arrowPlacement?: 'vertex-first' | 'vertex-last' | 'vertex-firstlast' | 'point'; symbol?: LineSymbol | Array; }; //# sourceMappingURL=LineString.d.ts.map