Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sj_evt is not defined #75

Open
janBock opened this issue Feb 16, 2024 · 1 comment
Open

sj_evt is not defined #75

janBock opened this issue Feb 16, 2024 · 1 comment

Comments

@janBock
Copy link

janBock commented Feb 16, 2024

I am getting this in the console when trying to switch to streetside view.
image

I have tried to disable streetside view with either the disableStreetside attribute in the BingMapsReact component or with this config under viewOptions and/or mapOptions.

Any insight on either how to solve the issue and allow streetside, or to disable streetside view, as its not a requirement for my application.

TIA :)

@dangrussell
Copy link

This is an underlying issue in the Bing Maps V8 Web Control script ( https://www.bing.com/api/maps/mapcontrol ).

You can see others with this issue here: https://learn.microsoft.com/en-us/answers/questions/1464866/bing-maps-console-error-occurs-on-direction-module

The error is annoying but shouldn't actually affect your app.

This doesn't truly fix the issue, but you can suppress the error by manually declaring a global variable in your app called sj_evt with something like this:

(window as any).sj_evt = undefined;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants