🤖 Merge PR #65433 Extending interface CircleMarkerOptions from MarkerOptions to allow access 'repeatMode' option by @antoniovlx

* If user wants to keep a circleMarker enabled after drawing it, it is necessary to access to 'repeatMode' in MarkerOptions.

* adding test to cover the change

* fixed problem on dtslint checking
This commit is contained in:
Antonio Vida
2023-06-12 23:48:16 +02:00
committed by GitHub
parent 9f29e6e11f
commit aa2b5654e4
2 changed files with 6 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
// Ryan Blace <https://github.com/reblace>
// Yun Shi <https://github.com/YunS-Stacy>
// Kevin Richter <https://github.com/beschoenen>
// Antonio Vida <https://github.com/antoniovlx>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -358,7 +359,7 @@ declare module 'leaflet' {
nautic?: boolean | undefined;
}
interface CircleMarkerOptions {
interface CircleMarkerOptions extends MarkerOptions {
/**
* Whether to draw stroke around the circle marker.
*

View File

@@ -30,7 +30,10 @@ const drawControl = new L.Control.Draw({
shapeOptions: {
color: '#662d91'
}
}
},
circlemarker: {
repeatMode: true
},
},
edit: {
featureGroup: drawnItems