mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-28 08:17:54 +08:00
Adding types for Circle Marker
This commit is contained in:
72
types/leaflet-draw/index.d.ts
vendored
72
types/leaflet-draw/index.d.ts
vendored
@@ -65,6 +65,13 @@ declare module 'leaflet' {
|
||||
* Default value: {}
|
||||
*/
|
||||
circle?: DrawOptions.CircleOptions | false;
|
||||
|
||||
/**
|
||||
* Circle marker draw handler options. Set to false to disable handler.
|
||||
*
|
||||
* Default value: {}
|
||||
*/
|
||||
circlemarker?: DrawOptions.CircleMarkerOptions | false;
|
||||
|
||||
/**
|
||||
* Marker draw handler options. Set to false to disable handler.
|
||||
@@ -200,6 +207,71 @@ declare module 'leaflet' {
|
||||
*/
|
||||
repeatMode?: boolean;
|
||||
}
|
||||
|
||||
interface CircleMarkerOptions {
|
||||
/**
|
||||
* Whether to draw stroke around the circle marker.
|
||||
*
|
||||
* Default value: true
|
||||
*/
|
||||
stroke?: boolean;
|
||||
|
||||
/**
|
||||
* The stroke color of the circle marker.
|
||||
*
|
||||
* Default value: '#3388ff'
|
||||
*/
|
||||
color?: string;
|
||||
|
||||
/**
|
||||
* The stroke width in pixels of the circle marker.
|
||||
*
|
||||
* Default value: 4
|
||||
*/
|
||||
weight?: number;
|
||||
|
||||
/**
|
||||
* The stroke opacity of the circle marker.
|
||||
*
|
||||
* Default value: 0.5
|
||||
*/
|
||||
opacity?: number;
|
||||
|
||||
/**
|
||||
* Whether to fill the circle marker with color.
|
||||
*
|
||||
* Default value: true
|
||||
*/
|
||||
fill?: boolean;
|
||||
|
||||
/**
|
||||
* The fill color of the circle marker. Defaults to the value of the color option.
|
||||
*
|
||||
* Default value: null
|
||||
*/
|
||||
fillColor?: string;
|
||||
|
||||
/**
|
||||
* The opacity of the circle marker.
|
||||
*
|
||||
* Default value: 0.2
|
||||
*/
|
||||
fillOpacity?: number;
|
||||
|
||||
/**
|
||||
* Whether you can click the circle marker.
|
||||
*
|
||||
* Default value: true
|
||||
*/
|
||||
clickable?: boolean;
|
||||
|
||||
/**
|
||||
* This should be a high number to ensure that you can draw over all other layers on the map.
|
||||
*
|
||||
* Default value: 2000
|
||||
*/
|
||||
zIndexOffset?: number;
|
||||
}
|
||||
|
||||
interface MarkerOptions {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user