Update PathProps, add Path abstract class.

This commit is contained in:
David Schneider
2017-04-13 16:09:49 -07:00
parent 6de8bba105
commit 4db5f12ed3

View File

@@ -220,9 +220,12 @@ export interface WMSTileLayerProps extends GridLayerProps, Leaflet.WMSOptions {
}
export class WMSTileLayer<P extends WMSTileLayerProps, E extends Leaflet.TileLayer.WMS> extends GridLayer<P, E> { }
// Path is an abstract class
// tslint:disable-next-line:no-empty-interface
interface PathProps extends LeafletLayerEvents, LeafletInteractionEvents, Leaflet.PathOptions {
export interface PathProps extends MapLayerProps, Leaflet.PathOptions { }
export abstract class Path<P extends PathProps, E> extends MapLayer<P, E> {
getChildContext(): { popupContainer: E };
getPathOptions(props: P): Leaflet.PathOptions;
setStyle(options: React.CSSProperties): void;
setStyleIfChanged(fromProps: P, toProps: P): void;
}
interface CircleProps extends PathProps {