
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
sphere-map-vue
Advanced tools

You can easily install by using npm
npm i sphere-map-vue
First, you need to get a sphere Map API key. Then, after you have sphere Map API key and component installed, you need to register it to your Vue project.
There are two ways of registering component:
This is a recommended way of registering component
In your main.js or similar file:
import { createApp } from 'vue'
import SphereMap from 'sphere-map-vue'
import App from './App.vue'
import router from './router'
createApp(App).use(router)
.use(SphereMap, {
load: {
apiKey: 'YOUR_SPHERE_MAP_API_KEY',
}
})
.mount('#app')
Then you can use <sphere-map /> in your component template.
<template>
<sphere-map />
</template>
In your component file, for example Foo.vue:
<script setup>
import { SphereMapLoad, SphereMap } from 'sphere-map-vue'
SphereMapLoad({
apiKey: 'YOUR_SPHERE_MAP_API_KEY',
})
</script>
<template>
<sphere-map />
</template>
You can import more components if you want, for example:
import { SphereMapLoad, SphereMap, SphereMapMarker, SphereMapPolyline } from 'sphere-map-vue'
Add a polygon to sphere Map:
<script setup>
const locationList = [
{ lon: 99, lat: 14 },
{ lon: 100, lat: 13 },
{ lon: 102, lat: 13 },
{ lon: 103, lat: 14 }
]
</script>
<template>
<sphere-map>
<sphere-map-polygon
:location="locationList"
:lineWidth="2"
:lineColor="'rgba(0, 0, 0, 1)'"
:fillColor="'rgba(255, 0, 0, 0.4)'"
/>
</sphere-map>
</template>
Add multiple markers to sphere Map:
<template>
<sphere-map :zoom="10" :last-view="false">
<sphere-map-marker
v-for="(item, i) in markers"
:key="i"
:location="item.location"
:title="item.title"
:detail="item.detail"
/>
</sphere-map>
</template>
Using sphere Map object:
<script setup>
function loadMap(map) {
map.Layers.setBase(sphere.Layers.NORMAL)
}
function addMarker(marker) {
console.log(marker.location())
}
</script>
<template>
<sphere-map @load="loadMap">
<sphere-map-marker @add="addMarker" :location="{ lon: 99, lat: 14 }" />
</sphere-map>
</template>
@load="Function(object)"<sphere-map :zoom="10" :last-view="false" />
@add="Function(object)"<sphere-map>
<sphere-map-marker :location="{ lon: 99, lat: 14 }" :title="'Home'" :detail="'My home'" />
</sphere-map>
sphere-map-dot, sphere-map-circle, sphere-map-rectangle, sphere-map-polyline,sphere-map-polygon
@add="Function(object)"<sphere-map>
<sphere-map-polygon
:location="[{ lon: 100.123, lat: 13.579 }, ...]"
:lineWidth="2"
:lineColor="'rgba(0, 0, 0, 1)'"
:fillColor="'rgba(255, 0, 0, 0.4)'"
/>
</sphere-map>
FAQs
sphere map component for VueJS
We found that sphere-map-vue demonstrated a not healthy version release cadence and project activity because the last version was released 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.