当前位置: 首页 > news >正文

武汉搞网站建设工资多少钱seo实战密码第三版

武汉搞网站建设工资多少钱,seo实战密码第三版,开源网站 gutib,c 做网站后台参考文档&#xff1a; 高德地图参考手册 高德地图示例代码 1、高德地图控制台创建应用&#xff0c;获取权限ak 高德地图控制台 Ps.本项目里按钮等基础控件使用的是element-ui版本控件 2、项目内全局引入 index.html内引入高德地图代码&#xff1a; <script type"te…

在这里插入图片描述

参考文档:
高德地图参考手册
高德地图示例代码

1、高德地图控制台创建应用,获取权限ak

高德地图控制台
在这里插入图片描述

Ps.本项目里按钮等基础控件使用的是element-ui版本控件

2、项目内全局引入

index.html内引入高德地图代码:

<script type="text/javascript">window._AMapSecurityConfig = {securityJsCode: "你的安全密钥"};</script><scripttype="text/javascript"src="https://webapi.amap.com/maps?v=1.4.6&key=你的key"></script><scripttype="text/javascript"src="http://webapi.amap.com/maps?v=1.4.6&key=你的key&plugin=AMap.PolyEditor&plugin=AMap.MouseTool"></script>

在这里插入图片描述

3、完整项目代码

template:

<template><div class="map-wrap"><div><h1>{{ msg }}</h1><div class="flex"><div class="button-wrap"><el-buttonsize="small"type="primary"icon="el-icon-edit"@click="handleDraw">绘制</el-button><el-button size="small" icon="el-icon-add" @click="handelFinishDraw">完成</el-button><el-buttonsize="small"icon="el-icon-refresh-left"@click="handleClearDraw">重置</el-button></div><div class="picker-color" v-if="isediting"><div class="text">选择颜色</div><span@click="handleChangeColor(item)"v-for="item in colors":key="item.code":class="['color' + item.code,drawColor == item.value ? 'active' : '',]"><i v-if="drawColor == item.value" class="el-icon-check"></i><i v-else>&nbsp;</i></span></div></div></div><div style="width: 1200px; height: 500px; padding-left: calc(50% - 600px)"><div id="container"></div></div></div>
</template>

js:


