Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
svelte-maplibre
Advanced tools
Svelte wrapper for the maplibre mapping library.
This library is functional, but I'm still experimenting with extra features to make advanced functionality easier to use. It also needs proper documentation. In the meantime, the demo site includes code for all the examples, and is a good place to start.
npm install svelte-maplibre
<script>
import { MapLibre } from 'svelte-maplibre';
</script>
<MapLibre
center={[50,20]}
zoom={7}
class="map"
standardControls
style="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json" />
<style>
:global(.map) {
height: 500px;
}
</style>
You should create a .env
file to configure the environment. See the .env.example
file for the
necessary settings.
Currently the only environment variable is a MapTiler API key, required for the 3D Buildings example. If you don't have one, you can set this to a blank value to use the other examples.
Logo created by Bruce Wayyn
0.6.0
Allow setting layers to be non-interactive. Layers with interactive={false}
will not emit mouse events, and will not
participate in hit testing when comparing to other layers with eventsIfTopMost
.
This is useful, for example, when placing a SymbolLayer on top of a CircleLayer. See the updated "Clusters and Popups" example; previous the popup would disappear when the mouse was over the labels, but not it does not.
This is a breaking change:
interactive
prop for Marker
and MarkerLayer
has been renamed to asButton
, to make room for the new
interactive
prop.pickable
prop, but interactive
should be used instead for consistency.
The behavior here is unchanged though.FAQs
Svelte bindings for MapLibre
The npm package svelte-maplibre receives a total of 7,595 weekly downloads. As such, svelte-maplibre popularity was classified as popular.
We found that svelte-maplibre demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.