
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
vue-baidu-map-plus
Advanced tools
Baidu Map GL components for Vue 2.x
vue-baidu-map-plus
的理由如果你的项目中已经在使用 vue-baidu-map
, 那么当前就是你最佳的选择( 因为fork了源项目,100%保留/兼容了原有的功能组件,仅最小范围升级GL版本 )
因为项目中使用了Lite版本百度地图 vue-baidu-map
,与业务实际对照百度地图官网有多差异,为保持用户体感一致,考虑使用Baidu MapGL版本。
考虑成本问题,直接直接fork原作者,升级为百度地图 GL版本,待完善ing.
vue-baidu-map
的继承对比todo
https://ronliruonan.github.io/vue-baidu-mapgl/#/zh/index
npm i vue-baidu-map-plus
import Vue from 'vue'
import BMapGL from 'vue-baidu-map-plus';
Vue.use(BMapGL, {
/* Visit http://lbsyun.baidu.com/apiconsole/key for details about app key. */
ak: 'YOUR_APP_KEY'
})
<template>
<bmap-gl style="height:75vh;" class="map" :zoom="19" scrollWheelZoom :center="{lng: 116.432809, lat: 39.96858}" @ready="readyHandler">
</bmap-gl>
</template>
<script>
data () {
return {
mapInstance: null
};
},
methods: {
readyHandler ({ BMapGL, map }) {
this.mapInstance = map
},
}
</script>
<style>
/* The container of BaiduMap must be set width & height. */
.map {
width: 100%;
height: 300px;
}
</style>
vue-baidu-map
源著
Baidu Map components for Vue 2.x
https://dafrok.github.io/vue-baidu-map
npm i --save vue-baidu-map
import Vue from 'vue'
import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
/* Visit http://lbsyun.baidu.com/apiconsole/key for details about app key. */
ak: 'YOUR_APP_KEY'
})
<template>
<baidu-map class="map">
</baidu-map>
</template>
<style>
/* The container of BaiduMap must be set width & height. */
.map {
width: 100%;
height: 300px;
}
</style>
Copyright (c) 2016-present, Dafrok o.o@mug.dog
FAQs
Baidu Map GL Component for Vue 2.0
The npm package vue-baidu-map-plus receives a total of 6 weekly downloads. As such, vue-baidu-map-plus popularity was classified as not popular.
We found that vue-baidu-map-plus 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.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.