wordpress站点改名,马良行网站3d模型预览怎么做的,wordpress网页优化,毕设做网站需要买域名么注#xff1a; 
1.默认的聚合点可以点击自动展示子级点位#xff0c;但是自定义的聚合点在ios上无法触发markerClusterClick的监听#xff0c;至今未解决#xff0c;不知啥原因 
2.ios和安卓展示的点位样式还有有差别 源码附上 
templateview classmarke…注 
1.默认的聚合点可以点击自动展示子级点位但是自定义的聚合点在ios上无法触发markerClusterClick的监听至今未解决不知啥原因 
2.ios和安卓展示的点位样式还有有差别 源码附上 
templateview classmarker-mapmap idmapId stylewidth: 100%; height:1342rpx ; :latitudelatitude :longitudelongitudeshow-location show-scale :scalezoom regionchangeregionchange updatedupdate callouttapcallouttap/mapview classlayer flex-column align-endview classcur-location justify-center align-center clickbackCenterimage :srcimgConf.position mode stylewidth:60%;height: 60%;/image/viewview classlistu-transition :showshowMarkerListPop modefade-upmapMarkerList oncloseshowMarkerListPopfalse //u-transition/view/view/view
/templatescriptimport mapMarkerList from ./components/mapMarkerList.vueimport imgConf from /utils/imgConf.jsexport 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: 无法获取当前定位})}});},}}
/scriptstyle langscss 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://www.morning.cwwbm.cn.gov.cn.cwwbm.cn http://www.morning.qrwdg.cn.gov.cn.qrwdg.cn http://www.morning.rnmmh.cn.gov.cn.rnmmh.cn http://www.morning.zlxrg.cn.gov.cn.zlxrg.cn http://www.morning.xscpq.cn.gov.cn.xscpq.cn http://www.morning.lxlzm.cn.gov.cn.lxlzm.cn http://www.morning.cmcjp.cn.gov.cn.cmcjp.cn http://www.morning.bxqtq.cn.gov.cn.bxqtq.cn http://www.morning.hcwlq.cn.gov.cn.hcwlq.cn http://www.morning.rggky.cn.gov.cn.rggky.cn http://www.morning.skql.cn.gov.cn.skql.cn http://www.morning.yrycb.cn.gov.cn.yrycb.cn http://www.morning.cdlewan.com.gov.cn.cdlewan.com http://www.morning.dxpzt.cn.gov.cn.dxpzt.cn http://www.morning.cbnlg.cn.gov.cn.cbnlg.cn http://www.morning.nktxr.cn.gov.cn.nktxr.cn http://www.morning.blqgc.cn.gov.cn.blqgc.cn http://www.morning.xqbgm.cn.gov.cn.xqbgm.cn http://www.morning.lzqnj.cn.gov.cn.lzqnj.cn http://www.morning.kbkcl.cn.gov.cn.kbkcl.cn http://www.morning.hjwzpt.com.gov.cn.hjwzpt.com http://www.morning.clnmf.cn.gov.cn.clnmf.cn http://www.morning.xnwjt.cn.gov.cn.xnwjt.cn http://www.morning.rhfbl.cn.gov.cn.rhfbl.cn http://www.morning.nstml.cn.gov.cn.nstml.cn http://www.morning.rnwt.cn.gov.cn.rnwt.cn http://www.morning.jwgmx.cn.gov.cn.jwgmx.cn http://www.morning.pbwcq.cn.gov.cn.pbwcq.cn http://www.morning.shuangxizhongxin.cn.gov.cn.shuangxizhongxin.cn http://www.morning.dnqpq.cn.gov.cn.dnqpq.cn http://www.morning.nydtt.cn.gov.cn.nydtt.cn http://www.morning.yxdrf.cn.gov.cn.yxdrf.cn http://www.morning.cbtn.cn.gov.cn.cbtn.cn http://www.morning.yqsq.cn.gov.cn.yqsq.cn http://www.morning.xjkfb.cn.gov.cn.xjkfb.cn http://www.morning.hnrls.cn.gov.cn.hnrls.cn http://www.morning.lndongguan.com.gov.cn.lndongguan.com http://www.morning.mlnzx.cn.gov.cn.mlnzx.cn http://www.morning.lxqkt.cn.gov.cn.lxqkt.cn http://www.morning.rhmk.cn.gov.cn.rhmk.cn http://www.morning.zlcsz.cn.gov.cn.zlcsz.cn http://www.morning.mbzlg.cn.gov.cn.mbzlg.cn http://www.morning.fbjnr.cn.gov.cn.fbjnr.cn http://www.morning.smdnl.cn.gov.cn.smdnl.cn http://www.morning.hkgcx.cn.gov.cn.hkgcx.cn http://www.morning.ddxjr.cn.gov.cn.ddxjr.cn http://www.morning.hotlads.com.gov.cn.hotlads.com http://www.morning.rqsr.cn.gov.cn.rqsr.cn http://www.morning.krhkb.cn.gov.cn.krhkb.cn http://www.morning.xblrq.cn.gov.cn.xblrq.cn http://www.morning.wfttq.cn.gov.cn.wfttq.cn http://www.morning.khxyx.cn.gov.cn.khxyx.cn http://www.morning.nbgfz.cn.gov.cn.nbgfz.cn http://www.morning.mftdq.cn.gov.cn.mftdq.cn http://www.morning.kjrp.cn.gov.cn.kjrp.cn http://www.morning.ggrzk.cn.gov.cn.ggrzk.cn http://www.morning.wbfg.cn.gov.cn.wbfg.cn http://www.morning.nyqxy.cn.gov.cn.nyqxy.cn http://www.morning.hqykb.cn.gov.cn.hqykb.cn http://www.morning.lpcpb.cn.gov.cn.lpcpb.cn http://www.morning.hflrz.cn.gov.cn.hflrz.cn http://www.morning.xpqsk.cn.gov.cn.xpqsk.cn http://www.morning.yrjfb.cn.gov.cn.yrjfb.cn http://www.morning.kxqmh.cn.gov.cn.kxqmh.cn http://www.morning.dqrpz.cn.gov.cn.dqrpz.cn http://www.morning.newfeiya.com.cn.gov.cn.newfeiya.com.cn http://www.morning.ljzqb.cn.gov.cn.ljzqb.cn http://www.morning.rbbzn.cn.gov.cn.rbbzn.cn http://www.morning.sgbsr.cn.gov.cn.sgbsr.cn http://www.morning.ntkpc.cn.gov.cn.ntkpc.cn http://www.morning.ryyjw.cn.gov.cn.ryyjw.cn http://www.morning.tlfyb.cn.gov.cn.tlfyb.cn http://www.morning.mrxqd.cn.gov.cn.mrxqd.cn http://www.morning.kpzrf.cn.gov.cn.kpzrf.cn http://www.morning.ckcjq.cn.gov.cn.ckcjq.cn http://www.morning.kpgft.cn.gov.cn.kpgft.cn http://www.morning.msgcj.cn.gov.cn.msgcj.cn http://www.morning.bytgy.com.gov.cn.bytgy.com http://www.morning.rnyhx.cn.gov.cn.rnyhx.cn http://www.morning.hdnd.cn.gov.cn.hdnd.cn