map-plugin-lujing
v1.0.4
Published
A plugin for map
Downloads
3
Readme
压缩命令:
npm install
gulp
使用:
var createMap=new MapPlungin({
//target:"container",//非弹出模式
//location:false,//经纬度:默认显示
//shade:false,//黑色背景:默认展示
title:'标题',//标题
dragable:true,//拖拽:false默认不可用
height:600,
width:1000,
align:"center",//三个参数,left,center,right, 默认center
vertical:"middle",//三个参数,top,middle,bottom,默认middle
style:{//自定义样式
// marginRight:"10px"
// position:"absolute"
}
});
createMap.init();
打开弹窗:
var testData={
"起始地":"浙江杭州滨江浙江杭州",
"目的地":"浙江杭州萧山",
data:[
{
LBSName:"成交",
time:"2016-08-30 14:59:59",
lng:120.188449,
lat:30.252238,
type:"sa",
source:"基站",
"备注":"asd",
"备注1":"asd",
"备注2":"asd",
"备注3":"asd",
"备注32":"asd",
"备注4":"asd",
"备注5":"asd",
deviceId:"12223222"
}]};
createMap.show(testData);