mirror of
https://github.com/sstent/aicyclingcoach-go.git
synced 2026-01-28 01:52:41 +00:00
sync
This commit is contained in:
9
node_modules/@react-leaflet/core/lib/grid-layer.js
generated
vendored
Normal file
9
node_modules/@react-leaflet/core/lib/grid-layer.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
export function updateGridLayer(layer, props, prevProps) {
|
||||
const { opacity , zIndex } = props;
|
||||
if (opacity != null && opacity !== prevProps.opacity) {
|
||||
layer.setOpacity(opacity);
|
||||
}
|
||||
if (zIndex != null && zIndex !== prevProps.zIndex) {
|
||||
layer.setZIndex(zIndex);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user