Skip to content

Commit 986b3d1

Browse files
authored
Temporarily disable Bing imagery integration for debugging purposes (#2692)
1 parent 4d03561 commit 986b3d1

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

src/components/EnhancedMap/SourcedTileLayer/SourcedTileLayer.jsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PropTypes from "prop-types";
33
import { useEffect, useState } from "react";
44
import { FormattedMessage, injectIntl } from "react-intl";
55
import { TileLayer } from "react-leaflet";
6-
import { BingLayer } from "react-leaflet-bing-v2/src/index.js";
6+
// import { BingLayer } from "react-leaflet-bing-v2/src/index.js";
77
import AppErrors from "../../../services/Error/AppErrors";
88
import {
99
defaultLayerSource,
@@ -60,14 +60,16 @@ const SourcedTileLayer = (props) => {
6060
const normalizedLayer = normalizeLayer(props.source);
6161

6262
if (normalizedLayer.type === "bing") {
63-
return (
64-
<BingLayer
65-
key={normalizedLayer.id}
66-
{...normalizedLayer}
67-
type="Aerial"
68-
attribution={attribution(normalizedLayer)}
69-
/>
70-
);
63+
// return (
64+
// <BingLayer
65+
// key={normalizedLayer.id}
66+
// {...normalizedLayer}
67+
// type="Aerial"
68+
// attribution={attribution(normalizedLayer)}
69+
// />
70+
// );
71+
console.error("Bing imagery is currently disabled to help debug a service issue");
72+
return null;
7173
}
7274

7375
return (

0 commit comments

Comments
 (0)