mirror of
https://github.com/sstent/aicyclingcoach-go.git
synced 2026-01-27 01:22:18 +00:00
sync
This commit is contained in:
12
node_modules/react-leaflet/lib/Polygon.js
generated
vendored
12
node_modules/react-leaflet/lib/Polygon.js
generated
vendored
@@ -1,12 +0,0 @@
|
||||
import { createElementObject, createPathComponent, extendContext } from '@react-leaflet/core';
|
||||
import { Polygon as LeafletPolygon } from 'leaflet';
|
||||
export const Polygon = createPathComponent(function createPolygon({ positions , ...options }, ctx) {
|
||||
const polygon = new LeafletPolygon(positions, options);
|
||||
return createElementObject(polygon, extendContext(ctx, {
|
||||
overlayContainer: polygon
|
||||
}));
|
||||
}, function updatePolygon(layer, props, prevProps) {
|
||||
if (props.positions !== prevProps.positions) {
|
||||
layer.setLatLngs(props.positions);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user