同步操作将从 osmapgis/MapGIS-WebClient-JavaScript 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
import { mapgis } from '../common/base';import { cloneDeep } from 'lodash';import { VisualVariable } from './VisualVariable';/*** 视觉变量-旋转视觉变量* @class mapgis.renderer.RotationVariable* @classdesc 视觉变量-旋转视觉变量* @param {String} [type] 视觉变量类型,只能是 'rotation'* @param {String} [axis] 符号旋转所绕的轴,可选 "heading"|"tilt"|"roll"* @param {String} [rotationType] 符号旋转方向,此属性仅适用于绕heading轴旋转,可选 "geographic"|"arithmetic"*/export default class RotationVariable extends VisualVariable {constructor(option) {super(option);var options = option ? option : {};const { type = "rotation" } = options;this.type = type;const { axis, rotationType } = options;this.axis = axis;this.rotationType = rotationType;}/*** @description 克隆函数*/clone() {return cloneDeep(this);}/*** @description 将JSON格式的视觉变量转换为JS对象* @param {Object} json 视觉变量的实例化JSON*/fromJSON(json) {json = json || {};const { type = "rotation" } = json;this.type = type;const { axis, rotationType } = options;this.axis = axis;this.rotationType = rotationType;}/*** 将JS对象转换为JSON格式* @returns {Object} 视觉变量的实例化JSON*/toJSON() {return {type: this.type,axis: this.axis,rotationType: this.rotationType,};}}export { RotationVariable };mapgis.renderer.RotationVariable = RotationVariable;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。