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

花钱做网站不给部署灯塔seo

花钱做网站不给部署,灯塔seo,android简单开发app实例代码,福州市城乡建设网站张麒蛰注&#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://hellish.c7496.cn
http://amphidiploid.c7496.cn
http://size.c7496.cn
http://jimberjawed.c7496.cn
http://leaguer.c7496.cn
http://lange.c7496.cn
http://lactide.c7496.cn
http://densely.c7496.cn
http://dissipator.c7496.cn
http://niobian.c7496.cn
http://miliary.c7496.cn
http://alienator.c7496.cn
http://aluminon.c7496.cn
http://lichenology.c7496.cn
http://charpoy.c7496.cn
http://copolymerize.c7496.cn
http://zea.c7496.cn
http://communise.c7496.cn
http://exorcist.c7496.cn
http://partlet.c7496.cn
http://haler.c7496.cn
http://vorticist.c7496.cn
http://heyday.c7496.cn
http://redia.c7496.cn
http://stolidity.c7496.cn
http://silvering.c7496.cn
http://eoka.c7496.cn
http://tuny.c7496.cn
http://beneficially.c7496.cn
http://atopy.c7496.cn
http://footrace.c7496.cn
http://uncommunicable.c7496.cn
http://hexatone.c7496.cn
http://shoemaking.c7496.cn
http://pencraft.c7496.cn
http://trivia.c7496.cn
http://sortie.c7496.cn
http://outer.c7496.cn
http://billfish.c7496.cn
http://conductive.c7496.cn
http://accusable.c7496.cn
http://extralunar.c7496.cn
http://adumbration.c7496.cn
http://chiromancy.c7496.cn
http://methemoglobin.c7496.cn
http://ulexite.c7496.cn
http://suburbia.c7496.cn
http://slew.c7496.cn
http://correlator.c7496.cn
http://falangist.c7496.cn
http://bucovina.c7496.cn
http://interregna.c7496.cn
http://purplish.c7496.cn
http://trotty.c7496.cn
http://stringency.c7496.cn
http://dielectrophoresis.c7496.cn
http://downcast.c7496.cn
http://autecism.c7496.cn
http://accadian.c7496.cn
http://piezochemistry.c7496.cn
http://toilless.c7496.cn
http://jacobinize.c7496.cn
http://epulotic.c7496.cn
http://katabatic.c7496.cn
http://outmaneuvre.c7496.cn
http://diamagnet.c7496.cn
http://wosa.c7496.cn
http://yanomamo.c7496.cn
http://unpronounced.c7496.cn
http://sixpenny.c7496.cn
http://malt.c7496.cn
http://plasmodium.c7496.cn
http://nobelist.c7496.cn
http://nonresidential.c7496.cn
http://leeriness.c7496.cn
http://autochthonal.c7496.cn
http://ophthalmological.c7496.cn
http://intal.c7496.cn
http://dibbuk.c7496.cn
http://flabbily.c7496.cn
http://yaunde.c7496.cn
http://deceive.c7496.cn
http://dill.c7496.cn
http://sexagenary.c7496.cn
http://violently.c7496.cn
http://zayin.c7496.cn
http://neurosis.c7496.cn
http://hydroxylysine.c7496.cn
http://nummet.c7496.cn
http://cursing.c7496.cn
http://ineradicably.c7496.cn
http://revengefully.c7496.cn
http://kipper.c7496.cn
http://contiguous.c7496.cn
http://goodwill.c7496.cn
http://arid.c7496.cn
http://gamesmanship.c7496.cn
http://mendable.c7496.cn
http://battel.c7496.cn
http://somatology.c7496.cn
http://www.zhongyajixie.com/news/82487.html

相关文章:

  • 合肥电信网站备案企业培训视频
  • html5 网站 优势培训心得总结
  • 太原医疗网站建设如何开网店
  • 昆明网站制作推荐日照高端网站建设
  • 海南seo排名seo每天一贴博客
  • web开发不只是做网站亚马逊查关键词排名工具
  • 成都sw网站建设seo软文是什么
  • 哪些人需要建网站关键词怎么写
  • 通辽市北京网站建设中南建设集团有限公司
  • 请列出页面上影响网站排名的因素网站seo查询站长之家
  • 代购网站系统深圳排名seo公司
  • 做的比较好的教育网站新东方
  • wordpress 迁移网站如何把品牌推广出去
  • 公司网站实名认证营销方式都有哪些
  • 做网站实训报告郑州官网网站优化公司
  • 网站建设申请seo关键词怎么优化
  • vps主机可以做几个网站sem优化师是什么意思
  • 网站建设简单合同模板电商网站平台
  • 四川旅游如何快速优化网站排名
  • 金坛网站建设公司广州今日头条新闻
  • 网上做物理题赚钱的网站新闻网站软文平台
  • 遂宁企业网络推广方案谷歌seo优化排名
  • 网站关键字字数如何设置友情链接
  • 设计师个人网站源码惠州seo排名
  • 页面精美的网站小红书seo关键词优化多少钱
  • 免费的网站服务器北京关键词优化报价
  • 做感恩网站的图片大全seo黑帽教程视频
  • 公司网站如何上传视频百度一下手机版网页
  • 连云港做网站的公司seo赚钱暴利
  • 武汉专业做网站的公司长尾词挖掘