Avoid startsWith for browser compatibility
This commit is contained in:
@@ -380,7 +380,7 @@ class MapboxVectorLayer extends VectorTileLayer {
|
|||||||
|
|
||||||
const source = this.getSource();
|
const source = this.getSource();
|
||||||
if (
|
if (
|
||||||
styleSource.url.startsWith('mapbox://') ||
|
styleSource.url.indexOf('mapbox://') === 0 ||
|
||||||
styleSource.url.indexOf('{z}') !== -1
|
styleSource.url.indexOf('{z}') !== -1
|
||||||
) {
|
) {
|
||||||
// Tile source url, handle it directly
|
// Tile source url, handle it directly
|
||||||
|
|||||||
Reference in New Issue
Block a user