Skip to content

Commit 5fee678

Browse files
committed
Revert "Temporarily disable Bing imagery integration for debugging purposes (#2692)"
This reverts commit 986b3d1.
1 parent f382f40 commit 5fee678

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/components/EnhancedMap/SourcedTileLayer/SourcedTileLayer.jsx

Lines changed: 9 additions & 11 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,16 +60,14 @@ 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-
// );
71-
console.error("Bing imagery is currently disabled to help debug a service issue");
72-
return null;
63+
return (
64+
<BingLayer
65+
key={normalizedLayer.id}
66+
{...normalizedLayer}
67+
type="Aerial"
68+
attribution={attribution(normalizedLayer)}
69+
/>
70+
);
7371
}
7472

7573
return (

0 commit comments

Comments
 (0)