UNPKG

vue-cesium

Version:
128 lines (123 loc) 2.22 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var usePosition = require('../../../composables/private/use-position.js'); "use strict"; var locationDefaultProps = { geolocation: { type: Object, default: () => ({ enableHighAccuracy: true, timeout: 5e3, maximumAge: 0 }) }, /** * refer https://developer.amap.com/api/jsapi-v2/documentation#geolocation * { * key: '', * version: '2.0', * options: { * timeout: 5000, * convert: false, * noGeoLocation: 3, * needAddress: true * extensions: 'all' * }, * transformToWGS84: true * } */ amap: Object, id: { type: String, default: "My Location" }, pointColor: { type: [Array, Object, String], default: "#08ABD5" }, pixelSize: { type: Number, default: 25 / 2 }, outlineWidth: { type: Number, default: 3 }, outlineColor: { type: [Array, Object, String], default: "#ffffff" }, level: { type: Number, default: 6 }, duration: { type: Number, default: 3 }, factor: { type: Number, default: 0.01 }, maximumHeight: Number, hpr: { type: Array, default: () => [0, 0, 3e3] }, customAPI: Function, customApi: Function, description: Function, ...usePosition.positionProps, icon: { type: String, default: "vc-icons-geolocation" }, size: { type: String, default: "24px" }, color: { type: String, default: "#3f4854" }, background: { type: String, default: "#fff" }, round: { type: Boolean, default: true }, flat: { type: Boolean, default: false }, label: String, stack: { type: Boolean, default: false }, tooltip: { type: [Boolean, Object], default: () => ({ delay: 500, anchor: "bottom middle", offset: [0, 20], tip: void 0 }) }, loadingType: { type: String, default: "puff" }, customClass: { type: String, default: "" }, teleportToViewer: { type: Boolean, default: true } }; exports["default"] = locationDefaultProps; //# sourceMappingURL=defaultProps.js.map