File tree Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -303,29 +303,7 @@ export class MapFeature extends HTMLElement {
303
303
}
304
304
return { zoom : nativeZoom , cs : nativeCS } ;
305
305
} else {
306
- // feature attaches to layer- or layer-'s shadow
307
- if ( content . nodeType === Node . DOCUMENT_NODE ) {
308
- // for features migrated from mapml, read native zoom and cs from the remote mapml
309
- return M . getNativeVariables ( content ) ;
310
- } else if ( content . nodeName . toUpperCase ( ) === 'LAYER-' ) {
311
- // for inline features, read native zoom and cs from inline map-meta
312
- let zoomMeta = this . _parentEl . querySelectorAll ( 'map-meta[name=zoom]' ) ,
313
- zoomLength = zoomMeta ?. length ;
314
- nativeZoom = zoomLength
315
- ? + zoomMeta [ zoomLength - 1 ]
316
- . getAttribute ( 'content' )
317
- ?. split ( ',' )
318
- . find ( ( str ) => str . includes ( 'value' ) )
319
- ?. split ( '=' ) [ 1 ]
320
- : 0 ;
321
-
322
- let csMeta = this . _parentEl . querySelectorAll ( 'map-meta[name=cs]' ) ,
323
- csLength = csMeta ?. length ;
324
- nativeCS = csLength
325
- ? csMeta [ csLength - 1 ] . getAttribute ( 'content' )
326
- : 'gcrs' ;
327
- return { zoom : nativeZoom , cs : nativeCS } ;
328
- }
306
+ return M . getNativeVariables ( content ) ;
329
307
}
330
308
}
331
309
You can’t perform that action at this time.
0 commit comments