admin管理员组

文章数量:1530987

2024年1月7日发(作者:)

();ler();rection();}function toolBarDirection(){();rection();ler();}function toolBarLong(){();rection();ler();}function toolBarShot(){();ler();rection();}function iMapType(){(["e"],function(){ //添加地图类型切换插件//地图类型切换mapType= new e({defaultType:1,showRoad:true});trol(mapType);});}function removeMapType(){Control(mapType);}function iCircleEditor(){ //圆形编辑器circle = new ({ //圆形编辑器的样式map: mapObj,center:new ("116.43","39.95"),radius:1000,

strokeColor: "#F33",strokeOpacity: 1,strokeWeight: 3,fillColor: "ee2200",fillOpacity: 0.35});(["Editor"],function(){circleEditor = new Editor(mapObj,circle); //创建圆形编辑器对象(); //打开圆形编辑器});}function removeCicleEditor(){ //关闭圆形编辑器,隐藏圆形();();}function iPloygonEditor(){ //编辑多边形var arr=new Array();//经纬度坐标数组(new ("116.403322","39.920255"));(new ("116.410703","39.897555"));(new ("116.402292","39.892353"));(new ("116.389846","39.891365"));polygon = new n({path:arr, //设置多边形轮廓的节点数组strokeColor:"#0000ff",strokeOpacity:0.2,strokeWeight:3,fillColor: "#f5deb3",fillOpacity: 0.35});//地图上添加多边形rlays(polygon);//构造多边形编辑对象,并开启多边形的编辑状态(["itor"],function(){polygonEditor = new itor(mapObj,polygon);

eArea();}function iRectZoomIn(){omIn();}function iRectZoomOut(){omOut();}function iPolyline(){ne();}function iPolygon(){n();}function iCircle(){();}function iRectangle(){gle();}function iRule(){();}function removeMouseTool(){(true);}function geocoder() {var MGeocoder;//加载地理编码插件(["er"], function() {MGeocoder = new er({radius: 1000,extensions: "all"});

本文标签: 地图圆形多边形编辑器插件