Skip to content

Commit 35dbf0a

Browse files
committed
[bug] OGC WKT 解析出单位是 degree
1 parent 50a5397 commit 35dbf0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/openlayers/mapping/TileSuperMapRest.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ export class TileSuperMapRest extends ol.source.TileImage {
229229
var resolution = me.tileGrid.getResolution(z);
230230
var dpi = 96;
231231
var unit = projection.getUnits() || Unit.DEGREE;
232-
if (unit === 'degrees') {
232+
// OGC WKT 解析出单位是 degree
233+
if (unit === 'degrees' || unit === 'degree') {
233234
unit = Unit.DEGREE;
234235
}
235236
//通过wkt方式自定义坐标系的时候,是meter

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy