File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
src/components/EnhancedMap/SourcedTileLayer Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import PropTypes from "prop-types";
33import { useEffect , useState } from "react" ;
44import { FormattedMessage , injectIntl } from "react-intl" ;
55import { 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" ;
77import AppErrors from "../../../services/Error/AppErrors" ;
88import {
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 (
You can’t perform that action at this time.
0 commit comments