@types/react-leaflet-markercluster
Advanced tools
| { | ||
| "name": "@types/react-leaflet-markercluster", | ||
| "version": "3.0.4", | ||
| "description": "TypeScript definitions for react-leaflet-markercluster", | ||
| "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-leaflet-markercluster", | ||
| "license": "MIT", | ||
| "contributors": [ | ||
| { | ||
| "name": "Davide Ciacco", | ||
| "githubUsername": "ciaccodavide", | ||
| "url": "https://github.com/ciaccodavide" | ||
| } | ||
| ], | ||
| "version": "4.2.1", | ||
| "description": "Stub TypeScript definitions entry for react-leaflet-markercluster, which provides its own types definitions", | ||
| "main": "", | ||
| "types": "index.d.ts", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
| "directory": "types/react-leaflet-markercluster" | ||
| }, | ||
| "scripts": {}, | ||
| "license": "MIT", | ||
| "dependencies": { | ||
| "@types/leaflet": "*", | ||
| "@types/leaflet.markercluster": "*", | ||
| "@types/react": "*", | ||
| "@types/react-leaflet": "^2.8.3" | ||
| "react-leaflet-markercluster": "*" | ||
| }, | ||
| "typesPublisherContentHash": "0d53e2110edb3ff2624b4011a2594310fb2e48c3a9093023bbe7518a8aae1f46", | ||
| "typeScriptVersion": "4.5" | ||
| "deprecated": "This is a stub types definition. react-leaflet-markercluster provides its own type definitions, so you do not need this installed." | ||
| } |
@@ -1,15 +0,3 @@ | ||
| # Installation | ||
| > `npm install --save @types/react-leaflet-markercluster` | ||
| This is a stub types definition for @types/react-leaflet-markercluster (https://github.com/YUzhva/react-leaflet-markercluster#readme). | ||
| # Summary | ||
| This package contains type definitions for react-leaflet-markercluster (https://github.com/YUzhva/react-leaflet-markercluster). | ||
| # Details | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-leaflet-markercluster. | ||
| ### Additional Details | ||
| * Last updated: Tue, 07 Nov 2023 20:08:00 GMT | ||
| * Dependencies: [@types/leaflet](https://npmjs.com/package/@types/leaflet), [@types/leaflet.markercluster](https://npmjs.com/package/@types/leaflet.markercluster), [@types/react](https://npmjs.com/package/@types/react), [@types/react-leaflet](https://npmjs.com/package/@types/react-leaflet) | ||
| # Credits | ||
| These definitions were written by [Davide Ciacco](https://github.com/ciaccodavide). | ||
| react-leaflet-markercluster provides its own type definitions, so you don't need @types/react-leaflet-markercluster installed! |
| /// <reference types="leaflet.markercluster" /> | ||
| import { DivIcon, Icon, MarkerCluster, Point, PolylineOptions } from "leaflet"; | ||
| import { ComponentType } from "react"; | ||
| interface MarkerClusterGroupProps { | ||
| /** | ||
| * showCoverageOnHover | ||
| * | ||
| * When you mouse over a cluster it shows the bounds of its markers. | ||
| */ | ||
| showCoverageOnHover?: boolean | undefined; | ||
| /** | ||
| * zoomToBoundsOnClick | ||
| * | ||
| * When you click a cluster we zoom to its bounds. | ||
| */ | ||
| zoomToBoundsOnClick?: boolean | undefined; | ||
| /** | ||
| * spiderfyOnMaxZoom | ||
| * | ||
| * When you click a cluster at the bottom zoom level we spiderfy it so you can see all of its | ||
| * markers. | ||
| * | ||
| * Note: the spiderfy occurs at the current zoom level if all items within the cluster are | ||
| * still clustered at the maximum zoom level or at zoom specified by disableClusteringAtZoom | ||
| * option. | ||
| */ | ||
| spiderfyOnMaxZoom?: boolean | undefined; | ||
| /** | ||
| * removeOutsideVisibleBounds | ||
| * | ||
| * Clusters and markers too far from the viewport are removed from the map for performance. | ||
| */ | ||
| removeOutsideVisibleBounds?: boolean | undefined; | ||
| /** | ||
| * animate | ||
| * | ||
| * Smoothly split / merge cluster children when zooming and spiderfying. | ||
| * If L.DomUtil.TRANSITION is false, this option has no effect (no animation is possible). | ||
| */ | ||
| animate?: boolean | undefined; | ||
| /** | ||
| * animateAddingMarkers | ||
| * | ||
| * If set to true (and animate option is also true) then adding individual markers | ||
| * to the MarkerClusterGroup after it has been added to the map will add the marker | ||
| * and animate it into the cluster. | ||
| * Defaults to false as this gives better performance when bulk adding markers. | ||
| * addLayers does not support this, only addLayer with individual Markers. | ||
| */ | ||
| animateAddingMarkers?: boolean | undefined; | ||
| /** | ||
| * disableClusteringAtZoom | ||
| * | ||
| * If set, at this zoom level and below, markers will not be clustered. | ||
| * This defaults to disabled. | ||
| * | ||
| * Note: you may be interested in disabling spiderfyOnMaxZoom option when using | ||
| * disableClusteringAtZoom. | ||
| */ | ||
| disableClusteringAtZoom?: number | undefined; | ||
| /** | ||
| * maxClusterRadius | ||
| * | ||
| * The maximum radius that a cluster will cover from the central marker (in pixels). | ||
| * Default 80. | ||
| * Decreasing will make more, smaller clusters. | ||
| * You can also use a function that accepts the current map zoom | ||
| * and returns the maximum cluster radius in pixels. | ||
| */ | ||
| maxClusterRadius?: number | ((zoom: number) => number) | undefined; | ||
| /** | ||
| * polygonOptions | ||
| * | ||
| * Options to pass when creating the L.Polygon(points, options) to show the bounds of a cluster. | ||
| * Defaults to empty, which lets Leaflet use the default Path options. | ||
| */ | ||
| polygonOptions?: PolylineOptions | undefined; | ||
| /** | ||
| * singleMarkerMode | ||
| * | ||
| * If set to true, overrides the icon for all added markers to make them appear as a 1 size cluster. | ||
| * Note: the markers are not replaced by cluster objects, only their icon is replaced. | ||
| * Hence they still react to normal events, and option disableClusteringAtZoom does not restore | ||
| * their previous icon (see #391). | ||
| */ | ||
| singleMarkerMode?: boolean | undefined; | ||
| /** | ||
| * spiderLegPolylineOptions | ||
| * | ||
| * Allows you to specify PolylineOptions to style spider legs. | ||
| * By default, they are { weight: 1.5, color: '#222', opacity: 0.5 }. | ||
| */ | ||
| spiderLegPolylineOptions?: PolylineOptions | undefined; | ||
| /** | ||
| * spiderfyDistanceMultiplier | ||
| * | ||
| * Increase from 1 to increase the distance away from the center | ||
| * that spiderfied markers are placed. | ||
| * Use if you are using big marker icons (Default: 1). | ||
| */ | ||
| spiderfyDistanceMultiplier?: number | undefined; | ||
| /** | ||
| * iconCreateFunction | ||
| * | ||
| * Function used to create the cluster icon. | ||
| */ | ||
| iconCreateFunction?: ((cluster: MarkerCluster) => Icon | DivIcon) | undefined; | ||
| /** | ||
| * spiderfyShapePositions | ||
| * | ||
| * Function used to override spiderfy default shape positions. | ||
| */ | ||
| spiderfyShapePositions?: ((count: number, centerPt: Point) => Point[]) | undefined; | ||
| /** | ||
| * clusterPane | ||
| * | ||
| * Map pane where the cluster icons will be added. | ||
| * Defaults to L.Marker's default (currently 'markerPane'). | ||
| */ | ||
| clusterPane?: string | undefined; | ||
| /** | ||
| * chunkedLoading | ||
| * | ||
| * Boolean to split the addLayers processing in to small intervals | ||
| * so that the page does not freeze. | ||
| */ | ||
| chunkedLoading?: boolean | undefined; | ||
| /** | ||
| * chunkInterval | ||
| * | ||
| * Time interval (in ms) during which addLayers works before pausing | ||
| * to let the rest of the page process. | ||
| * In particular, this prevents the page from freezing while adding a lot of markers. | ||
| * Defaults to 200ms. | ||
| */ | ||
| chunkInterval?: number | undefined; | ||
| /** | ||
| * chunkDelay | ||
| * | ||
| * Time delay (in ms) between consecutive periods of processing for addLayers. | ||
| * Default to 50ms. | ||
| */ | ||
| chunkDelay?: number | undefined; | ||
| /** | ||
| * chunkProgress | ||
| * | ||
| * Callback function that is called at the end of each chunkInterval. | ||
| * Typically used to implement a progress indicator. | ||
| * Defaults to null. | ||
| */ | ||
| chunkProgress?: ((processed: number, total: number, elapsed: number) => void) | null; | ||
| } | ||
| declare const MarkerClusterGroup: ComponentType<MarkerClusterGroupProps>; | ||
| export default MarkerClusterGroup; |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1
-75%1890
-77.89%3
-25%0
-100%2
100%1
Infinity%1
Infinity%3
-81.25%1
Infinity%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed