
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.
**作者:**pankunpeng
**交流QQ:**2643139637
**组件名:**bmap-gl
**说明:**使用了v3的百度地图,将使用v2的BMap对象的vue-baidu-map组件改为新款使用v3的BMapGL,
使用方法:API部分借鉴vue-baidu-map文档
示例图:
例子:
// main.js
Vue.use(BaiduMap,{
ak:'ng1I9sDPeznpR8Ctln3GodvjgsTHpGi9'
})
<template>
<bmap-gl
class="map"
:center="center"
:zoom="zoom"
@ready="ready"
style="height:600px;width:100%"
>
<!-->缩放<-->
<bmap-gl-zoom/>
<!-->比例尺<-->
<bmap-gl-scale/>
<!-->地图类型<-->
<bmap-gl-navigation/>
<!-->定位<-->
<bmap-gl-geolocation/>
<!-->切换类型<-->
<bmap-gl-map-type/>
<!-->标注<-->
<bmap-gl-marker
v-if="item.newBuildStatus == 6"
@click="clickEvent(item)"
:position="{ lng: item.longitude, lat: item.latitude }"
:icon="{
url: 'xxx.png',
size: { width: 20, height: 20 },
}"
>
</bmap-gl>
</template>
<script>
export default{
data() {
return {
center: {lng: 120, lat: 30},
zoom: 16
}
},
methods:{
ready({BMapGL, map}) {
// 相关操作
},
}
}
</script>
FAQs
**作者:**pankunpeng
The npm package v2-bmap-gl receives a total of 0 weekly downloads. As such, v2-bmap-gl popularity was classified as not popular.
We found that v2-bmap-gl 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
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.