|
@@ -497,7 +497,7 @@ const initDrawMethod = (options) => {
|
|
|
} else {
|
|
|
if (options.type == 'circle') {
|
|
|
data.center = [obj.getCenter().lng, obj.getCenter().lat];
|
|
|
- data.radius = obj.getRadius();
|
|
|
+ data.radius = obj.getRadius() / 100000;
|
|
|
} else {
|
|
|
const path = obj.getPath();
|
|
|
// 将AMap.LngLat对象数组转换为经纬度数组
|
|
@@ -932,7 +932,13 @@ const handleShowSetting = (item, index) => {
|
|
|
let dataURL = ref('');
|
|
|
// 页面元素转图片
|
|
|
const handleScreenshot = () => {
|
|
|
- const canvasBox = getMap().Iv;
|
|
|
+ let map = getMap();
|
|
|
+ let canvasBox;
|
|
|
+ if (AMapType.includes(props.activeMap)) {
|
|
|
+ canvasBox = map.Iv;
|
|
|
+ } else {
|
|
|
+ canvasBox = map.targetElement_;
|
|
|
+ }
|
|
|
// 手动创建一个 canvas 标签
|
|
|
const canvas = document.createElement('canvas');
|
|
|
if (canvasBox) {
|