From 534efa73b60f8c2b31d26668af871564a3d95aa3 Mon Sep 17 00:00:00 2001 From: David Schneider Date: Thu, 13 Apr 2017 16:04:18 -0700 Subject: [PATCH] Update Marker, MarkerProps. --- types/react-leaflet/index.d.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/types/react-leaflet/index.d.ts b/types/react-leaflet/index.d.ts index d261fd90f8..72b3b2214c 100644 --- a/types/react-leaflet/index.d.ts +++ b/types/react-leaflet/index.d.ts @@ -159,16 +159,11 @@ interface LayerProps extends LeafletInteractionEvents { ontooltipclose?(event: Leaflet.TooltipEvent): void; } -interface MarkerProps extends LayerProps, LeafletDraggingEvents { +export interface MarkerProps extends MapLayerProps, Leaflet.MarkerOptions { position: Leaflet.LatLngExpression; - draggable?: boolean; - icon?: Leaflet.BaseIcon; - zIndexOffset?: number; - opacity?: number; } -export const Marker: React.ComponentClass; -interface MarkerInstance extends React.Component { - leafletElement: Leaflet.Marker; +export class Marker

extends MapLayer { + getChildContext(): { popupContainer: E }; } interface PopupProps extends LayerProps, Leaflet.PopupOptions {