Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uniapp的h5中,通过map地图上的@tap="bindtap"中,无法从e.detail中获取到经纬度 #5235

Open
KKJava1 opened this issue Nov 29, 2024 · 0 comments

Comments

@KKJava1
Copy link

KKJava1 commented Nov 29, 2024

<view class="ditu">
		<map style="width:100%;height:100%;" id="map" :latitude="latitude" :longitude="longitude" :scale="scale"
			:show-location="true" :markers="markerList" :polygons="polygons" :circles="circles" @tap="bindtap">
		</map>
	</view>

		bindtap(e) {
		    const _this = this;
			console.log("点击事件的详细信息:", e);

			// 获取经纬度
			const { latitude, longitude } = e.detail;
                      }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant