
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.
@zuzuche/zzc-map
Advanced tools
对leaflet.js进行封装,主要提供默认瓦片图层和渲染租租车指定的marker样式
项目依赖:
znpm install zzcMap --save-dev
import {zzcMap} from "zzcMap";
<script src="[自己本地路径]/zzcMap/index.js"></script>
以import方式引入项目为例
import {zzcMap} from "zzcMap";
let map = new zzcMap( 'root', {
center: [33.95245984200000, -118.38592864600000],
zoom: 16,
} );
| 参数 | 用途 | 类型 |
|---|---|---|
| parendElem | 需要将地图方法到一个元素中,元素id | string |
| opts | 初始化地图的参数,初始化参数 | object |
初始化后会返回一个对象。包含map对象和传入的参数.
如果需要使用leaflet的L的方法可以直接通过实例进行调用
let zzc_map = new zzcMap( 'root', {
center: [33.95245984200000, -118.38592864600000],
zoom: 16,
} );
zzc_map.marker( props1, props2 );
当需要使用实例map的方法的时候可以通过实例的mapFn进行调用,参数需要用数组包裹进行传入。
let zzc_map = new zzcMap( 'root', {
center: [33.95245984200000, -118.38592864600000],
zoom: 16,
} );
zzc_map.mapFn( 'panTo', [ [lat, lng] ] );
当需要对map实例进行事件绑定,可以通过eventFn进行绑定,参数需要用数组包裹进行传入。
let zzc_map = new zzcMap( 'root', {
center: [33.95245984200000, -118.38592864600000],
zoom: 16,
} );
zzc_map.eventFn( ['zoom', function () {
console.log( '123123' );
}] );
FAQs
zzcMap ===================
We found that @zuzuche/zzc-map 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.