
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.
react-dotted-map
Advanced tools
A lightweight React component for rendering beautiful, interactive dotted world maps as SVG.
bun add react-dotted-map
import DottedMap from 'react-dotted-map';
function App() {
return <DottedMap height={100} />;
}
import DottedMap from 'react-dotted-map';
function WorldMap() {
return (
<DottedMap
height={100}
className="my-map"
/>
);
}
Use the Pin component to mark locations on the map:
import DottedMap, { Pin } from 'react-dotted-map';
function MapWithPins() {
return (
<DottedMap height={100}>
<Pin lat={40.7128} lng={-74.006} /> {/* New York */}
<Pin lat={51.5074} lng={-0.1278} /> {/* London */}
<Pin lat={35.6762} lng={139.6503} /> {/* Tokyo */}
</DottedMap>
);
}
Pins accept any valid SVG circle attributes:
<DottedMap height={100}>
<Pin
lat={48.8566}
lng={2.3522}
fill="red"
stroke="white"
strokeWidth={2}
/>
</DottedMap>
Display specific regions of the world:
<DottedMap
height={100}
region="EU" // Show only Europe
/>
Show only specific countries:
<DottedMap
height={100}
countries={['USA', 'CAN', 'MEX']}
/>
<DottedMap />The main component for rendering the dotted map.
| Prop | Type | Description |
|---|---|---|
height | number | Height of the map grid |
width | number | Width of the map grid |
region | string | Filter to show a specific region |
countries | string[] | Array of country codes to display |
grid | string | Grid configuration |
avoidOuterPins | boolean | Avoid placing dots at outer boundaries |
className | string | CSS class name for the SVG element |
viewBox | string | SVG viewBox attribute |
ref | RefObject<SVGSVGElement> | React ref to the SVG element |
children | ReactNode | Child elements (pins, custom SVG elements) |
<Pin />A component for adding location markers to the map.
| Prop | Type | Description |
|---|---|---|
lat | number | Latitude coordinate |
lng | number | Longitude coordinate |
...props | SVGCircleElement | Any valid SVG circle attributes |
Clone the repository and install dependencies:
git clone https://github.com/jackall3n/react-dotted-map.git
cd react-dotted-map
bun install
| Command | Description |
|---|---|
bun dev | Start development mode with watch |
bun play | Run the playground for testing |
bun test | Run unit tests |
bun run build | Build the library for production |
bun run typecheck | Run TypeScript type checking |
MIT License - see LICENSE for details.
FAQs
A React component for displaying a dotted map.
The npm package react-dotted-map receives a total of 0 weekly downloads. As such, react-dotted-map popularity was classified as not popular.
We found that react-dotted-map 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.