|
9599 | 9599 | * Class: MapService |
9600 | 9600 | * 地图信息服务类 |
9601 | 9601 | * 用法: |
9602 | | - * L.superMap.mapService(url) |
9603 | | - * .getMapStatus(function(result){ |
| 9602 | + * L.supermap.mapService(url) |
| 9603 | + * .getMapInfo(function(result){ |
9604 | 9604 | * //doSomething |
9605 | 9605 | * }) |
9606 | 9606 | */ |
|
9754 | 9754 |
|
9755 | 9755 | _postSimulatie: function (type, url, params, options) { |
9756 | 9756 | var separator = url.indexOf("?") > -1 ? "&" : "?"; |
9757 | | - url += separator + '_method= ' + type + this._appendUrlTokenParameter(url); |
| 9757 | + url += separator + '_method= ' + type; |
9758 | 9758 | return this.post(url, params, options); |
9759 | 9759 | }, |
9760 | 9760 |
|
|
9831 | 9831 | return paramsArray.join("&"); |
9832 | 9832 | } |
9833 | 9833 |
|
9834 | | - } |
| 9834 | + } |
| 9835 | + module.exports = SuperMap.Request; |
9835 | 9836 |
|
9836 | 9837 | /***/ }, |
9837 | 9838 | /* 22 */ |
|
10814 | 10815 | * 地图查询服务类 |
10815 | 10816 | * 提供:范围查询,SQL查询,几何查询,距离查询 |
10816 | 10817 | * 用法: |
10817 | | - * L.superMap.queryService(url) |
10818 | | - * .queryByBounds(param,function(result){ |
| 10818 | + * L.supermap.queryService(url).queryByBounds(param,function(result){ |
10819 | 10819 | * //doSomething |
10820 | 10820 | * }) |
10821 | 10821 | */ |
|
12060 | 12060 | * Class: LayerInfoService |
12061 | 12061 | * 图层信息服务类 |
12062 | 12062 | * 用法: |
12063 | | - * L.superMap.layerInfoService(url).getLayersInfo(function(result){ |
| 12063 | + * L.supermap.layerInfoService(url).getLayersInfo(function(result){ |
12064 | 12064 | * //doSomething |
12065 | 12065 | * }) |
12066 | 12066 | */ |
|
15163 | 15163 | res.graphText = SuperMap.ThemeGraphText.fromObj(obj); |
15164 | 15164 | res.offset = SuperMap.ThemeOffset.fromObj(obj); |
15165 | 15165 | for (var i = 0; i < len; i++) { |
15166 | | - res.items.push(ThemeGraphItem.fromObj(itemsG[i])); |
| 15166 | + res.items.push(SuperMap.ThemeGraphItem.fromObj(itemsG[i])); |
15167 | 15167 | } |
15168 | 15168 | return res; |
15169 | 15169 | }; |
|
17786 | 17786 | * Class: MeasureService |
17787 | 17787 | * 量算服务服务类 |
17788 | 17788 | * 用法: |
17789 | | - * L.superMap.measureService(url).measureDistance({ |
| 17789 | + * L.supermap.measureService(url).measureDistance({ |
17790 | 17790 | * geometry:xxx |
17791 | 17791 | * },function(result){ |
17792 | 17792 | * //doSomething |
|
18082 | 18082 | * Class:ChartService |
18083 | 18083 | * 海图服务 |
18084 | 18084 | * 用法: |
18085 | | - * L.superMap.chartService(url) |
| 18085 | + * L.supermap.chartService(url) |
18086 | 18086 | * .queryChart(param,function(result){ |
18087 | 18087 | * //doSomething |
18088 | 18088 | * }) |
|
18270 | 18270 | * |
18271 | 18271 | */ |
18272 | 18272 | destroy: function () { |
| 18273 | + var me = this; |
18273 | 18274 | SuperMap.ServiceBase.prototype.destroy.apply(this, arguments); |
18274 | 18275 | me.returnContent = null; |
18275 | 18276 | me.format = null; |
|
18706 | 18707 | CLASS_NAME: "SuperMap.REST.ChartFeatureInfoSpecsService" |
18707 | 18708 | }); |
18708 | 18709 |
|
18709 | | - module.exports = function (url, options) { |
| 18710 | + module.exports = |
| 18711 | + |
| 18712 | + function (url, options) { |
18710 | 18713 | return new SuperMap.REST.ChartFeatureInfoSpecsService(url, options); |
18711 | 18714 | }; |
18712 | 18715 |
|
|
18720 | 18723 | * 数据集类。 |
18721 | 18724 | * 提供:ID查询,范围查询,SQL查询,几何查询,bounds查询,缓冲区查询,地物编辑 |
18722 | 18725 | * 用法: |
18723 | | - * L.superMap.featureService(url) |
| 18726 | + * L.supermap.featureService(url) |
18724 | 18727 | * .getFeaturesByIDs(param,function(result){ |
18725 | 18728 | * //doSomething |
18726 | 18729 | * }) |
|
20447 | 20450 | * Class: FieldService |
20448 | 20451 | * 字段服务类 |
20449 | 20452 | * 用法: |
20450 | | - * L.superMap.fieldService(url) |
20451 | | - * .on("complete",function(result){ |
20452 | | - * //doSomething |
20453 | | - * }).on("failed",function(result){ |
| 20453 | + * L.supermap.fieldService(url).getFields(function(result){ |
20454 | 20454 | * //doSomething |
20455 | 20455 | * }); |
20456 | 20456 | */ |
|
20815 | 20815 | * Class: GridCellInfosService |
20816 | 20816 | * 数据栅格查询服务 |
20817 | 20817 | * 用法: |
20818 | | - * L.superMap.gridCellInfosService(url) |
| 20818 | + * L.supermap.gridCellInfosService(url) |
20819 | 20819 | * .getGridCellInfos(param,function(result){ |
20820 | 20820 | * //doSomething |
20821 | 20821 | * }) |
|
21118 | 21118 | * Class: ThemeService |
21119 | 21119 | * 地图信息服务类 |
21120 | 21120 | * 用法: |
21121 | | - * L.superMap.themeService(url,{ |
| 21121 | + * L.supermap.themeService(url,{ |
21122 | 21122 | * projection:projection |
21123 | | - * }).on("complete",function(result){ |
21124 | | - * //doSomething |
21125 | | - * }).on("failed",function(result){ |
| 21123 | + * }).getThemeInfo(params,function(result){ |
21126 | 21124 | * //doSomething |
21127 | 21125 | * }); |
21128 | 21126 | */ |
|
21889 | 21887 | * Class: NetworkAnalystService |
21890 | 21888 | * 网络分析服务类 |
21891 | 21889 | * 用法: |
21892 | | - * L.superMap |
21893 | | - * .networkAnalystService(url) |
| 21890 | + * L.supermap.networkAnalystService(url) |
21894 | 21891 | * .findPath(params,function(result){ |
21895 | 21892 | * //doSomething |
21896 | 21893 | * }) |
|
24796 | 24793 | * Class: NetworkAnalyst3DService |
24797 | 24794 | * 3D网络分析服务类 |
24798 | 24795 | * 用法: |
24799 | | - * L.superMap |
24800 | | - * .networkAnalyst3DService(url) |
| 24796 | + * L.supermap.networkAnalyst3DService(url) |
24801 | 24797 | * .sinksFacilityAnalyst(params,function(result){ |
24802 | 24798 | * //doSomething |
24803 | 24799 | * }) |
|
25669 | 25665 | * 空间分析服务类。 |
25670 | 25666 | * 提供:地区太阳辐射、缓冲区分析、点密度分析、动态分段分析、空间关系分析、插值分析、栅格代数运算、叠加分析、路由定位、路由测量计算、表面分析、地形曲率计算、泰森多边形分析。 |
25671 | 25667 | * 用法: |
25672 | | - * L.superMap.spatialAnalystService(url) |
| 25668 | + * L.supermap.spatialAnalystService(url) |
25673 | 25669 | * .bufferAnalysis(params,function(result){ |
25674 | 25670 | * //doSomething |
25675 | 25671 | * }) |
|
26105 | 26101 |
|
26106 | 26102 | var parameterObject = new Object(); |
26107 | 26103 |
|
26108 | | - if (parameter instanceof AreaSolarRadiationService) { |
| 26104 | + if (parameter instanceof SuperMap.AreaSolarRadiationParameter) { |
26109 | 26105 | me.url += 'datasets/' + parameter.dataset + '/solarradiation'; |
26110 | 26106 | } |
26111 | 26107 |
|
|
31303 | 31299 | * Class: TrafficTransferAnalystService |
31304 | 31300 | * 交通换乘分析服务类 |
31305 | 31301 | * 用法: |
31306 | | - * L.superMap |
| 31302 | + * L.supermap |
31307 | 31303 | * .trafficTransferAnalystService(url) |
31308 | 31304 | * .queryStop(params,function(result){ |
31309 | 31305 | * //doSomething |
|
32493 | 32489 |
|
32494 | 32490 | me.options.url = url; |
32495 | 32491 | if (url && url.indexOf("/") === (url.length - 1)) { |
32496 | | - url = url.substr(0, str.length - 1); |
| 32492 | + url = url.substr(0, url.length - 1); |
32497 | 32493 | me.options.url = url; |
32498 | 32494 | } |
32499 | 32495 | me._initLayerUrl(); |
|
32736 | 32732 | me.resolutions = me._resolutionsFromScales(me.scales); |
32737 | 32733 | var len = me.resolutions.length; |
32738 | 32734 | me.scales = [len]; |
32739 | | - for (i = 0; i < len; i++) { |
| 32735 | + for (var i = 0; i < len; i++) { |
32740 | 32736 | me.scales[i] = SuperMap.Util.getScaleFromResolutionDpi( |
32741 | 32737 | me.resolutions[i], me.dpi, me.units, me.datumAxis |
32742 | 32738 | ); |
|
34037 | 34033 | return style; |
34038 | 34034 | } |
34039 | 34035 | if (type === "POINT") { |
34040 | | - size = Math.ceil(shader.markerSize * SuperMap.DOTS_PER_INCH * SuperMap.INCHES_PER_UNIT["mm"]) || 8; |
| 34036 | + var size = Math.ceil(shader.markerSize * SuperMap.DOTS_PER_INCH * SuperMap.INCHES_PER_UNIT["mm"]) || 8; |
34041 | 34037 | var symbolParameters = { |
34042 | 34038 | "transparent": true, |
34043 | 34039 | "resourceType": "SYMBOLMARKER", |
|
34050 | 34046 | return style; |
34051 | 34047 | } |
34052 | 34048 | if (type === "TEXT") { |
34053 | | - shader = feature.properties.textStyle || layerStyle; |
| 34049 | + shader = feature.properties.textStyle || layerInfo.layerStyle; |
34054 | 34050 | //设置文本是否使用粗体 |
34055 | 34051 | style.fontWeight = shader.bold ? shader.fontWeight : "normal"; |
34056 | 34052 | //设置文本的尺寸(对应fontHeight属性)和行高,行高iserver不支持,默认5像素 |
|
0 commit comments