Skip to content

Commit 047d6df

Browse files
author
luoxiao
committed
增加mapboxgl的微件vue例子,arraystastic,colorspickutil挂载到supermap,删除旧的webmpa-vue例子
1 parent 520b9c2 commit 047d6df

30 files changed

+672
-112
lines changed

dist/mapboxgl/iclient9-mapboxgl-es6.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38534,6 +38534,7 @@ class Color_Color {
3853438534
// CONCATENATED MODULE: ./src/common/util/ColorsPickerUtil.js
3853538535

3853638536

38537+
3853738538
var ColorsPickerUtil_ColorRender = new Color_Color();
3853838539
// let "http://www.qzu.zj.cn": "#bd10e0"
3853938540
// "www.qzct.net": "#7ed321" = new SuperMap.LevelRenderer.Tool.Color();
@@ -38697,8 +38698,11 @@ class ColorsPickerUtil_ColorsPickerUtil {
3869738698
return ret;
3869838699
}
3869938700
}
38701+
SuperMap.ColorsPickerUtil = ColorsPickerUtil_ColorsPickerUtil;
38702+
3870038703
// CONCATENATED MODULE: ./src/common/util/ArrayStatistic.js
38701-
class ArrayStatistic {
38704+
38705+
class ArrayStatistic_ArrayStatistic {
3870238706

3870338707
// geostatsInstance: null,
3870438708

@@ -38895,6 +38899,7 @@ class ArrayStatistic {
3889538899
}
3889638900

3889738901
}
38902+
SuperMap.ArrayStatistic = ArrayStatistic_ArrayStatistic;
3889838903
// CONCATENATED MODULE: ./src/common/util/index.js
3889938904
/* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
3890038905
* This program are made available under the terms of the Apache License, Version 2.0
@@ -76921,8 +76926,8 @@ class WebMap_WebMap extends external_mapboxgl_default.a.Evented {
7692176926
features.forEach(item => {
7692276927
weight.push(item.weight);
7692376928
})
76924-
let max = ArrayStatistic.getMax(weight);
76925-
let min = ArrayStatistic.getMin(weight);
76929+
let max = ArrayStatistic_ArrayStatistic.getMax(weight);
76930+
let min = ArrayStatistic_ArrayStatistic.getMin(weight);
7692676931
paint["heatmap-weight"] = ["interpolate", ["linear"], ["get", 'weight'], min, 0, max, 1];
7692776932
}
7692876933

@@ -76974,7 +76979,7 @@ class WebMap_WebMap extends external_mapboxgl_default.a.Evented {
7697476979
attributes = feature.properties;
7697576980
attributes && parseFloat(attributes[field]) && values.push(parseFloat(attributes[field]));
7697676981
});
76977-
this.fieldMaxValue[field] = ArrayStatistic.getArrayStatistic(values, 'Maximum');
76982+
this.fieldMaxValue[field] = ArrayStatistic_ArrayStatistic.getArrayStatistic(values, 'Maximum');
7697876983
}
7697976984

7698076985
/**
@@ -77098,7 +77103,7 @@ class WebMap_WebMap extends external_mapboxgl_default.a.Evented {
7709877103
}
7709977104
}, this);
7710077105

77101-
let segements = ArrayStatistic.getArraySegments(values, themeSetting.segmentMethod, segmentCount);
77106+
let segements = ArrayStatistic_ArrayStatistic.getArraySegments(values, themeSetting.segmentMethod, segmentCount);
7710277107
if (segements) {
7710377108
let itemNum = segmentCount;
7710477109
if (attributes && segements[0] === segements[attributes.length - 1]) {
@@ -77698,7 +77703,7 @@ external_mapboxgl_default.a.supermap.WebMap = WebMap_WebMap;
7769877703
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "ElasticSearch", function() { return ElasticSearch_ElasticSearch; });
7769977704
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "FetchRequest", function() { return FetchRequest_FetchRequest; });
7770077705
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "ColorsPickerUtil", function() { return ColorsPickerUtil_ColorsPickerUtil; });
77701-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "ArrayStatistic", function() { return ArrayStatistic; });
77706+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "ArrayStatistic", function() { return ArrayStatistic_ArrayStatistic; });
7770277707
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "AreaSolarRadiationParameters", function() { return AreaSolarRadiationParameters_AreaSolarRadiationParameters; });
7770377708
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "AggregationParameter", function() { return AggregationParameter_AggregationParameter; });
7770477709
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "AggQueryBuilderParameter", function() { return AggQueryBuilderParameter_AggQueryBuilderParameter; });

dist/mapboxgl/iclient9-mapboxgl-es6.min.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mapboxgl/iclient9-mapboxgl-widgets-vue.css

Lines changed: 200 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mapboxgl/iclient9-mapboxgl-widgets-vue.js

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mapboxgl/iclient9-mapboxgl.js

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79274,9 +79274,12 @@ exports.ThemeStyle = _ThemeStyle.ThemeStyle;
7927479274
Object.defineProperty(exports, "__esModule", {
7927579275
value: true
7927679276
});
79277+
exports.ArrayStatistic = undefined;
7927779278

7927879279
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
7927979280

79281+
var _SuperMap = __webpack_require__(0);
79282+
7928079283
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7928179284

7928279285
var ArrayStatistic = exports.ArrayStatistic = function () {
@@ -79521,6 +79524,8 @@ var ArrayStatistic = exports.ArrayStatistic = function () {
7952179524
return ArrayStatistic;
7952279525
}();
7952379526

79527+
_SuperMap.SuperMap.ArrayStatistic = ArrayStatistic;
79528+
7952479529
/***/ }),
7952579530
/* 343 */
7952679531
/***/ (function(module, exports, __webpack_require__) {
@@ -79537,6 +79542,8 @@ var _createClass = function () { function defineProperties(target, props) { for
7953779542

7953879543
var _Color = __webpack_require__(65);
7953979544

79545+
var _SuperMap = __webpack_require__(0);
79546+
7954079547
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7954179548

7954279549
var ColorRender = new _Color.Color();
@@ -79555,7 +79562,7 @@ var ColorsPickerUtil = exports.ColorsPickerUtil = function () {
7955579562
}
7955679563

7955779564
_createClass(ColorsPickerUtil, null, [{
79558-
key: "createCanvas",
79565+
key: 'createCanvas',
7955979566

7956079567
/**
7956179568
* 创建DOM canvas
@@ -79585,7 +79592,7 @@ var ColorsPickerUtil = exports.ColorsPickerUtil = function () {
7958579592
*/
7958679593

7958779594
}, {
79588-
key: "getLinearGradient",
79595+
key: 'getLinearGradient',
7958979596
value: function getLinearGradient(x0, y0, x1, y1, colorList) {
7959079597
if (!this._ctx) {
7959179598
this._ctx = this.getContext();
@@ -79610,7 +79617,7 @@ var ColorsPickerUtil = exports.ColorsPickerUtil = function () {
7961079617
*/
7961179618

7961279619
}, {
79613-
key: "getContext",
79620+
key: 'getContext',
7961479621
value: function getContext() {
7961579622
if (!this._ctx) {
7961679623
this._ctx = document.createElement('canvas').getContext('2d');
@@ -79632,7 +79639,7 @@ var ColorsPickerUtil = exports.ColorsPickerUtil = function () {
7963279639
*/
7963379640

7963479641
}, {
79635-
key: "getStepColors",
79642+
key: 'getStepColors',
7963679643
value: function getStepColors(start, end, step) {
7963779644
start = ColorRender.toRGBA(start);
7963879645
end = ColorRender.toRGBA(end);
@@ -79675,7 +79682,7 @@ var ColorsPickerUtil = exports.ColorsPickerUtil = function () {
7967579682
*/
7967679683

7967779684
}, {
79678-
key: "getGradientColors",
79685+
key: 'getGradientColors',
7967979686
value: function getGradientColors(colors, total, themeType) {
7968079687
var ret = [],
7968179688
step;
@@ -79724,6 +79731,8 @@ var ColorsPickerUtil = exports.ColorsPickerUtil = function () {
7972479731
return ColorsPickerUtil;
7972579732
}();
7972679733

79734+
_SuperMap.SuperMap.ColorsPickerUtil = ColorsPickerUtil;
79735+
7972779736
/***/ }),
7972879737
/* 344 */
7972979738
/***/ (function(module, exports, __webpack_require__) {

dist/mapboxgl/iclient9-mapboxgl.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mapboxgl/include-mapboxgl.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@
128128
if (inArray(includes, 'shapefile')) {
129129
inputScript("https://unpkg.com/shapefile@0.6.6/dist/shapefile.js");
130130
}
131+
132+
if (inArray(includes, 'iclient9-mapboxgl-widgets-vue')) {
133+
inputCSS("../../dist/mapboxgl/iclient9-mapboxgl-widgets-vue.css");
134+
inputScript("../../dist/mapboxgl/iclient9-mapboxgl-widgets-vue.js");
135+
}
136+
131137
}
132138

133139
load();

examples/locales/en-US/resources.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,14 @@ window.examplesResources = {
522522
"title_ChinaEarthquakeHeat": 'China Earthquake',
523523
"title_ChinaEarthquakeHeatWGS84": 'China Earthquake WGS84',
524524
"title_ChinaEarthquakeHeatClient": 'China Earthquake(Classic) WGS84',
525-
"title_webMap_Vue": 'WebMap(Vue)',
525+
"title_widgetsChart_Vue": 'Chart Widget(Vue)',
526+
"title_widgetsLayerList_Vue": 'LayerList Widget(Vue)',
527+
"title_widgetsMap_Vue": 'Map Widget(Vue)',
528+
"title_widgetsMiniMap_Vue": 'MiniMap Widget(Vue)',
529+
"title_widgetsPan_Vue": 'Pan Widget(Vue)',
530+
"title_widgetsScale_Vue": 'Scale Widget(Vue)',
531+
"title_widgetsWebmap_Vue": 'WebMap Widget(Vue)',
532+
"title_widgetsZoom_Vue": 'Zoom Widget(Vue)',
526533

527534
"text_code": "Forward Match",
528535
"text_decode": "Reverse Match",

examples/locales/zh-CN/resources.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,14 @@ window.examplesResources = {
470470
"title_ChinaEarthquakeHeat": '中国地震数据',
471471
"title_ChinaEarthquakeHeatWGS84": '中国地震数据_WGS84',
472472
"title_ChinaEarthquakeHeatClient": '中国地震数据(Classic)_WGS84',
473-
"title_webMap_Vue": 'WebMap(Vue)',
473+
"title_widgetsChart_Vue": '图表微件(Vue)',
474+
"title_widgetsLayerList_Vue": '图层列表微件(Vue)',
475+
"title_widgetsMap_Vue": '地图微件(Vue)',
476+
"title_widgetsMiniMap_Vue": '鹰眼微件(Vue)',
477+
"title_widgetsPan_Vue": '平移微件(Vue)',
478+
"title_widgetsScale_Vue": '比例尺微件(Vue)',
479+
"title_widgetsWebmap_Vue": 'webmap微件(Vue)',
480+
"title_widgetsZoom_Vue": '缩放微件(Vue)',
474481

475482
"text_code": "正向匹配",
476483
"text_decode": "反向匹配",

examples/mapboxgl/config.js

Lines changed: 57 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,19 +1060,65 @@ var exampleConfig = {
10601060
version: "10.X.X",
10611061
thumbnail: "widgets_chart_iptl.png",
10621062
fileName: "widgets_chart_iptl"
1063-
}
1063+
}
10641064
]
10651065
},
10661066
"widgetsAdvanced": {
1067-
name: "扩展",
1068-
name_en: "Advanced",
1069-
content: [{
1070-
name: "WebMap(Vue)",
1071-
name_en: "WebMap(Vue)",
1072-
version: "10.X.X",
1073-
thumbnail: "iPortalWebmap_unique.png",
1074-
fileName: "iportalWebMap_vue"
1075-
}]
1067+
name: "Vue",
1068+
name_en: "Vue",
1069+
content: [
1070+
{
1071+
name: "地图微件(Vue)",
1072+
name_en: "map_widget_vue",
1073+
version: "10.X.X",
1074+
thumbnail: "widgets_map_vue.png",
1075+
fileName: "widgets_map_vue"
1076+
} ,{
1077+
name: "webmap微件(Vue)",
1078+
name_en: "webmap_widget_vue",
1079+
version: "10.X.X",
1080+
thumbnail: "widgets_webmap_vue.png",
1081+
fileName: "widgets_webmap_vue"
1082+
} ,
1083+
// {
1084+
// name: "图表微件(Vue)",
1085+
// name_en: "chart_widget_vue",
1086+
// version: "10.X.X",
1087+
// thumbnail: "widgets_chart_vue.png",
1088+
// fileName: "widgets_chart_vue"
1089+
// } ,
1090+
{
1091+
name: "图层列表微件(Vue)",
1092+
name_en: "layerList_widget_vue",
1093+
version: "10.X.X",
1094+
thumbnail: "widgets_layerList_vue.png",
1095+
fileName: "widgets_layerList_vue"
1096+
} ,{
1097+
name: "鹰眼微件(Vue)",
1098+
name_en: "minimap_widget_vue",
1099+
version: "10.X.X",
1100+
thumbnail: "widgets_minimap_vue.png",
1101+
fileName: "widgets_minimap_vue"
1102+
} ,{
1103+
name: "平移微件(Vue)",
1104+
name_en: "pan_widget_vue",
1105+
version: "10.X.X",
1106+
thumbnail: "widgets_pan_vue.png",
1107+
fileName: "widgets_pan_vue"
1108+
} ,{
1109+
name: "比例尺微件(Vue)",
1110+
name_en: "scale_widget_vue",
1111+
version: "10.X.X",
1112+
thumbnail: "widgets_scale_vue.png",
1113+
fileName: "widgets_scale_vue"
1114+
} ,{
1115+
name: "缩放微件(Vue)",
1116+
name_en: "zoom_widget_vue",
1117+
version: "10.X.X",
1118+
thumbnail: "widgets_zoom_vue.png",
1119+
fileName: "widgets_zoom_vue"
1120+
}
1121+
]
10761122
}
10771123
}
10781124
},
@@ -1121,6 +1167,6 @@ var exampleIconConfig = {
11211167
"viz": "fa-map",
11221168
"GTC": "fa-globe",
11231169
"widgets": "fa-window-restore",
1124-
'multiCoordSys': "fa-globe",
1170+
'multiCoordSys': "fa-globe"
11251171
};
11261172
window.mapboxglExampleConfig = exampleConfig;

0 commit comments

Comments
 (0)