mirror of
https://github.com/sstent/aicyclingcoach-go.git
synced 2026-01-29 02:21:39 +00:00
sync
This commit is contained in:
13
node_modules/@react-leaflet/core/lib/media-overlay.js
generated
vendored
Normal file
13
node_modules/@react-leaflet/core/lib/media-overlay.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
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