As we have embedded the bing maps for the ImagineCup application (winners page) there is a cookie compliance issue with SRCHHPGUSR cookie and to resolve the same, we have tried replacing the bing.com with sdk.virtualearth.net, but facing the console errors in the browser as below, due to this the functionality is getting impact as while switching the years, the required images were not rendering properly. This is intermittently happening in chrome browser, but consistently on the edge browser. Please suggest or provide inputs to resolve this issue.
Console Error:
Uncaught TypeError: t.getVisible is not a function
at n.\_removeElementsForLayer (nQgMOPZdJeR1m7Y1cRrRoyX1KEQ.br.js:1:62541)
at n.\_onLayerUpdated (nQgMOPZdJeR1m7Y1cRrRoyX1KEQ.br.js:1:62955)
at Array.<anonymous> (nQgMOPZdJeR1m7Y1cRrRoyX1KEQ.br.js:1:60579)
at n.invoke (lJyJE6Cy1JHYRCL97R2dw9U8L3Y.br.js:1:51893)
at e (lJyJE6Cy1JHYRCL97R2dw9U8L3Y.br.js:1:90481)
at t.y [as setVisible] (lJyJE6Cy1JHYRCL97R2dw9U8L3Y.br.js:1:90582)
at HeroMap.showLayers (HeroBingMap.js?v=638219470900000000:573:35)
at window.YearSlider.FocusSelectedYearCallback (winners:910:36)
at YearSlider.YearSlider.focusSelectedYear (YearSlider.js?v=638219470900000000:71:20)
at HTMLAnchorElement.<anonymous> (YearSlider.js?v=638219470900000000:43:28)