mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
Update ImageOverlay, ImageOverlayProps.
This commit is contained in:
Vendored
+8
-3
@@ -201,11 +201,16 @@ export interface TileLayerProps extends GridLayerProps, Leaflet.TileLayerOptions
|
||||
}
|
||||
export class TileLayer<P extends TileLayerProps, E extends Leaflet.TileLayer> extends GridLayer<P, E> { }
|
||||
|
||||
interface ImageOverlayProps extends LayerProps, LeafletInteractionEvents {
|
||||
export interface ImageOverlayProps extends MapLayerProps, Leaflet.ImageOverlayOptions {
|
||||
bounds: Leaflet.LatLngBoundsExpression;
|
||||
url: string;
|
||||
opacity?: string;
|
||||
// Type of property `crossOrigin` is incompatible in React.HTMLAttributes and
|
||||
// Leaflet.ImageOverlayOptions, so we hack it here to allow any type.
|
||||
crossOrigin?: any;
|
||||
}
|
||||
export class ImageOverlay<P extends ImageOverlayProps, E extends Leaflet.ImageOverlay> extends MapLayer<P, E> {
|
||||
getChildContext(): { popupContainer: E };
|
||||
}
|
||||
export const ImageOverlay: React.ComponentClass<ImageOverlayProps>;
|
||||
|
||||
interface WMSTileLayerProps extends TileLayerProps {
|
||||
url: string;
|
||||
|
||||
Reference in New Issue
Block a user