Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nuxtjs/leaflet

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxtjs/leaflet - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

dist/module.json

@@ -7,3 +7,3 @@ {

},
"version": "1.2.0",
"version": "1.2.1",
"builder": {

@@ -10,0 +10,0 @@ "@nuxt/module-builder": "0.8.1",

@@ -1,2 +0,2 @@

import type { MarkerOptions, Map } from 'leaflet';
import type { MarkerOptions, Map, Marker } from 'leaflet';
interface MarkerProps {

@@ -7,2 +7,6 @@ name?: string;

options?: MarkerOptions;
/**
* Should be a string formatted as HTML
*/
popup?: string;
}

@@ -13,3 +17,6 @@ interface Props {

}
export declare const useLMarkerCluster: (props: Props) => Promise<void>;
export declare const useLMarkerCluster: (props: Props) => Promise<{
markerCluster: any;
markers: Marker<any>[];
}>;
export {};

@@ -5,2 +5,3 @@ export const useLMarkerCluster = async (props) => {

const markerCluster = new MarkerClusterGroup();
const markers = [];
props.markers.forEach((location) => {

@@ -11,5 +12,13 @@ const marker = L.marker([location.lat, location.lng], {

});
if (location.popup) {
marker.bindPopup(L.popup().setContent(location.popup));
}
markerCluster.addLayer(marker);
markers.push(marker);
});
props.leafletObject.addLayer(markerCluster);
return {
markerCluster,
markers
};
};
{
"name": "@nuxtjs/leaflet",
"version": "1.2.0",
"version": "1.2.1",
"description": "Nuxt module for Leaflet",

@@ -32,2 +32,3 @@ "homepage": "https://leaflet.nuxtjs.org",

"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "vitest run",

@@ -46,3 +47,3 @@ "test:watch": "vitest watch",

"@nuxt/devtools": "latest",
"@nuxt/eslint-config": "^0.4.0",
"@nuxt/eslint-config": "^0.5.0",
"@nuxt/kit": "^3.12.4",

@@ -52,15 +53,15 @@ "@nuxt/module-builder": "^0.8.1",

"@nuxt/test-utils": "^3.14.0",
"@nuxt/ui": "^2.18.2",
"@nuxt/ui": "^2.18.4",
"@types/leaflet.heat": "^0.2.4",
"@types/node": "^20.14.13",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"caniuse-lite": "^1.0.30001643",
"@types/node": "^20.14.15",
"@typescript-eslint/eslint-plugin": "^8.0.1",
"caniuse-lite": "^1.0.30001651",
"changelogen": "^0.5.5",
"eslint": "^8.57.0",
"eslint": "^9.9.0",
"leaflet.heat": "^0.2.0",
"leaflet.markercluster": "^1.5.3",
"nuxt": "^3.12.4",
"vitepress": "^1.3.1",
"vitest": "^2.0.4"
"vitepress": "^1.3.2",
"vitest": "^2.0.5"
}
}
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