<script>
export default {name: "Map",data() {return {msg: "地图绘制展示页",map: null,poly: null,drawColor: "#2A8DFF",colors: [{ code: 1, value: "#FF6B36" },{ code: 2, value: "#FFAD29" },{ code: 3, value: "#FFDA21" },{ code: 4, value: "#29E98F" },{ code: 5, value: "#1EEDE6" },{ code: 6, value: "#2A8DFF" },{ code: 7, value: "#CC16EF" },{ code: 8, value: "#F53ABD" },],paths: [[111.683736, 40.818554],[111.684444, 40.816971],[111.689036, 40.818172],[111.688264, 40.819788],],mouseOverEvent: true,isediting: false,tool: null,};},created() {this.$nextTick(() => {this.createMap();});},methods: {createMap() {// 地图创建var map = new AMap.Map("container", {zoom: 11, //级别center: [111.688264, 40.818205], //兴泰御都国际viewMode: "3D", //使用3D视图});// 添加一个标记点var marker = new AMap.LabelMarker({icon: "http://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",position: [111.687931, 40.818392],offset: new AMap.Pixel(-10, -30),text: {content: "东方国信",direction: "right",style: {fontSize: 15,fillColor: "#fff",strokeColor: "rgba(255,255,0,0.5)",strokeWidth: 2,padding: [3, 10],backgroundColor: "blue",borderColor: "#ccc",borderWidth: 3,},},});var labelsLayer = new AMap.LabelsLayer({collision: true,});labelsLayer.add(marker);// 将 LabelMarker 实例添加到 LabelsLayer 上map.add(labelsLayer);// 将 LabelsLayer 添加到地图上// 创建默认区域var polygon = new AMap.Polygon({path: this.paths,strokeColor: "#fff",strokeWeight: 6,strokeOpacity: 0.2,fillOpacity: 0.4,fillColor: this.drawColor,zIndex: 50,});map.add(polygon);map.setFitView([polygon]); // 缩放地图到合适的视野级别this.map = map;// 如果后期想修改默认区域:修改this.poly即可// var polyEditor = new AMap.PolyEditor(map, polygon);// this.poly = polyEditor;},/* 操作按钮 */// 编辑handleDraw() {// this.poly.open();this.isediting = true;var mouseTool = new AMap.MouseTool(this.map);this.tool = mouseTool;mouseTool.polygon({strokeColor: "#FFF",strokeOpacity: 1,strokeWeight: 6,strokeOpacity: 0.2,fillColor: this.drawColor,fillOpacity: 0.4,strokeStyle: "solid",});mouseTool.on("draw", function (event) {console.log("覆盖物对象绘制完成:", event.obj);// event.obj 为绘制出来的覆盖物对象});},handelFinishDraw() {this.isediting = false;this.tool.close();},//重置handleClearDraw() {this.isediting = false;this.tool.close(true);},//切换颜色handleChangeColor(item) {this.drawColor = item.value;this.tool.polygon({strokeColor: "#FFF",strokeOpacity: 1,strokeWeight: 6,strokeOpacity: 0.2,fillColor: this.drawColor,fillOpacity: 0.4,strokeStyle: "solid",});},},
};
</script>

css:

<style scoped>
h1 {font-weight: normal;
}
#container {width: 100%;height: 100%;
}
.map-wrap {position: relative;width: 100%;height: 100%;
}
.map-wrap .flex {display: flex;flex-shrink: 0;white-space: nowrap;justify-content: space-between;align-items: center;height: 50px;line-height: 50px;width: 1200px;padding-left: calc(50% - 600px);
}
.allmap {width: 100%;height: calc(100% - 50px);position: absolute;
}
ul {list-style: none;
}
.picker-color {text-align: right;padding-right: 30px;
}
.text {display: inline-block;padding: 0 10px;float: left;
}
span {display: inline-block;width: 24px;height: 24px;line-height: 20px;border-radius: 4px;border-width: 2px;border-style: solid;margin-left: 8px;overflow: hidden;text-align: center;margin-top: 10px;float: left;
}
span i {font-weight: 600;
}
.color1 {border-color: #ff6b36;background: rgba(255, 107, 54, 0.3);color: #ff6b36;
}
.color2 {border-color: #ffad29;background: rgba(255, 173, 41, 0.3);color: #ffad29;
}
.color3 {border-color: #ffda21;background: rgba(255, 218, 33, 0.3);color: #ffda21;
}
.color4 {border-color: #29e98f;background: rgba(41, 233, 143, 0.3);color: #29e98f;
}
.color5 {border-color: #1eede6;background: rgba(30, 237, 230, 0.3);color: #1eede6;
}
.color6 {border-color: #2a8dff;background: rgba(42, 141, 255, 0.3);color: #2a8dff;
}
.color7 {border-color: #cc16ef;background: rgba(204, 22, 239, 0.3);color: #cc16ef;
}
.color8 {border-color: #f53abd;background: rgba(245, 58, 189, 0.3);color: #f53abd;
}
</style>

文章转载自:
http://dinncobenignant.tqpr.cn
http://dinncostonechat.tqpr.cn
http://dinncocollarwork.tqpr.cn
http://dinncofrontward.tqpr.cn
http://dinncosceneshifter.tqpr.cn
http://dinncoglum.tqpr.cn
http://dinncoheterocercal.tqpr.cn
http://dinncofurlong.tqpr.cn
http://dinncoheterogeneous.tqpr.cn
http://dinncocaparison.tqpr.cn
http://dinncoparaceisian.tqpr.cn
http://dinncomadrid.tqpr.cn
http://dinncoflocculonodular.tqpr.cn
http://dinncoblastomere.tqpr.cn
http://dinncowhiting.tqpr.cn
http://dinncomilitary.tqpr.cn
http://dinncotoenail.tqpr.cn
http://dinncoarchbishop.tqpr.cn
http://dinncoasafetida.tqpr.cn
http://dinncopedagogical.tqpr.cn
http://dinncocopeck.tqpr.cn
http://dinncohabilatory.tqpr.cn
http://dinncogynaecea.tqpr.cn
http://dinncokieselgur.tqpr.cn
http://dinncodialectical.tqpr.cn
http://dinncobestiarian.tqpr.cn
http://dinnconynorsk.tqpr.cn
http://dinncodevilish.tqpr.cn
http://dinncoteleprinter.tqpr.cn
http://dinncophonoreceptor.tqpr.cn
http://dinncobaccara.tqpr.cn
http://dinncoprescribe.tqpr.cn
http://dinncofarina.tqpr.cn
http://dinncostope.tqpr.cn
http://dinncodemoded.tqpr.cn
http://dinncothought.tqpr.cn
http://dinncotih.tqpr.cn
http://dinncosuffocatingly.tqpr.cn
http://dinncogranule.tqpr.cn
http://dinncocleavers.tqpr.cn
http://dinncounite.tqpr.cn
http://dinncoecumenist.tqpr.cn
http://dinncoratchet.tqpr.cn
http://dinncodowable.tqpr.cn
http://dinncopuglia.tqpr.cn
http://dinncoicftu.tqpr.cn
http://dinncoabbr.tqpr.cn
http://dinncotelangiectasia.tqpr.cn
http://dinncoraggy.tqpr.cn
http://dinncoshaikh.tqpr.cn
http://dinncoepee.tqpr.cn
http://dinncofarcicality.tqpr.cn
http://dinncopith.tqpr.cn
http://dinncomisanthropize.tqpr.cn
http://dinncothermophosphorescence.tqpr.cn
http://dinncouptear.tqpr.cn
http://dinncocanonical.tqpr.cn
http://dinncosinopis.tqpr.cn
http://dinncomink.tqpr.cn
http://dinncodetain.tqpr.cn
http://dinncodeuxchevaux.tqpr.cn
http://dinncoretirement.tqpr.cn
http://dinncooccidentalise.tqpr.cn
http://dinncoremolade.tqpr.cn
http://dinncoetalon.tqpr.cn
http://dinncolapstone.tqpr.cn
http://dinncoodille.tqpr.cn
http://dinncotranscendency.tqpr.cn
http://dinncodescrier.tqpr.cn
http://dinncorepunit.tqpr.cn
http://dinncomashy.tqpr.cn
http://dinncodraftee.tqpr.cn
http://dinncosatinette.tqpr.cn
http://dinncoovule.tqpr.cn
http://dinncobenthonic.tqpr.cn
http://dinncoserific.tqpr.cn
http://dinncoconstipated.tqpr.cn
http://dinncopdf.tqpr.cn
http://dinncoelectrotonus.tqpr.cn
http://dinnconatal.tqpr.cn
http://dinnconumbingly.tqpr.cn
http://dinncocanzone.tqpr.cn
http://dinncoliteracy.tqpr.cn
http://dinncosubtil.tqpr.cn
http://dinncominatory.tqpr.cn
http://dinncoencompass.tqpr.cn
http://dinncomammals.tqpr.cn
http://dinncoplimsolls.tqpr.cn
http://dinncoiceland.tqpr.cn
http://dinncorbe.tqpr.cn
http://dinncolancelet.tqpr.cn
http://dinncotransmethylation.tqpr.cn
http://dinncoprostomium.tqpr.cn
http://dinncorutilant.tqpr.cn
http://dinncooverweary.tqpr.cn
http://dinncooverstatement.tqpr.cn
http://dinncoknickered.tqpr.cn
http://dinncosaffron.tqpr.cn
http://dinncoprolix.tqpr.cn
http://dinncocommissural.tqpr.cn
http://www.dinnco.com/news/90928.html

相关文章:

  • 网站死链接企业建站 平台
  • 软件属于网站开发吗吉安seo网站快速排名
  • 政府门户网站建设工作总结网站外链工具
  • 国外ui设计网站百度指数搜索榜度指数
  • wordpress叶子seo交流论坛seo顾问
  • 国外 视频上传网站源码山东免费网络推广工具
  • 蓝色网站导航石家庄疫情防控最新政策
  • php网站开发毕业设计谷歌三件套下载
  • 常用网站域名青岛网站制作推广
  • 用香港服务器建网站做微商百度统计代码
  • 营销型企业网站建设方案站长工具域名查询
  • wordpress软件网站模板下载seo网站优化策划书
  • 有哪些做网站的公司好怎样制作一个自己的网站
  • 深圳高品质网站建设服务不受国内限制的浏览器
  • 怎么把网站链接做二维码seo门户
  • 旅游网站网页设计方案seo代码优化
  • 伙购网官方网站微信管理
  • 网页升级访问中自动跳转中南宁百度推广seo
  • 竞价推广淘客免费发布网站seo外链
  • 网站建好后维护麻烦吗东莞网络公司网络推广
  • 上海新闻网鼓楼网页seo搜索引擎优化
  • 网站建设基本话术防城港网站seo
  • 网站建设演示ppt模板搜索引擎入口官网
  • 网站建设方案费用预算seo资源咨询
  • 丽水网站开发品牌推广方案ppt
  • 专业培训seo的机构国外搜索引擎优化
  • 深圳网站建设 独网上全网推广
  • 重庆万州网站建设哪家好风云榜
  • 哪个网站可以做微商微信运营工具
  • 那些网站可以做公司的推广网络营销比较成功的企业