1 | import L from "leaflet";
|
2 | import { GeodesicGeometry, Statistics } from "./geodesic-geom";
|
3 | import { GeodesicOptions } from "./geodesic-core";
|
4 |
|
5 |
|
6 |
|
7 | export declare class GeodesicCircleClass extends L.Polyline {
|
8 | defaultOptions: GeodesicOptions;
|
9 | readonly geom: GeodesicGeometry;
|
10 | center: L.LatLng;
|
11 | radius: number;
|
12 | statistics: Statistics;
|
13 | constructor(center?: L.LatLngExpression, options?: GeodesicOptions);
|
14 | /**
|
15 | * Updates the geometry and re-calculates some statistics
|
16 | */
|
17 | private update;
|
18 | /**
|
19 | * Calculate the distance between the current center and an arbitrary position.
|
20 | * @param latlng geo-position to calculate distance to
|
21 | * @return distance in meters
|
22 | */
|
23 | distanceTo(latlng: L.LatLngExpression): number;
|
24 | /**
|
25 | * Set a new center for the geodesic circle and update the geometry.
|
26 | * @param latlng new geo-position for the center
|
27 | */
|
28 | setLatLng(latlng: L.LatLngExpression): void;
|
29 | /**
|
30 | * set a new radius for the geodesic circle and update the geometry
|
31 | * @param radius new radius in meters
|
32 | */
|
33 | setRadius(radius: number): void;
|
34 | }
|