laptop and a wrench

漏洞

ArcGIS API for JavaScript 2.3 cannot overlay the Web Mapping Service (WMS) and cached Map Service.

上次发布: December 8, 2014 ArcGIS API for JavaScript
漏洞 ID 编号 NIM070310
已提交July 8, 2011
上次修改时间June 5, 2024
适用范围ArcGIS API for JavaScript
找到的版本2.3
编程语言JavaScript
操作系统Windows OS
操作系统版本XP
状态Non-Reproducible

附加信息

Cannot reproduce using 3.11

解决办法

1) The map displays in ArciGIS for API for JavaScript 2.3 if it comments out the WMS layer map.addLayers([wmsLayer]);2) wmsLayer.getImageUrl = function (_c, _d, _e, _f) { if (!this.visibleLayers || this.visibleLayers.length === 0) { _f(this._blankImageURL); return; } var _12 = _c.xmin; var _13 = _c.xmax; var _14 = _c.ymin; var _15 = _c.ymax; var _16 = {}; _16.SERVICE = "WMS"; _16.REQUEST = "GetMap"; _16.FORMAT = this.imageFormat; _16.TRANSPARENT = this.imageTransparency ? "TRUE" : "FALSE"; _16.STYLES = ""; _16.VERSION = this.version; _16.LAYERS = this.visibleLayers ? this.visibleLayers.toString() : null; _16.WIDTH = _d; _16.HEIGHT = _e; if (this.maxWidth < _d) { _16.WIDTH = this.maxWidth; } if (this.maxHeight < _e) { _16.HEIGHT = this.maxHeight; } var _17 = _c.spatialReference ? _c.spatialReference.wkid : NaN; if (!isNaN(_17)) { if (this.version == "1.3.0") { _16.CRS = "EPSG:" + _17; } else { _16.SRS = "EPSG:" + _17; } } if (this.version == "1.3.0" && this._useLatLong(_17)) { _16.BBOX = _14 + "," + _12 + "," + _15 + "," + _13; } else { _16.BBOX = _12 + "," + _14 + "," + _13 + "," + _15; } var _18 = this.getMapURL; _18 += (_18.indexOf("?") == -1) ? "?" : ""; for (var key in _16) { _18 += (_18.substring(_18.length - 1, _18.length) == "?") ? "" : "&"; _18 += key + "=" + _16[key]; } _f(_18); }; map.addLayers([wmsLayer]);Please open the ‘layers_Workaround_23.html’ page in he web browser. It implements the workaround. It displays the map inspite of using ArcGIS API for JavaScript 2.3

重现步骤

漏洞 ID: NIM070310

软件:

  • ArcGIS API for JavaScript

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项