New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-leaflet

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-leaflet - npm Package Compare versions

Comparing version 4.0.2 to 4.1.0

6

lib/Circle.d.ts
/// <reference types="react" />
import { type CircleMarkerProps } from '@react-leaflet/core';
import { type CircleProps } from '@react-leaflet/core';
import { Circle as LeafletCircle } from 'leaflet';
export declare type CircleProps = CircleMarkerProps;
export declare const Circle: import("react").ForwardRefExoticComponent<CircleMarkerProps & import("react").RefAttributes<LeafletCircle<any>>>;
export type { CircleProps } from '@react-leaflet/core';
export declare const Circle: import("react").ForwardRefExoticComponent<CircleProps & import("react").RefAttributes<LeafletCircle<any>>>;
import { createElementObject, createLayerComponent, extendContext, updateMediaOverlay } from '@react-leaflet/core';
import { ImageOverlay as LeafletImageOverlay } from 'leaflet';
import { LatLngBounds, ImageOverlay as LeafletImageOverlay } from 'leaflet';
export const ImageOverlay = createLayerComponent(function createImageOveraly({ bounds , url , ...options }, ctx) {

@@ -10,2 +10,6 @@ const overlay = new LeafletImageOverlay(url, bounds, options);

updateMediaOverlay(overlay, props, prevProps);
if (props.bounds !== props.bounds) {
const bounds = props.bounds instanceof LatLngBounds ? props.bounds : new LatLngBounds(props.bounds);
overlay.setBounds(bounds);
}
if (props.url !== prevProps.url) {

@@ -12,0 +16,0 @@ overlay.setUrl(props.url);

@@ -11,3 +11,3 @@ import { LeafletProvider, addClassName, useLeafletContext } from '@react-leaflet/core';

'tilePane',
'tooltipPane',
'tooltipPane'
];

@@ -14,0 +14,0 @@ function omitPane(obj, pane) {

import { createElementObject, createTileLayerComponent, updateGridLayer, withPane } from '@react-leaflet/core';
import { TileLayer } from 'leaflet';
export const WMSTileLayer = createTileLayerComponent(function createWMSTileLayer({ params ={} , url , ...options }, context) {
export const WMSTileLayer = createTileLayerComponent(function createWMSTileLayer({ eventHandlers: _eh , params ={} , url , ...options }, context) {
const layer = new TileLayer.WMS(url, {

@@ -5,0 +5,0 @@ ...params,

{
"name": "react-leaflet",
"version": "4.0.2",
"version": "4.1.0",
"description": "React components for Leaflet maps",

@@ -33,6 +33,6 @@ "repository": {

"dependencies": {
"@react-leaflet/core": "^2.0.1"
"@react-leaflet/core": "^2.1.0"
},
"peerDependencies": {
"leaflet": "^1.8.0",
"leaflet": "^1.9.0",
"react": "^18.0.0",

@@ -43,4 +43,4 @@ "react-dom": "^18.0.0"

"@types/geojson": "^7946.0.10",
"@types/leaflet": "^1.7.11",
"@types/react": "^18.0.17",
"@types/leaflet": "^1.8.0",
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6"

@@ -47,0 +47,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc