
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
datamicron_dsm-map-sdk
Advanced tools
A lightweight, extensible Leaflet-based SDK for rendering interactive maps with support for GeoJSON layers, markers, circles, polygons, fullscreen control, and copyable coordinates via context menu.
Built with TypeScript. Ideal for dashboards, location tracking, analytics, and more.
npm i datamicron_dsm-map-sdk
🧠 Usage Example (React + TypeScript)
import { MapSDK } from 'datamicron_dsm-map-sdk';
import React, { useEffect, useRef } from 'react';
function App() {
const mapContainerRef = useRef<HTMLDivElement | null>(null);
const mapInstanceRef = useRef<MapSDK | null>(null);
useEffect(() => {
if (!mapContainerRef.current) return;
mapInstanceRef.current = new MapSDK({
container: mapContainerRef.current,
configuration: {
map: {
coordinates: { latitude: 40.7128, longitude: -74.006 },
defaultZoom: 10,
},
tile: {
url: "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
attribution: "© OpenStreetMap contributors",
},
contextMenu: {
enabled: true,
onCopyCoordinates: (coordinates) => {
console.log('Copied coordinates:', coordinates);
// You can also show a notification here
},
},
},
});
mapInstanceRef.current.addGeoJson({
geojson: {},// your geoJson data
sdkOptions: { autoZoom: true },
});
return () => {
mapInstanceRef.current?.destroy();
mapInstanceRef.current = null;
};
}, []);
return (
<div style={{ width: "100%", height: "100%" }}>
<div
ref={mapContainerRef}
style={{
width: "100%",
height: "100vh",
border: "1px solid #ccc",
borderRadius: "8px",
}}
/>
</div>
);
}
export default App;
The SDK now supports right-click context menu to copy coordinates:
contextMenu: {
enabled: true, // Enable/disable context menu
onCopyCoordinates: (coordinates) => {
// This callback is called when user copies coordinates
console.log('Latitude:', coordinates.latitude);
console.log('Longitude:', coordinates.longitude);
// You can show a toast notification, update state, etc.
}
}
contextMenu: {
enabled: true,
onCopyCoordinates: (coordinates) => {
// Show success message to user
alert(`Copied: ${coordinates.latitude}, ${coordinates.longitude}`);
}
}
FAQs
A custom Leaflet-based map SDK
We found that datamicron_dsm-map-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.