diff --git a/src/leaflet/layer/mapWmtsLayer.js b/src/leaflet/layer/mapWmtsLayer.js index b2d0b0135..752b99d4f 100644 --- a/src/leaflet/layer/mapWmtsLayer.js +++ b/src/leaflet/layer/mapWmtsLayer.js @@ -1,5 +1,5 @@ -import {Zondy} from '../../service/common/Base'; -import {L} from 'leaflet'; +import { Zondy } from '../../service/common/Base'; +import { L } from 'leaflet'; /** * @author 基础平台/产品2部 龚跃健 @@ -19,6 +19,8 @@ import {L} from 'leaflet'; * @param {String} [option.format = image/png ] 可选。图块输出格式。image/png或image/jpeg * @param {String} [option.tileSize = 256] 可选。瓦片大小 * @param {String} [option.version = 1.0.0] 可选。WMTS版本 + * @param {String} [option.tokenKey = ""] 可选。token的key值(token/tk) + * @param {String} [option.token = ""] 可选。token值 * @example new Zondy.Map.MapWMTSLayer({ //IGServer所在ip地址 @@ -34,116 +36,123 @@ import {L} from 'leaflet'; }) */ var MapWMTSLayer = window.L.TileLayer.extend({ - options: { - version: '1.0.0', - style: '', - serverName: '',//服务名 - tilematrixSet: '', //矩阵集名称 - layer: '', //图层名 - format: 'image/png', - tileSize: 256, - attribution: "Zondy WMTS Data", - noWrap: true - }, - //var layer3 = new ZondyMapWMTSLayer("http://localhost:6163/igs/rest/ogc/WMTSServer", { tilematrixSet: "EPSG:4326_世界地图经纬度LEVEL7_028mm_GB", layer: 'World_level7_WMTS' }).addTo(mymap); - // - initialize: function (options) { // (String, Object) - if (options.url) { - if (options.url.indexOf("?") > -1) { - this._url = options.url.split("?")[0] - } else { - this._url = options.url - } - } else { - var partUrl = '/igs/rest/ogc/WMTSServer' - if (options.serverName && options.serverName !== '') { - partUrl = '/igs/rest/ogc/' + options.serverName + '/WMTSServer' - } - var domain = options && options.domain ? options.domain : ''; - if (domain === '') { - this.networkProtocol = options.networkProtocol !== undefined ? options.networkProtocol : location.protocol.split(":")[0] || "http"; - var ip = options && options.ip ? options.ip : 'localhost'; - var port = options && options.port ? options.port : '6163'; - this._url = encodeURI(this.networkProtocol + '://' + ip + ':' + port + partUrl); - } else { - this._url = encodeURI(domain + partUrl); - } - } - if (this._url.toLowerCase().indexOf("ime-cloud") > -1) {//吉威的数据 - this._url += '?service=WMTS&REQUEST=GetTile' - } else { - this._url += '?service=WMTS&request=GetTile' - } - this.options.origin = options.origin ? options.origin : null; - window.L.setOptions(this, options); - }, - onAdd: function (map) { - this._crs = this.options.crs || map.options.crs; - let bounds = this._crs.projection.bounds; - let northWest = [bounds.min.x, bounds.max.y] - this._origin = this.options.origin ? this.options.origin : northWest - window.L.TileLayer.prototype.onAdd.call(this, map); - }, - /** - * @private - * @function Zondy.Map.MapWMTSLayer.prototype.getTileUrl - * @description 根据行列号获取瓦片地址。考虑发布的wmts的瓦片不按左上角为原点的情况,需另外处理 - * @param coords - {Object} 行列号 - * @return {string} 瓦片地址 - */ - getTileUrl: function (coords) { // (Point, Number) -> String - // var tileBounds = this._tileCoordsToBounds(coords); - // var ne = this._crs.project(tileBounds.getNorthEast()); - // var sw = this._crs.project(tileBounds.getSouthWest()); - // var tileSize = this.options.tileSize; - // var resolution = Math.max(Math.abs(ne.x - sw.x) / tileSize, Math.abs(ne.y - sw.y) / tileSize); - // - // var centerPnt = [(ne.x + sw.x) / 2, (ne.y + sw.y) / 2]; - // var dx = centerPnt[0] - (this._origin)[0]; - // var dy = centerPnt[1] - (this._origin)[1]; - // - // var xGrid = -1e8; - // var yGrid = -1e8; - // - // xGrid = Math.floor(dx / (tileSize * resolution)); - // if (this.options.yAxis === 'down') { - // yGrid = Math.floor(-dy / (tileSize * resolution)); - // } else { - // yGrid = Math.floor(dy / (tileSize * resolution)); - // } + options: { + version: '1.0.0', + style: '', + serverName: '', //服务名 + tilematrixSet: '', //矩阵集名称 + layer: '', //图层名 + format: 'image/png', + tileSize: 256, + attribution: 'Zondy WMTS Data', + noWrap: true + }, + //var layer3 = new ZondyMapWMTSLayer("http://localhost:6163/igs/rest/ogc/WMTSServer", { tilematrixSet: "EPSG:4326_世界地图经纬度LEVEL7_028mm_GB", layer: 'World_level7_WMTS' }).addTo(mymap); + // + initialize: function (options) { + // (String, Object) + if (options.url) { + if (options.url.indexOf('?') > -1) { + this._url = options.url.split('?')[0]; + } else { + this._url = options.url; + } + } else { + var partUrl = '/igs/rest/ogc/WMTSServer'; + if (options.serverName && options.serverName !== '') { + partUrl = '/igs/rest/ogc/' + options.serverName + '/WMTSServer'; + } + var domain = options && options.domain ? options.domain : ''; + if (domain === '') { + this.networkProtocol = options.networkProtocol !== undefined ? options.networkProtocol : location.protocol.split(':')[0] || 'http'; + var ip = options && options.ip ? options.ip : 'localhost'; + var port = options && options.port ? options.port : '6163'; + this._url = encodeURI(this.networkProtocol + '://' + ip + ':' + port + partUrl); + } else { + this._url = encodeURI(domain + partUrl); + } + } + if (this._url.toLowerCase().indexOf('ime-cloud') > -1) { + //吉威的数据 + this._url += '?service=WMTS&REQUEST=GetTile'; + } else { + this._url += '?service=WMTS&request=GetTile'; + } + this.options.origin = options.origin ? options.origin : null; + window.L.setOptions(this, options); + }, + onAdd: function (map) { + this._crs = this.options.crs || map.options.crs; + let bounds = this._crs.projection.bounds; + let northWest = [bounds.min.x, bounds.max.y]; + this._origin = this.options.origin ? this.options.origin : northWest; + window.L.TileLayer.prototype.onAdd.call(this, map); + }, + /** + * @private + * @function Zondy.Map.MapWMTSLayer.prototype.getTileUrl + * @description 根据行列号获取瓦片地址。考虑发布的wmts的瓦片不按左上角为原点的情况,需另外处理 + * @param coords - {Object} 行列号 + * @return {string} 瓦片地址 + */ + getTileUrl: function (coords) { + // (Point, Number) -> String + // var tileBounds = this._tileCoordsToBounds(coords); + // var ne = this._crs.project(tileBounds.getNorthEast()); + // var sw = this._crs.project(tileBounds.getSouthWest()); + // var tileSize = this.options.tileSize; + // var resolution = Math.max(Math.abs(ne.x - sw.x) / tileSize, Math.abs(ne.y - sw.y) / tileSize); + // + // var centerPnt = [(ne.x + sw.x) / 2, (ne.y + sw.y) / 2]; + // var dx = centerPnt[0] - (this._origin)[0]; + // var dy = centerPnt[1] - (this._origin)[1]; + // + // var xGrid = -1e8; + // var yGrid = -1e8; + // + // xGrid = Math.floor(dx / (tileSize * resolution)); + // if (this.options.yAxis === 'down') { + // yGrid = Math.floor(-dy / (tileSize * resolution)); + // } else { + // yGrid = Math.floor(dy / (tileSize * resolution)); + // } - var zoom = this._getZoomForUrl(); - var url = window.L.Util.template(this._url, {s: this._getSubdomain(coords)}); + var zoom = this._getZoomForUrl(); + var url = window.L.Util.template(this._url, { s: this._getSubdomain(coords) }); - var obj = { - version: this.options.version, - style: this.options.style, - tilematrixSet: this.options.tilematrixSet, - format: this.options.format, - layer: this.options.layer, - tilematrix: zoom, - tilerow: coords.y, - tilecol: coords.x - }; + var obj = { + version: this.options.version, + style: this.options.style, + tilematrixSet: this.options.tilematrixSet, + format: this.options.format, + layer: this.options.layer, + tilematrix: zoom, + tilerow: coords.y, + tilecol: coords.x + }; - //根据地图的不同,拼装不同的url参数 - if(url.indexOf('tianditu') > -1){ - obj.tilematrixSet = 'c'; - }else if(url.indexOf('geoserver') > -1){ - obj.tilematrix = this.options.tilematrixSet+ ':'+zoom; - } + //根据地图的不同,拼装不同的url参数 + if (url.indexOf('tianditu') > -1) { + obj.tilematrixSet = 'c'; + } else if (url.indexOf('geoserver') > -1) { + obj.tilematrix = this.options.tilematrixSet + ':' + zoom; + } - if (this.options.token) { - if(url.indexOf('tianditu') > -1){ - obj.tk = this.options.token - }else { - obj.token = this.options.token - } - } + if (this.options.token) { + if (this.options.tokenKey) { + obj[this.options.tokenKey] = this.options.token; + } else { + if (url.indexOf('tianditu') > -1) { + obj.tk = this.options.token; + } else { + obj.token = this.options.token; + } + } + } - return url + window.L.Util.getParamString(obj, url); - } + return url + window.L.Util.getParamString(obj, url); + } }); -export {MapWMTSLayer}; +export { MapWMTSLayer }; Zondy.Map.MapWMTSLayer = MapWMTSLayer; diff --git a/src/service/common/CDisplayStyle.js b/src/service/common/CDisplayStyle.js index 11cfe5834..c83554e61 100644 --- a/src/service/common/CDisplayStyle.js +++ b/src/service/common/CDisplayStyle.js @@ -1,12 +1,6 @@ -import { - Zondy -} from './Base'; -import { - extend -} from "./Util"; -import { - DynShowStyle -} from './DynShowStyle' +import { Zondy } from './Base'; +import { extend } from './Util'; +import { DynShowStyle } from './DynShowStyle'; /** * 地图文档显示样式对象 @@ -26,11 +20,23 @@ import { * @param {Boolean} [option.ShowCoordPnt = false] 显示坐标点 * @param {Boolean} [option.ShowElemRect = false] 显示元素的外包矩形 * @param {Array} [option.ShowStyle = null] 图层显示参数 Array, {@link Zondy.Object.DynShowStyle} + * @param {Array} [option.LayerStyles = null] 图层显示参数 Map, {@link Zondy.Object.DynShowStyle} * @param {Boolean} [option.SymbleShow = false] 是否进行还原显示 * @see Zondy.Service.GetDocImageService + * @example + * var layerStyle = new Zondy.Object.DynShowStyle({ + Alpha: 50 + }); + var style = new Zondy.Object.CDisplayStyle({ + LayerStyles: { + 0: layerStyle, + 1: layerStyle, + '2-0': layerStyle + } + }); */ var CDisplayStyle = function (option) { - var options = (option !== undefined) ? option : {}; + var options = option !== undefined ? option : {}; extend(this, options); /** @@ -40,7 +46,7 @@ var CDisplayStyle = function (option) { * @description 注记符号大小固定 * @default false */ - this.AnnSizeFixed = (options.AnnSizeFixed !== undefined) ? options.AnnSizeFixed : false; + this.AnnSizeFixed = options.AnnSizeFixed !== undefined ? options.AnnSizeFixed : false; /** * @private @@ -49,7 +55,7 @@ var CDisplayStyle = function (option) { * @description 图像质量可选值为:1(低)、2(中)、3(高) * @default 0 */ - this.DriverQuality = (options.DriverQuality !== undefined) ? options.DriverQuality : 0; + this.DriverQuality = options.DriverQuality !== undefined ? options.DriverQuality : 0; /** * @private @@ -58,7 +64,7 @@ var CDisplayStyle = function (option) { * @description 是否动态投影 * @default false */ - this.DynProjFlag = (options.DynProjFlag !== undefined) ? options.DynProjFlag : false; + this.DynProjFlag = options.DynProjFlag !== undefined ? options.DynProjFlag : false; /** * @private @@ -67,7 +73,7 @@ var CDisplayStyle = function (option) { * @description 符号是否跟随显示放大(该属性已过时,请使用各个要素类的大小固定及线宽固定) * @default false */ - this.FollowScale = (options.FollowScale !== undefined) ? options.FollowScale : false; + this.FollowScale = options.FollowScale !== undefined ? options.FollowScale : false; /** * @private @@ -76,7 +82,7 @@ var CDisplayStyle = function (option) { * @description 线状符号线宽固定 * @default false */ - this.LinPenWidFixed = (options.LinPenWidFixed !== undefined) ? options.LinPenWidFixed : false; + this.LinPenWidFixed = options.LinPenWidFixed !== undefined ? options.LinPenWidFixed : false; /** * @private @@ -85,7 +91,7 @@ var CDisplayStyle = function (option) { * @description 线状符号大小固定 * @default false */ - this.LinSizeFixed = (options.LinSizeFixed !== undefined) ? options.LinSizeFixed : false; + this.LinSizeFixed = options.LinSizeFixed !== undefined ? options.LinSizeFixed : false; /** * @private @@ -94,7 +100,7 @@ var CDisplayStyle = function (option) { * @description 点状符号线宽固定 * @default false */ - this.PntPenWidFixed = (options.PntPenWidFixed !== undefined) ? options.PntPenWidFixed : false; + this.PntPenWidFixed = options.PntPenWidFixed !== undefined ? options.PntPenWidFixed : false; /** * @private @@ -103,7 +109,7 @@ var CDisplayStyle = function (option) { * @description 点状符号大小固定 * @default false */ - this.PntSizeFixed = (options.PntSizeFixed !== undefined) ? options.PntSizeFixed : false; + this.PntSizeFixed = options.PntSizeFixed !== undefined ? options.PntSizeFixed : false; /** * @private @@ -112,7 +118,7 @@ var CDisplayStyle = function (option) { * @description 填充符号线宽固定 * @default false */ - this.RegPenWidFixed = (options.RegPenWidFixed !== undefined) ? options.RegPenWidFixed : false; + this.RegPenWidFixed = options.RegPenWidFixed !== undefined ? options.RegPenWidFixed : false; /** * @private @@ -121,7 +127,7 @@ var CDisplayStyle = function (option) { * @description 填充符号大小固定 * @default false */ - this.RegSizeFixed = (options.RegSizeFixed !== undefined) ? options.RegSizeFixed : false; + this.RegSizeFixed = options.RegSizeFixed !== undefined ? options.RegSizeFixed : false; /** * @private @@ -130,7 +136,7 @@ var CDisplayStyle = function (option) { * @description 显示坐标点 * @default false */ - this.ShowCoordPnt = (options.ShowCoordPnt !== undefined) ? options.ShowCoordPnt : false; + this.ShowCoordPnt = options.ShowCoordPnt !== undefined ? options.ShowCoordPnt : false; /** * @private @@ -139,7 +145,7 @@ var CDisplayStyle = function (option) { * @description 显示元素的外包矩形 * @default false */ - this.ShowElemRect = (options.ShowElemRect !== undefined) ? options.ShowElemRect : false; + this.ShowElemRect = options.ShowElemRect !== undefined ? options.ShowElemRect : false; /** * @private @@ -148,7 +154,16 @@ var CDisplayStyle = function (option) { * @description 图层显示参数Array<{@link Zondy.Object.DynShowStyle}> * @default null */ - this.ShowStyle = (options.ShowStyle !== undefined) ? options.ShowStyle : null; + this.ShowStyle = options.ShowStyle !== undefined ? options.ShowStyle : null; + + /** + * @private + * @member Zondy.Object.CDisplayStyle.prototype.LayerStyles + * @type {Map} + * @description 图层显示参数Map<{@link Zondy.Object.DynShowStyle}> + * @default null + */ + this.LayerStyles = options.LayerStyles !== undefined ? options.LayerStyles : null; /** * @private @@ -157,10 +172,8 @@ var CDisplayStyle = function (option) { * @description 是否进行还原显示 * @default false */ - this.SymbleShow = (options.SymbleShow !== undefined) ? options.SymbleShow : false; + this.SymbleShow = options.SymbleShow !== undefined ? options.SymbleShow : false; }; -export { - CDisplayStyle -}; -Zondy.Object.CDisplayStyle = CDisplayStyle; \ No newline at end of file +export { CDisplayStyle }; +Zondy.Object.CDisplayStyle = CDisplayStyle; diff --git a/src/service/common/DynShowStyle.js b/src/service/common/DynShowStyle.js index bf8aed57b..5dffd2da4 100644 --- a/src/service/common/DynShowStyle.js +++ b/src/service/common/DynShowStyle.js @@ -1,31 +1,17 @@ -import { - Zondy -} from './Base'; -import { - extend -} from "./Util"; -import { - CDynNoteInfo -} from "./CDynNoteInfo"; -import { - ISShowArc -} from "./EnumComm"; -import { - CLineInfo -} from "./CLineInfo"; -import { - CPointInfo -} from "./CPointInfo"; -import { - CRegionInfo -} from "./CRegionInfo"; +import { Zondy } from './Base'; +import { extend } from './Util'; +import { CDynNoteInfo } from './CDynNoteInfo'; +import { ISShowArc } from './EnumComm'; +import { CLineInfo } from './CLineInfo'; +import { CPointInfo } from './CPointInfo'; +import { CRegionInfo } from './CRegionInfo'; /** * 图层动态显示样式对象 * @class Zondy.Object.DynShowStyle * @classdesc 地图文档显示样式对象构造函数 * @param {Object} option 属性键值对 - * @param {Number} [option.Alpha = 0] 透明度 + * @param {Number} [option.Alpha = 0] 透明度(0-100),0表示全部显示,100表示隐藏,50表示半透明 * @param {Boolean} [option.BugSpare = false] 是否使用错误处理符号 * @param {Boolean} [option.CustomRender = false] 是否自绘驱动 * @param {String} [option.CustomRenderPath = false] 自绘驱动路径设置 @@ -47,7 +33,7 @@ import { * @see Zondy.Object.CDisplayStyle */ var DynShowStyle = function (option) { - var options = (option !== undefined) ? option : {}; + var options = option !== undefined ? option : {}; extend(this, options); /** @@ -56,7 +42,7 @@ var DynShowStyle = function (option) { * @description 透明度 * @default 0 */ - this.Alpha = (options.Alpha !== undefined) ? options.Alpha : 0; + this.Alpha = options.Alpha !== undefined ? options.Alpha : 0; /** * @member Zondy.Object.DynShowStyle.prototype.BugSpare @@ -64,7 +50,7 @@ var DynShowStyle = function (option) { * @description 是否使用错误处理符号 * @default false */ - this.BugSpare = (options.BugSpare !== undefined) ? options.BugSpare : false; + this.BugSpare = options.BugSpare !== undefined ? options.BugSpare : false; /** * @member Zondy.Object.DynShowStyle.prototype.CustomRender @@ -72,7 +58,7 @@ var DynShowStyle = function (option) { * @description 是否自绘驱动 * @default false */ - this.CustomRender = (options.CustomRender !== undefined) ? options.CustomRender : false; + this.CustomRender = options.CustomRender !== undefined ? options.CustomRender : false; /** * @member Zondy.Object.DynShowStyle.prototype.CustomRenderPath @@ -80,7 +66,7 @@ var DynShowStyle = function (option) { * @description 自绘驱动路径设置 * @default null */ - this.CustomRenderPath = (options.CustomRenderPath !== undefined) ? options.CustomRenderPath : null; + this.CustomRenderPath = options.CustomRenderPath !== undefined ? options.CustomRenderPath : null; /** * @member Zondy.Object.DynShowStyle.prototype.DirectionLineClr @@ -88,7 +74,7 @@ var DynShowStyle = function (option) { * @description 显示的线方向线符号(只适用于其颜色) * @default 0 */ - this.DirectionLineClr = (options.DirectionLineClr !== undefined) ? options.DirectionLineClr : 0; + this.DirectionLineClr = options.DirectionLineClr !== undefined ? options.DirectionLineClr : 0; /** * @member Zondy.Object.DynShowStyle.prototype.DynNoteFlag @@ -96,7 +82,7 @@ var DynShowStyle = function (option) { * @description 是否动态注记 * @default false */ - this.DynNoteFlag = (options.DynNoteFlag !== undefined) ? options.DynNoteFlag : false; + this.DynNoteFlag = options.DynNoteFlag !== undefined ? options.DynNoteFlag : false; /** * @member Zondy.Object.DynShowStyle.prototype.DynNoteInfo @@ -104,7 +90,7 @@ var DynShowStyle = function (option) { * @description 动态注记参数 * @default null */ - this.DynNoteInfo = (options.DynNoteInfo !== undefined) ? options.DynNoteInfo : null; + this.DynNoteInfo = options.DynNoteInfo !== undefined ? options.DynNoteInfo : null; /** * @member Zondy.Object.DynShowStyle.prototype.IsShowArc @@ -113,7 +99,7 @@ var DynShowStyle = function (option) { * 取值范围: 1(Zondy.Enum.ISShowArc.Reg),2(Zondy.Enum.ISShowArc.Arc),3(Zondy.Enum.ISShowArc.All) * @default 0 */ - this.IsShowArc = (options.IsShowArc !== undefined) ? options.IsShowArc : 0; + this.IsShowArc = options.IsShowArc !== undefined ? options.IsShowArc : 0; /** * @member Zondy.Object.DynShowStyle.prototype.ISShowLineDirection @@ -121,7 +107,7 @@ var DynShowStyle = function (option) { * @description 是否显示线方向 * @default false */ - this.ISShowLineDirection = (options.ISShowLineDirection !== undefined) ? options.ISShowLineDirection : false; + this.ISShowLineDirection = options.ISShowLineDirection !== undefined ? options.ISShowLineDirection : false; /** * @member Zondy.Object.DynShowStyle.prototype.LineInfo @@ -129,7 +115,7 @@ var DynShowStyle = function (option) { * @description 显示的弧段样式(只适用于其颜色) * @default null */ - this.LineInfo = (options.LineInfo !== undefined) ? options.LineInfo : null; + this.LineInfo = options.LineInfo !== undefined ? options.LineInfo : null; /** * @member Zondy.Object.DynShowStyle.prototype.MaxScale @@ -137,7 +123,7 @@ var DynShowStyle = function (option) { * @description 最大显示比率 * @default 0.00 */ - this.MaxScale = (options.MaxScale !== undefined) ? options.MaxScale : 0.00; + this.MaxScale = options.MaxScale !== undefined ? options.MaxScale : 0.0; /** * @member Zondy.Object.DynShowStyle.prototype.MinScale @@ -145,7 +131,7 @@ var DynShowStyle = function (option) { * @description 最小显示比率 * @default 0.00 */ - this.MinScale = (options.MinScale !== undefined) ? options.MinScale : 0.00; + this.MinScale = options.MinScale !== undefined ? options.MinScale : 0.0; /** * @member Zondy.Object.DynShowStyle.prototype.ShowCoordPnt @@ -153,7 +139,7 @@ var DynShowStyle = function (option) { * @description 显示坐标点 * @default false */ - this.ShowCoordPnt = (options.ShowCoordPnt !== undefined) ? options.ShowCoordPnt : false; + this.ShowCoordPnt = options.ShowCoordPnt !== undefined ? options.ShowCoordPnt : false; /** * @member Zondy.Object.DynShowStyle.prototype.SpareLineInfo @@ -161,7 +147,7 @@ var DynShowStyle = function (option) { * @description 错误处理线符号 * @default null */ - this.SpareLineInfo = (options.SpareLineInfo !== undefined) ? options.SpareLineInfo : null; + this.SpareLineInfo = options.SpareLineInfo !== undefined ? options.SpareLineInfo : null; /** * @member Zondy.Object.DynShowStyle.prototype.SparePointInfo @@ -169,7 +155,7 @@ var DynShowStyle = function (option) { * @description 错误处理点符号 * @default null */ - this.SparePointInfo = (options.SparePointInfo !== undefined) ? options.SparePointInfo : null; + this.SparePointInfo = options.SparePointInfo !== undefined ? options.SparePointInfo : null; /** * @member Zondy.Object.DynShowStyle.prototype.SpareRegInfo @@ -177,7 +163,7 @@ var DynShowStyle = function (option) { * @description 错误处理区符号 * @default null */ - this.SpareRegInfo = (options.SpareRegInfo !== undefined) ? options.SpareRegInfo : null; + this.SpareRegInfo = options.SpareRegInfo !== undefined ? options.SpareRegInfo : null; /** * @member Zondy.Object.DynShowStyle.prototype.SymbleScale @@ -185,9 +171,7 @@ var DynShowStyle = function (option) { * @description 符号显示比例 * @default 0.00 */ - this.SymbleScale = (options.SymbleScale !== undefined) ? options.SymbleScale : 0.00; + this.SymbleScale = options.SymbleScale !== undefined ? options.SymbleScale : 0.0; }; -export { - DynShowStyle -}; -Zondy.Object.DynShowStyle = DynShowStyle; \ No newline at end of file +export { DynShowStyle }; +Zondy.Object.DynShowStyle = DynShowStyle;