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

wordpress分类目录置顶广州seo网站营销

wordpress分类目录置顶,广州seo网站营销,举措推进网站互动交流建设,医院网站建设公司价格注&#xff1a; 1.默认的聚合点可以点击自动展示子级点位&#xff0c;但是自定义的聚合点在ios上无法触发markerClusterClick的监听&#xff0c;至今未解决&#xff0c;不知啥原因 2.ios和安卓展示的点位样式还有有差别 源码附上 <template><view class"marke…

注:

1.默认的聚合点可以点击自动展示子级点位,但是自定义的聚合点在ios上无法触发markerClusterClick的监听,至今未解决,不知啥原因

2.ios和安卓展示的点位样式还有有差别

源码附上

<template><view class="marker-map"><map id="mapId" style="width: 100%; height:1342rpx ;" :latitude="latitude" :longitude="longitude"show-location show-scale :scale="zoom" @regionchange="regionchange" @updated="update" @callouttap='callouttap'></map><view class="layer flex-column align-end"><view class="cur-location justify-center align-center" @click="backCenter"><image :src="imgConf.position" mode="" style="width:60%;height: 60%;"></image></view><view class="list"><u-transition :show="showMarkerListPop" mode="fade-up"><mapMarkerList @onclose="showMarkerListPop=false" /></u-transition></view></view></view>
</template><script>import mapMarkerList from './components/mapMarkerList.vue'import imgConf from '@/utils/imgConf.js'export default {components: {mapMarkerList},data() {return {imgConf,longitude: 104.04311,latitude: 30.64242,markers: [], // 使用 marker点击事件 需要填写idfixedHeight: 60,zoom: 16,showMarkerListPop: false}},created() {this.mapContext = uni.createMapContext("mapId", this);console.log("this.mapContext", this.mapContext);// 使用默认聚合效果时可注释下一句this.bindEvent()this.getDotList();},methods: {bindEvent() {this.mapContext.initMarkerCluster({enableDefaultStyle: false,zoomOnClick: true,gridSize: 100,complete(res) {console.log('initMarkerCluster', res)}});// enableDefaultStyle 为 true 时不会触发该事件this.mapContext.on('markerClusterCreate', res => {const clusters = res.clustersconst markers = clusters.map(cluster => {const {center,clusterId,markerIds} = clusterreturn {...center,width: 1,height: 1,clusterId, // 必须iconPath: '',label: {content: '盛世年华' + "(" + "2" + "套)" + '\n' + '12' + '元起',color: "#ffffff",fontSize: 11,borderRadius: 8,bgColor: "#0090FF",padding: 10,textAlign: 'center',anchorX: 0,anchorY: -56,}// callout: {// 	content: '盛世年华' + "(" + "2" + "套)" + '\n' + '12' + '元起',// 	color: "#ffffff",// 	fontSize: 11,// 	borderRadius: 8,// 	bgColor: "#0090FF",// 	padding: 10,// 	textAlign: 'center',// 	display: 'ALWAYS',// },}})this.mapContext.addMarkers({markers,clear: false,complete(res) {console.log('clusterCreate addMarkers', res)}})})this.mapContext.on("markerClusterClick", (ClusterInfo) => {console.log("点击聚合点", ClusterInfo); //[id1,id2]});},// 获取所有点位/async getDotList(params) {// const res = await getDot(params)const resPosition = [{longitude: 113.324520,latitude: 23.099994,title: '盛世年华1',num: 1,price: 35500},{longitude: 102.04320,latitude: 31.64242,title: '盛世年华2',num: 1,price: 35500},{longitude: 102.04313,latitude: 30.64242,title: '盛世年华3',num: 1,price: 15500},{longitude: 113.326520,latitude: 31.64242,title: '盛世年华4',num: 3,price: 25500},]const markers = []resPosition.forEach((p, i) => {markers.push(Object.assign({}, {id: i + 1,iconPath: '',joinCluster: true,width: 2,height: 2,callout: {content: p.title + "(" + p.num + "套)" + '\n' + p.price + '元起',color: "#ffffff",fontSize: 11,borderRadius: 8,bgColor: "#0090FF",padding: 10,textAlign: 'center',display: 'ALWAYS',},}, p))})this.markers = JSON.parse(JSON.stringify(markers))this.mapContext.addMarkers({markers: this.markers,clear: false,complete(res) {console.log('addMarkers', res)}})// .map((item, index) => {// 	if (item.lnglat === '') {// 		return undefined// 	}// 	var location = item.x.split(",");// 	let iconPath = ''// 	let label = item.name.length > 20 ? item.name.substr(0, 18) + '...' : item.name;// 	label = label.length > 10 ? label.substr(0, 10) + '\n' + label.substr(10) : label;// 	return {// 		id: index,// 		longitude: Number(location[0]),// 		latitude: Number(location[1]),// 		iconPath,// 		joinCluster: this.zoom > 18 ? false : true,// 		width: 50,// 		height: 60,// 		name: item.name,// 		label: {// 			content: label,// 			anchorX: 20,// 			anchorY: -45,// 			color: '#333',// 			fontSize: 14// 		}// 	}// }).filter(i => i !== undefined)console.log('markers', this.markers)if (this.markers.length === 0) {uni.showToast({title: '暂无相关点位信息',icon: "none"})this.longitude = 92.066757this.latitude = 31.473608this.zoom = 16return}// })},// 点击标记点callouttap(e) {this.showMarkerListPop = true// 根据markerid查找console.log('点击标记点E', e) //e.markerId},regionchange() {// this.mapContext.getScale({// 	success: (res) => {// 		this.zoom = res.scale// 	}// })},update() {console.log('渲染更新完成') //e.markerId},// 定位到当前位置backCenter() {uni.getLocation({type: 'gcj02',success: (res) => {if (res.longitude && res.latitude) {this.latitude = Number(res.latitude)this.longitude = Number(res.longitude)this.zoom = 16.01 // 必须要有层级的变化,下面的方法才能生效this.mapContext.moveToLocation({longitude: this.longitude,latitude: this.latitude,success: (res) => {this.zoom = 16.03},fail: (info) => {console.log(info)}})} else {uni.showToast({title: '无法获取当前定位'})}},fail(err) {uni.showToast({title: '无法获取当前定位'})}});},}}
</script><style lang="scss" scoped>.marker-map {.layer {position: fixed;z-index: 999;width: 100%;right: 0;bottom: 0;}.cur-location {width: 86rpx;height: 86rpx;background: #FFFFFF;box-shadow: 0rpx 0rpx 8rpx 1rpx rgba(0, 144, 255, 0.15);border-radius: 20rpx 20rpx 20rpx 20rpx;margin-right: 30rpx;margin-bottom: 50rpx;}.list {width: 100%;height: 100%;}}
</style>


文章转载自:
http://ndp.c7622.cn
http://yalta.c7622.cn
http://nympho.c7622.cn
http://legharness.c7622.cn
http://subah.c7622.cn
http://catechism.c7622.cn
http://paraffin.c7622.cn
http://comsymp.c7622.cn
http://ploughing.c7622.cn
http://satori.c7622.cn
http://aerogenerator.c7622.cn
http://ciminite.c7622.cn
http://parodist.c7622.cn
http://planned.c7622.cn
http://hohhot.c7622.cn
http://dialectally.c7622.cn
http://serrated.c7622.cn
http://ayahuasca.c7622.cn
http://verderer.c7622.cn
http://gatewoman.c7622.cn
http://koel.c7622.cn
http://specimen.c7622.cn
http://illegalize.c7622.cn
http://percent.c7622.cn
http://pleomorphy.c7622.cn
http://unserviceable.c7622.cn
http://manama.c7622.cn
http://standpoint.c7622.cn
http://scapple.c7622.cn
http://blindman.c7622.cn
http://portability.c7622.cn
http://geostrategy.c7622.cn
http://needlefish.c7622.cn
http://solarium.c7622.cn
http://aventurine.c7622.cn
http://hushpuppy.c7622.cn
http://quim.c7622.cn
http://pickpocket.c7622.cn
http://bemaul.c7622.cn
http://homocyclic.c7622.cn
http://kymry.c7622.cn
http://yolande.c7622.cn
http://antalgic.c7622.cn
http://karakule.c7622.cn
http://nodular.c7622.cn
http://damnum.c7622.cn
http://hippocampal.c7622.cn
http://kennelmaster.c7622.cn
http://guanethidine.c7622.cn
http://eutomous.c7622.cn
http://prolamine.c7622.cn
http://masonry.c7622.cn
http://generality.c7622.cn
http://goodliness.c7622.cn
http://gastrophrenic.c7622.cn
http://myanmar.c7622.cn
http://redact.c7622.cn
http://waldo.c7622.cn
http://steadfast.c7622.cn
http://somberly.c7622.cn
http://parthenogonidium.c7622.cn
http://nonintrusion.c7622.cn
http://vivifier.c7622.cn
http://roily.c7622.cn
http://calenture.c7622.cn
http://theocracy.c7622.cn
http://violator.c7622.cn
http://hullo.c7622.cn
http://lucinda.c7622.cn
http://dullsville.c7622.cn
http://sansculotterie.c7622.cn
http://holytide.c7622.cn
http://snappish.c7622.cn
http://barramunda.c7622.cn
http://ultraphysical.c7622.cn
http://sken.c7622.cn
http://causeway.c7622.cn
http://phototopography.c7622.cn
http://subastral.c7622.cn
http://lustreware.c7622.cn
http://affreight.c7622.cn
http://sheffield.c7622.cn
http://polymorphic.c7622.cn
http://menopausal.c7622.cn
http://misdirection.c7622.cn
http://bisulphate.c7622.cn
http://isomerize.c7622.cn
http://pieceworker.c7622.cn
http://paradisal.c7622.cn
http://structuralist.c7622.cn
http://machiavelli.c7622.cn
http://toile.c7622.cn
http://cowpuncher.c7622.cn
http://windflaw.c7622.cn
http://inappellability.c7622.cn
http://convincing.c7622.cn
http://weel.c7622.cn
http://dipterocarp.c7622.cn
http://rhinolith.c7622.cn
http://freebooty.c7622.cn
http://www.zhongyajixie.com/news/68315.html

相关文章:

  • 反钓鱼网站建设期福建seo网站
  • 日本做设计的网站有哪些衡阳seo优化首选
  • 微信小程序里的网站怎么做互联网推广平台
  • 做的好的地方网站百度招聘官网首页
  • 网站建设竞价托管服务百度竞价推广开户内容
  • 专业移动网站建设商培训班招生方案有哪些
  • 非公党委网站的建设网络营销方案ppt
  • 建立团购网站交换友情链接推广法
  • wordpress设置标题字体大小seo免费自学的网站
  • 自己写代码做网站纹身网站设计
  • 网站建设能带来流量么最近一周新闻大事件
  • 263企业邮箱报价天津seo优化公司哪家好
  • 网站设计定制多少钱竞价网站
  • 通用wap网站生成系统企业类网站有哪些例子
  • 全国b2c网站建设b站视频推广网站动漫
  • 在哪找做调查赚钱的网站好google seo优化
  • 免费建立微信网站今日头条郑州头条新闻
  • wordpress虚拟币接口优化什么
  • 哪些企业网站做的不错郑州seo技术顾问
  • 做一个这样的网站应该报价多少营销策划方案
  • 网页设计的培训机构运营seo是什么意思
  • 网站开发中如何设计验证码百度域名收录提交入口
  • 食品网站建设的照片市场seo是什么
  • 网站必须做API接口吗网站推广软件
  • 开封企业网络推广方案襄阳网站推广优化技巧
  • 尚层别墅装饰seo友情链接
  • 做赌博网站代理网站seo视频
  • 武汉专业做网站公司西安百度推广怎么做
  • 石家庄做公司网站普通话手抄报文字内容
  • php网站建设英文文献青岛seo排名扣费