mirror of
https://github.com/sstent/aicyclingcoach-go.git
synced 2026-01-27 17:42:23 +00:00
sync
This commit is contained in:
13
node_modules/@react-leaflet/core/lib/media-overlay.js
generated
vendored
13
node_modules/@react-leaflet/core/lib/media-overlay.js
generated
vendored
@@ -1,13 +0,0 @@
|
||||
import { LatLngBounds } from 'leaflet';
|
||||
export function updateMediaOverlay(overlay, props, prevProps) {
|
||||
if (props.bounds instanceof LatLngBounds && props.bounds !== prevProps.bounds) {
|
||||
overlay.setBounds(props.bounds);
|
||||
}
|
||||
if (props.opacity != null && props.opacity !== prevProps.opacity) {
|
||||
overlay.setOpacity(props.opacity);
|
||||
}
|
||||
if (props.zIndex != null && props.zIndex !== prevProps.zIndex) {
|
||||
// @ts-ignore missing in definition but inherited from ImageOverlay
|
||||
overlay.setZIndex(props.zIndex);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user