File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1154,7 +1154,9 @@ export class WebMap extends ol.Observable {
1154
1154
let isMapService = info ? ! info . isMvt : layer . layerType === 'HOSTED_TILE' ,
1155
1155
isAdded = false ;
1156
1156
dataItemServices . forEach ( function ( service ) {
1157
- if ( isAdded ) return ;
1157
+ if ( isAdded ) {
1158
+ return ;
1159
+ }
1158
1160
//有服务了,就不需要循环
1159
1161
if ( service && isMapService && service . serviceType === 'RESTMAP' ) {
1160
1162
isAdded = true ;
@@ -1621,7 +1623,7 @@ export class WebMap extends ol.Observable {
1621
1623
featureClass : ol . Feature
1622
1624
} ) ;
1623
1625
//要加上这一句,否则坐标,默认都是3857
1624
- ol . format . MVT . prototype . readProjection = function ( source ) {
1626
+ ol . format . MVT . prototype . readProjection = function ( ) {
1625
1627
return new ol . proj . Projection ( {
1626
1628
code : '' ,
1627
1629
units : ol . proj . Units . TILE_PIXELS
You can’t perform that action at this time.
0 commit comments