Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
leaflet-mount
Advanced tools
This is a set of tools for leaflet: base classes and stock components to create custom map interfaces.
intro | code samples | use/install |
L.Mount has some targets in its design:
This means that it's here to let you do what you want with very little work, but work nonetheless. Some things might strike you as odd:
Leaflet
has factories everywhere! where are L.Mount
's? **With Mount, you'll notice its two changes to L.Map
:
figure
tag wraps the map (& figcaption
)Now your map's ready for building :rocket:
Attribution
is a simple component: a span
with a cite
for each visible layer (auto updates).
.leaflet-mount-attribution {
position: absolute;
bottom: 0;
right: 0;
}
map.mount(new L.Mount.Attribution());
ZoomIn
and ZoomOut
are uncoupled for flexiblility.
map
.mount(new L.Mount.ZoomIn());
.mount(new L.Mount.ZoomOut());
FAQs
Seamlessly, flexibly insert content into leaflet maps
We found that leaflet-mount demonstrated a not healthy version release cadence and project activity because the last version was released 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.