UNPKG

map-integration

Version:

vue集成地图第三方插件

77 lines (76 loc) 2.57 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); exports.__esModule = true; exports.PolylineExtends = exports.MarkerExtends = exports.Option = void 0; /* * @Descripttion: 工具类 * @Author: xuyanqi * @Date: 2022-06-07 14:38:30 */ var Option = /** @class */ (function (_super) { __extends(Option, _super); function Option() { var _this = _super !== null && _super.apply(this, arguments) || this; // 地图中心点坐标值 _this.center = [117.127629, 36.67431]; // 地图显示的缩放级别 _this.zoom = 8; // 地图缩放最小值 _this.minZoom = 1; // 地图缩放最大值 _this.maxZoom = 16; return _this; } return Option; }(Object)); exports.Option = Option; /** * 通用marker对象 */ var MarkerExtends = /** @class */ (function (_super) { __extends(MarkerExtends, _super); function MarkerExtends() { var _this = _super !== null && _super.apply(this, arguments) || this; // 精度 _this.lng = 117.127629; // 纬度 _this.lat = 36.67431; _this.icon = 'http://43.138.107.134:9000/icon/location.png'; _this.size = 30; _this.extData = null; _this.type = 'marker'; return _this; } return MarkerExtends; }(Object)); exports.MarkerExtends = MarkerExtends; /** * 通用polyline线对象 */ var PolylineExtends = /** @class */ (function (_super) { __extends(PolylineExtends, _super); function PolylineExtends() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.borderWeight = 3; _this.strokeColor = 'red'; _this.extData = null; _this.type = 'polyline'; return _this; } return PolylineExtends; }(Object)); exports.PolylineExtends = PolylineExtends;