We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fd1e24 commit 0d1e215Copy full SHA for 0d1e215
src/openlayers/mapping/WebMap.js
@@ -157,6 +157,13 @@ export class WebMap extends ol.Observable {
157
that.errorCallback && that.errorCallback(mapInfo.error, 'getMapFaild', that.map);
158
return;
159
}
160
+ if(mapInfo.projection === 'EPSG:910111' || mapInfo.projection === 'EPSG:910112'){
161
+ // 早期数据存在的自定义坐标系 "EPSG:910111": "GCJ02MERCATOR", "EPSG:910112": "BDMERCATOR"
162
+ mapInfo.projection = "EPSG:3857";
163
+ }else if(mapInfo.projection === 'EPSG:910101' || mapInfo.projection === 'EPSG:910102'){
164
+ // 早期数据存在的自定义坐标系 "EPSG:910101": "GCJ02", "EPSG:910102": "BD",
165
+ mapInfo.projection = "EPSG:4326";
166
+ }
167
that.baseProjection = mapInfo.projection;
168
that.mapParams = {
169
title: mapInfo.title,
0 commit comments