private boolean sourceIsFromMapbox ( Source singleSource ) { if ( singleSource instanceof VectorSource ) { String url = ( ( VectorSource ) singleSource ) . getUrl ( ) ; if ( url != null ) { for ( String supportedSource : SUPPORTED_SOURCES ) { if ( url . contains ( supportedSource ) ) { return true ; } } } } return false ; }
Checks whether the map s source is a source provided by Mapbox rather than a custom source .