收藏
回答

小程序地图组件在真机上显示标记点丢失?

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug map 微信iOS客户端 7.0.10 2.0.0
<map id="myMap" markers="{{markers}}" show-scale="{{true}}" show-compass scale="{{scale}}" setting="{{setting}}" enable-overlooking latitude="{{latitude}}" longitude="{{longitude}}" include-points="{{points}}" show-location="{{true}}"></map>



{
	"markers": [{
		"id": 1,
		"latitude": 32.906174,
		"longitude": 115.827464,
		"iconPath": "/images/location.png",
		"width": 20,
		"height": 20,
		"callout": {
			"textAlign": "center",
			"fontSize": 14,
			"padding": 5,
			"bgColor": "#ffffff",
			"borderRadius": 5,
			"borderColor": "#ff7800",
			"color": "#ff7800",
			"content": "小天才阜阳颍泉财富广场一楼店",
			"display": "ALWAYS"
		}
	}, {
		"id": 1,
		"latitude": 23.014734,
		"longitude": 113.7452,
		"iconPath": "/images/location.png",
		"width": 20,
		"height": 20,
		"callout": {
			"textAlign": "center",
			"fontSize": 14,
			"padding": 5,
			"bgColor": "#ffffff",
			"borderRadius": 5,
			"borderColor": "#ff7800",
			"color": "#ff7800",
			"content": "小天才东莞凯德广场三楼店",
			"display": "BYCLICK"
		}
	}, {
		"id": 2,
		"latitude": 23.014163854,
		"longitude": 113.760801427,
		"iconPath": "/images/location.png",
		"width": 20,
		"height": 20,
		"callout": {
			"textAlign": "center",
			"fontSize": 14,
			"padding": 5,
			"bgColor": "#ffffff",
			"borderRadius": 5,
			"borderColor": "#ff7800",
			"color": "#ff7800",
			"content": "小天才东莞市民中心新华书店",
			"display": "BYCLICK"
		}
	}],
	"points": [{
		"latitude": 32.906174,
		"longitude": 115.827464
	}, {
		"latitude": 23.014734,
		"longitude": 113.7452
	}, {
		"latitude": 23.014163854,
		"longitude": 113.760801427
	}]
}



开发者工具上可以显示

但是在真机上面无法显示安徽的那个坐标

回答关注问题邀请回答
收藏

3 个回答

登录 后发表内容
问题标签