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

个性化网站建设公司电话做网站基础教程

个性化网站建设公司电话,做网站基础教程,做网站搞流量挂联盟广告变现,个人网站的成本vue baidu-map手机端点击事件无效 解题思路 手机端 禁用地图拖拽 click事件就会被触发 触摸结束 -- 开启 禁止拖拽 触摸移动中 -- 开启 启用拖拽 我参考的解决办法 https://blog.csdn.net/Davis_Dxs/article/details/82425211 在vue baidu-map 实现 !DOCTYPE h…vue baidu-map手机端点击事件无效 解题思路 手机端 禁用地图拖拽 click事件就会被触发 触摸结束 -- 开启 禁止拖拽 触摸移动中 -- 开启 启用拖拽 我参考的解决办法 https://blog.csdn.net/Davis_Dxs/article/details/82425211 在vue baidu-map 实现 !DOCTYPE html html langenhead meta charsetUTF-8 meta nameviewport contentwidthdevice-width, initial-scale1.0 link relstylesheet href../css/element.css title地图/title style .map { height: 400px; }.searchMap { max-height: 300px } /style /headbody div idmain 解决app端点击地图无法生效 div 地址 el-input placeholder请输入搜索地址 prefix-iconel-icon-search v-modelmapConfig.keyword classinput-with-select el-button slotappend iconel-icon-search/el-button /el-input /div div 地址 el-input placeholder当前选中地址 prefix-iconel-icon-location v-modelmapConfig.chooseAddress classinput-with-select /el-input /div baidu-map :centermapConfig.center :draggingmapConfig.dragging :scroll-wheel-zoomtrue :zoommapConfig.zoom clickgetPoint readyonBaiduMapReady touchendmapTouchend touchmovemapTouchmove classbm-view bm-view classmap/bm-view bm-marker :draggingtrue :positionmapConfig.position dragendgetPoint bm-info-window :showmapConfig.showMark stylefont-size: 14px v-on:closeinfoWindowClose p地址{{ mapConfig.markAddress }}/p /bm-info-window /bm-marker bm-local-search :auto-viewporttrue :keywordmapConfig.keyword infohtmlsethandelSearch classsearchMap/bm-local-search /baidu-map /div script src../js/vue.js/script script src../js/element.js/scriptscript src../js/baidu-map0.21.2.js/scriptscript Vue.use(VueBaiduMap.default, { ak: 你的ak }) var app new Vue({ el: #main, data: { mapConfig: { zoom: 15, dragging: false, center: {}, //地图中心 position: {}, //定位 showMark: false, markAddress: , //点击地图获得的地址 loaction: , //搜索的城市 keyword: , //详细地址 chooseAddress: //详细地址 }}, methods: { //触摸移动时触发此事件 mapTouchmove(e) { this.mapConfig.dragging true }, //触摸结束时触发此事件 mapTouchend(e) { this.mapConfig.dragging false }, //点击地图 getPoint(e) { let geocoder new BMap.Geocoder() //创建地址解析器的实例 geocoder.getLocation(e.point, rs { //地址描述 this.mapConfig.position e.point this.mapConfig.chooseAddress rs.address this.mapConfig.markAddress rs.address }) this.mapConfig.showMark true }, //关闭mark层 infoWindowClose() { this.mapConfig.showMark false }, //点击搜索的地区 handelSearch(e) { this.mapConfig.chooseAddress (e.province || ) (e.city || ) e.address }, //地图初始化时,定位当前位置 onBaiduMapReady(e) { const that this this.BMap e.BMap if (this.BMap) { const geolocation new this.BMap.Geolocation() geolocation.getCurrentPosition(res { const { lng, lat } res.point this.mapConfig.center res.point this.mapConfig.position res.point const { province, city, district, street, street_number } res.address this.mapConfig.keyword province city }) } }, /*地图方法*/ } }) /script /body/html
http://www.yutouwan.com/news/95745/

相关文章:

  • 当阳建设中学网站网站开发工具
  • 嘉兴专业做网站的公司大理建设工程招聘信息网站
  • 欧米茄官网网站做网站备负责人风险大吗
  • 汕头网站排名推广天津网页制作培训
  • 网站开发案例教堂html企业网站导航下拉菜单怎么做
  • 视觉asp网站源码那个网站可以找人做兼职
  • 购物网站建设价位做海鲜团购网站
  • 影视传媒网站源码自助建站h5
  • 十大广告公司排名东营有能做网站优化
  • wordpress网站公告oppo软件商城
  • 游戏网站建设免费版哪个网站注册域名
  • 蓬莱网站建设公司做头像的网站有哪些
  • 网站404页面制作方法中色冶金建设有限公司网站
  • 直播网站怎么做啊wordpress 表白主题
  • 快速建站框架人才引进从事网站建设
  • 网站群cmshtml+jsp个人网站模板
  • 怎样建网站买东西wordpress设置缓存
  • 本地的番禺网站建设如何提高百度搜索排名
  • 绵阳做网站优化微信开放平台管理员怎么解除
  • 网站开发小组总结报告昆明网站建设哪家便宜
  • 怀化住建部网站wordpress建站网
  • 做网站用广告赚钱过时了网站关联页面如何做
  • 临沂网站建设费用wordpress 开发文档下载
  • 嘉定网站设计怎么样网站的倒计时怎么做
  • 西宁的网站建设专业瓷砖美缝网站怎么做
  • 深圳做网站有哪些做网站人才
  • 建立网站的软件下载秦皇岛做网站的公司选汉狮
  • 如何建立一个网站并运行珠海 网站设计
  • 济南做网站的高端品牌建筑行业教育培训平台
  • 网站建设论文 网站建设论文费县建设局网站