收藏
回答

安卓真机测试地图无法缩放和拖动,请问是什么原因?

<map
			:latitude="latitude"
			:longitude="longitude"
			:markers="covers"
			@markertap="markertap"
			id="mymap"
			:scale="scale"
			@updated="updated"
			@regionchange="regionchange"
			:show-location="true"
			:polyline="polyline"
			show-location="true"
		></map>
		<!-- 引导层 -->
<!-- 		<cover-view :class='["guideBox",isGuideShow?"guideBoxShow":""]' v-show="isGuideShow" @touchmove.stop.prevent>
			<cover-image src="../../static/nav.png" class="navImg"></cover-image>
			<cover-image src="../../static/languages.png" class="languagesImg"></cover-image>
			<cover-image src="../../static/daohang.png" class="daohangImg"></cover-image>
			<cover-image src="../../static/jingdian.png" class="jingdianImg"></cover-image>
			<cover-image src="../../static/hotline.png" class="hotlineImg"></cover-image>
			<cover-view class="iKnow" @tap.stop="closeGuideBox">我知道了</cover-view>
		</cover-view> -->
		
		<!-- 右侧浮动按钮 -->
		<cover-view class="rightSuspend">
			<cover-view class="languageSwitch" @tap="languageSwitch">
				<cover-image class="img" src="../../static/language.png"></cover-image>
			</cover-view>
			<cover-view class="autoSwitch" @tap="switchChange" style="transition: all .2s;">
				<cover-image :src="isRealTimePosition ? opensrc : closesrc" class="switchImg"></cover-image>
			</cover-view>
		</cover-view>
		
		<!-- 是否播放弹窗 -->
		<!-- <view class="isAudioPlay" v-show="isPlayTipShow">
			<text>当前正在解说A景点,距离下一个景点1000米</text>
			<text class="close" @tap="closePlayTip">关闭</text>
		</view> -->
		
		<!-- marker点详情弹框 -->
		<cover-view :class='["markerInfo",markerInfoShow?"animation-slide-bottom":""]' v-show="markerInfoShow">
			<cover-image src="../../static/tcbg.png" class="bgImg"></cover-image>
			<cover-view class="info">
				<cover-view class="close" @tap="markerInfoClose">关闭</cover-view>
				<cover-view class="img">
					<cover-image :src="sightInfo.pic_path"></cover-image>
				</cover-view>
				<cover-view class="textinfo">
					<cover-view class="title">{{sightInfo.title}}</cover-view>
					<cover-view class="info-box">{{sightInfo.intro}}</cover-view>
					<cover-view class="botbtn">
						<cover-view class="narrate" @tap.stop="narrateMarker" v-show="curIndex == -1">
							<cover-image src="../../static/ypicon.png" class="ypicon"></cover-image>
							<cover-view class="t">语音导览</cover-view>
						</cover-view>
						<cover-view class="gohere" @tap="goMarkerPoint(sightInfo.id)">
							<cover-image src="../../static/locicon.png" class="locicon"></cover-image>
							<cover-view class="t">到这里</cover-view>
						</cover-view>
					</cover-view>
				</cover-view>
			</cover-view>
		</cover-view>
地图上嵌入了cover-view标签,ios可以拖动,但是安卓无法拖动。
回答关注问题邀请回答
收藏

1 个回答

  • 是柿子啊
    是柿子啊
    2020-04-27

    map组件已经实现了同层,将cover-view换成view 试下?

    2020-04-27
    有用
    回复 4
    • 晴天🌞
      晴天🌞
      2020-04-27
      cover-view组件是覆盖在上面的,用了绝对定位,所以不是同层
      2020-04-27
      回复
    • 是柿子啊
      是柿子啊
      2020-04-27回复晴天🌞
      目前是可以使用view进行定位的
      2020-04-27
      回复
    • 晴天🌞
      晴天🌞
      2020-04-27
      解决了同层渲染的问题了吗?不好意思啊,没看文档更新
      2020-04-27
      回复
    • 梦想家罗西
      梦想家罗西
      2020-09-07
      你好,华为mate 20 依然未实现同层,需要cover-image和cover-view才能覆盖再video上面
      2020-09-07
      回复
登录 后发表内容
问题标签