diff --git a/types/leaflet-draw/index.d.ts b/types/leaflet-draw/index.d.ts index de0767d462..cd5d23973e 100644 --- a/types/leaflet-draw/index.d.ts +++ b/types/leaflet-draw/index.d.ts @@ -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 { /**