如何截取百度地图

人气:343 ℃/2023-02-12 16:21:37

截图是最基本的操作,我来向大家分享几个简单的方法:

方法

可以按printscreen键,有的笔记本电脑上写的是Prtsc,或者是PrtscSysRq键!

可以直接用手机拍,简单又快捷

可以借助第三方工具,比如QQ截图,打开聊天界面,把鼠标放在一把剪刀的图像下,就可以直接截图,还可以选择区域截图!

也可以直接按住电脑的Ctrl+Alt+A

如何截取百度地图某段到手机

uniapp 安卓端(Android) 百度地图使用教程

一、模块配置

首先,在uniapp的maniest.json文件中进行百度密钥key进行配置。

APP模块配置

二、百度地图使用

<template> <view> <map class="map" id="myMap" v-bind:style="{ height: windowHeight * 2 'rpx'}" :latitude="latitude" :longitude="longitude" :scale="scale" :markers="markers" @callouttap='callouttap'></map> </view></template><script> export default { data() { return { //默认高度 windowHeight: '', scale: 6, latitude: '23.332961', longitude: '113.328471', //传参数据 markers: [ { id: '1', // 使用 marker点击事件 必须要 latitude: '你的坐标', longitude:'你的坐标', iconPath: '/static/images/map.png', callout: { color: '#FF0000', content: '气泡内容', //可以数据渲染出 } } ], map: null, } }, onLoad() { //获取设置默认页面高度 uni.getSystemInfo({ success: res => { this.windowHeight = res.windowHeight; } }); }, onReady() { let that=this; //引用百度地图实例 this.map = uni.createMapContext('myMap',this); }, methods: { //选择标点 callouttap(e){ let that = this; //获取选中标点的markerId that.markerId = e.target.markerId; //获取缩放级别 this.map.getScale({ success:function(res){ that.scale = res.scale; } }) }, }, mounted() { } }</script><style scoped> .map { width: 100%; }</style>

推荐

首页/电脑版/网名
© 2025 NiBaKu.Com All Rights Reserved.