react-leaflet
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -9,2 +9,2 @@ /// <reference types="react" /> | ||
} | ||
export declare const GeoJSON: import("react").ForwardRefExoticComponent<GeoJSONProps & import("react").RefAttributes<LeafletGeoJSON<any>>>; | ||
export declare const GeoJSON: import("react").ForwardRefExoticComponent<GeoJSONProps & import("react").RefAttributes<LeafletGeoJSON<any, import("geojson").Geometry>>>; |
@@ -10,3 +10,3 @@ import { createElementObject, createLayerComponent, extendContext, updateMediaOverlay } from '@react-leaflet/core'; | ||
updateMediaOverlay(overlay, props, prevProps); | ||
if (props.bounds !== props.bounds) { | ||
if (props.bounds !== prevProps.bounds) { | ||
const bounds = props.bounds instanceof LatLngBounds ? props.bounds : new LatLngBounds(props.bounds); | ||
@@ -13,0 +13,0 @@ overlay.setBounds(bounds); |
{ | ||
"name": "react-leaflet", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "React components for Leaflet maps", | ||
@@ -42,5 +42,5 @@ "repository": { | ||
"@types/geojson": "^7946.0.10", | ||
"@types/leaflet": "^1.9.0", | ||
"@types/react": "^18.0.25", | ||
"@types/react-dom": "^18.0.9" | ||
"@types/leaflet": "^1.9.1", | ||
"@types/react": "^18.0.28", | ||
"@types/react-dom": "^18.0.11" | ||
}, | ||
@@ -47,0 +47,0 @@ "jest": { |
49612