mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-17 17:48:06 +00:00
🤖 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:
3
types/leaflet-draw/index.d.ts
vendored
3
types/leaflet-draw/index.d.ts
vendored
@@ -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.
|
||||
*
|
||||
|
||||
@@ -30,7 +30,10 @@ const drawControl = new L.Control.Draw({
|
||||
shapeOptions: {
|
||||
color: '#662d91'
|
||||
}
|
||||
}
|
||||
},
|
||||
circlemarker: {
|
||||
repeatMode: true
|
||||
},
|
||||
},
|
||||
edit: {
|
||||
featureGroup: drawnItems
|
||||
|
||||
Reference in New Issue
Block a user