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 {
11541154 let isMapService = info ? ! info . isMvt : layer . layerType === 'HOSTED_TILE' ,
11551155 isAdded = false ;
11561156 dataItemServices . forEach ( function ( service ) {
1157- if ( isAdded ) return ;
1157+ if ( isAdded ) {
1158+ return ;
1159+ }
11581160 //有服务了,就不需要循环
11591161 if ( service && isMapService && service . serviceType === 'RESTMAP' ) {
11601162 isAdded = true ;
@@ -1621,7 +1623,7 @@ export class WebMap extends ol.Observable {
16211623 featureClass : ol . Feature
16221624 } ) ;
16231625 //要加上这一句,否则坐标,默认都是3857
1624- ol . format . MVT . prototype . readProjection = function ( source ) {
1626+ ol . format . MVT . prototype . readProjection = function ( ) {
16251627 return new ol . proj . Projection ( {
16261628 code : '' ,
16271629 units : ol . proj . Units . TILE_PIXELS
You can’t perform that action at this time.
0 commit comments