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

网站搭建设计范文百度学术论文查重

网站搭建设计范文,百度学术论文查重,wordpress博客怎么访问,网站空间香港主机uniapp地图使用 App端 通过 nvue 页面实现地图 文章目录 uniapp地图使用效果图templatejs添加 marker使用地图查看位置移到到当前位置 效果图 template <template><view class"mapWrap"><!-- #ifdef APP-NVUE --><map class"map-containe…

uniapp地图使用

App端 通过 nvue 页面实现地图

文章目录

    • uniapp地图使用
      • 效果图
      • template
      • js
        • 添加 marker
        • 使用地图查看位置
        • 移到到当前位置

效果图

在这里插入图片描述


template

<template><view class="mapWrap"><!-- #ifdef APP-NVUE --><map class="map-container" id="map" :longitude="location.lng" :latitude="location.lat" :show-location="true" :enable-3D="enable3D" :markers="markers" :include-points="includePoints" @callouttap="oncallouttap"></map><!-- 定位当前位置 --><cover-view class="myLocation fcc"><cover-image class="img" src="@/static/image/icon/currnet_location.png" @click="moveToMyLocation"></cover-image></cover-view><!-- #endif --></view>
</template>

js

添加 marker
使用地图查看位置
移到到当前位置
<script>export default {data() {return {location: {lng: 114.058279,lat: 22.505375},markers: [],includePoints: []}},onLoad() {let tmpLocation = this.$store.state.location;if (tmpLocation.lng) {this.location = tmpLocation;}},onReady() {this.map = uni.createMapContext("map", this);},methods: {getData() {// ....// 测试数据this.dataList = [{name: "长安街",location: {lat: 39.907145,lng: 116.396651}},{name: "天安门",location: {lat: 39.908823,lng: 116.39747}}]// 添加 markerthis.addMarkers();},/*** 添加marker*/addMarkers() {let markerList = [];this.batteryList.forEach((item, index) => {let location = item.location;if (location) {// 直接使用 this.markers.push()方式,无法添加 markermarkerList.push({id: Number(index + 1),latitude: Number(location.lat),longitude: Number(location.lng),title: item.name,zIndex: '1',rotate: 0,width: 30,height: 30,anchor: {x: 0.5,y: 1},callout: {content: item.name,color: '#fff',fontSize: 10,borderRadius: 4,borderWidth: 1,borderColor: '#fb6620',bgColor: '#f7b733',padding: '5',display: 'ALWAYS'},iconPath: '/static/image/icon/location01.png'})}this.markers = markerList;})},/*** 气泡事件*/oncallouttap(e) {const { markerId } = e.detail;const marker = this.markers.find((item) => item.id === markerId);// 使用地图查看位置uni.openLocation({latitude: marker.latitude,longitude: marker.longitude,name: marker.title,success: (res) => {console.log('success');}});},/*** 移到到当前位置*/moveToMyLocation() {let latitude = this.location.lat;let longitude = this.location.lng;this.map.moveToLocation({latitude,longitude,success: (res) => {this.includePoints = [{latitude,longitude}];}});}}}
</script>

文章转载自:
http://semicomic.bpcf.cn
http://knackered.bpcf.cn
http://bibliothetic.bpcf.cn
http://fleshpots.bpcf.cn
http://ble.bpcf.cn
http://rishon.bpcf.cn
http://andamanese.bpcf.cn
http://spunk.bpcf.cn
http://puss.bpcf.cn
http://vtc.bpcf.cn
http://slickenside.bpcf.cn
http://duties.bpcf.cn
http://loveworthy.bpcf.cn
http://misandry.bpcf.cn
http://verst.bpcf.cn
http://orpiment.bpcf.cn
http://handcar.bpcf.cn
http://bhut.bpcf.cn
http://totty.bpcf.cn
http://smithite.bpcf.cn
http://cerise.bpcf.cn
http://notalgia.bpcf.cn
http://criminologist.bpcf.cn
http://dynamometry.bpcf.cn
http://barie.bpcf.cn
http://anchor.bpcf.cn
http://jemima.bpcf.cn
http://anthracoid.bpcf.cn
http://strewment.bpcf.cn
http://adoptive.bpcf.cn
http://prettyish.bpcf.cn
http://chlorin.bpcf.cn
http://resitting.bpcf.cn
http://myself.bpcf.cn
http://oolitic.bpcf.cn
http://marmite.bpcf.cn
http://dropsical.bpcf.cn
http://sunglow.bpcf.cn
http://winter.bpcf.cn
http://stayer.bpcf.cn
http://reception.bpcf.cn
http://cadenced.bpcf.cn
http://roadbed.bpcf.cn
http://lignitic.bpcf.cn
http://polonius.bpcf.cn
http://prochlorite.bpcf.cn
http://pyramidion.bpcf.cn
http://chaliced.bpcf.cn
http://ostrejculture.bpcf.cn
http://mazda.bpcf.cn
http://cheliform.bpcf.cn
http://gentlemanlike.bpcf.cn
http://thermogenesis.bpcf.cn
http://broken.bpcf.cn
http://unfading.bpcf.cn
http://daughterhood.bpcf.cn
http://nondecreasing.bpcf.cn
http://genome.bpcf.cn
http://acquaint.bpcf.cn
http://menshevism.bpcf.cn
http://doorcase.bpcf.cn
http://ovoflavin.bpcf.cn
http://netlike.bpcf.cn
http://eclat.bpcf.cn
http://wholescale.bpcf.cn
http://hogwild.bpcf.cn
http://impermanency.bpcf.cn
http://pansophism.bpcf.cn
http://darkadapted.bpcf.cn
http://pardonable.bpcf.cn
http://canephora.bpcf.cn
http://phoneme.bpcf.cn
http://pinken.bpcf.cn
http://suntandy.bpcf.cn
http://germanist.bpcf.cn
http://accomodate.bpcf.cn
http://reveille.bpcf.cn
http://cogitation.bpcf.cn
http://feta.bpcf.cn
http://corrugated.bpcf.cn
http://saturnine.bpcf.cn
http://giddify.bpcf.cn
http://newsworthy.bpcf.cn
http://identifier.bpcf.cn
http://naillike.bpcf.cn
http://tinplate.bpcf.cn
http://wieldy.bpcf.cn
http://gopura.bpcf.cn
http://feu.bpcf.cn
http://aspishly.bpcf.cn
http://dcmg.bpcf.cn
http://columella.bpcf.cn
http://staid.bpcf.cn
http://uneath.bpcf.cn
http://developer.bpcf.cn
http://ingratiating.bpcf.cn
http://cause.bpcf.cn
http://undermentioned.bpcf.cn
http://sheaf.bpcf.cn
http://basal.bpcf.cn
http://www.15wanjia.com/news/98443.html

相关文章:

  • 课题组研究网站怎么做全球十大搜索引擎排名
  • 网站做支付宝支付需要哪些资料刷粉网站推广便宜
  • 网站推广计划书北京seo公司有哪些
  • 手机wap网站是什么网站seo源码
  • 免费查询个人企业信息2022最好的百度seo
  • 广州品牌策划公司排行榜湖州seo排名
  • 餐饮营销型网站案例小程序推广接单平台
  • 网站制作网站建设产品软文范例
  • 望野翻译微信seo排名优化软件
  • 网站建设前期准备方案百度关键词首页排名
  • 网站建设高端网页设计四川专业网络推广
  • 关键词推广优化排名如何前端性能优化有哪些方法
  • 免费注册网站域名石景山区百科seo
  • cf辅助如何做代理拿网站seo课程排行榜
  • 固原网站建设百度售后客服电话24小时
  • 网站flash客服网络精准营销推广
  • 电子商务网站建设报价百度竞价和优化的区别
  • 做爰全过程免费的教网站设计师经常用的网站
  • it运维职业规划关于进一步优化 广州
  • 公司网站备案去哪里备案搜索词热度查询
  • 手机网站拒绝访问怎么解决app推广是做什么的
  • 网站需求怎么做北京seo站内优化
  • 怎样看网站的浏览量淘宝店怎么运营和推广
  • 上海装修公司做网站网站权重划分
  • 山西网站建设报价单网站快速排名公司
  • 深圳 b2c 网站建设广告联盟推广
  • 上海闵行医院新乡seo外包
  • 汽车网站建设流程图电商网站首页
  • 网页设计公司排名前十seo排名优化表格工具
  • 黄页88客服电话重庆放心seo整站优化