Skip to content

Commit 8019a90

Browse files
committed
【SDK】【打包优化】
1 parent 93e74cc commit 8019a90

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/mapboxgl/layer/TDTLayer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ var TDTLayer = function (option) {
9999

100100
};
101101

102-
TDTLayer.prototype.initialize = function (options) {
103-
options = options || {};
102+
TDTLayer.prototype.initialize = function () {
104103
if (this.options.baseURL) {
105104
var str = this.options.baseURL.split("gov.cn/")[1];
106105
if (this.options.baseURL.indexOf("?") > 0) {

src/mapboxgl/util/Util.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export var Util = (Zondy.Util = Zondy.Util || {})
1313
* @param source - {Object} 源对象,其属性将被设置到目标对象上。
1414
* @return {Object} 目标对象。
1515
*/
16-
export var extend = function(destination, source) {
17-
destination = destination || {}
16+
export var extend = function(dest, source) {
17+
var destination = dest || {}
1818
if (source) {
1919
for (var property in source) {
2020
var value = source[property]
@@ -89,7 +89,8 @@ export var appendUrl = function(url, paramStr) {
8989
* @param sources -{Array} 源对象数据,每个对象都会给目的对象设置对应的属性值
9090
* @private
9191
*/
92-
export var extendFromArray = function(dest, sources) {
92+
export var extendFromArray = function(des, sources) {
93+
var dest = des;
9394
for (const src of sources) {
9495
for (const k in src) {
9596
dest[k] = src[k]
@@ -226,7 +227,8 @@ export function splitWords(str) {
226227

227228
// @function setOptions(obj: Object, options: Object): Object
228229
// Merges the given properties to the `options` of the `obj` object, returning the resulting options. See `Class options`. Has an `L.setOptions` shortcut.
229-
export function setOptions(obj, options) {
230+
export function setOptions(o, options) {
231+
var obj = o;
230232
if (!obj.hasOwnProperty('options')) {
231233
obj.options = obj.options ? create(obj.options) : {}
232234
}

src/service/3DPlot/Primitive/BasePlotPrimitive.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class BasePlotPrimitive {
4848
* @private
4949
*/
5050
_elemPropsUpdateHandler(event) {
51-
console.log("event.type",event.type)
5251
if (event.type === 'positions') {
5352
let { _positionBillboards, _shapeBillboards } = this;
5453
const positions = event.value;

src/service/base/style/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// 枚举
2-
import { Align, Anchor, LineCap, LineJoin, TextPlacement } from './Enum';
2+
import { Align, Anchor, Cap, Join, TextPlacement } from './Enum';
33

44
// 原子级样式
55
import { Symbol } from './Symbol';
@@ -17,6 +17,6 @@ import { ExtrudeStyle } from './ExtrudeStyle';
1717
import { TextStyle } from './TextStyle';
1818
import { FontStyle } from './FontStyle';
1919

20-
export { Align, Anchor, LineCap, LineJoin, TextPlacement };
20+
export { Align, Anchor, Cap, Join, TextPlacement };
2121
export { Symbol, Shadow };
2222
export { VectorStyle, PointStyle, MarkerStyle, ModelStyle, LineStyle, FillStyle, ExtrudeStyle, TextStyle, FontStyle, TrackStyle };

0 commit comments

Comments
 (0)