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

TypeError, Evented undefined #21

Open
amonam opened this issue Mar 22, 2023 · 1 comment
Open

TypeError, Evented undefined #21

amonam opened this issue Mar 22, 2023 · 1 comment

Comments

@amonam
Copy link

amonam commented Mar 22, 2023

Hello, I encountered an error that says:
"Uncaught TypeError: Cannot read properties of undefined (reading 'Evented')."
Do you have any suggestions on how to resolve it?

@nagix
Copy link
Owner

nagix commented Apr 12, 2023

This happens when you don't include Mapbox GL JS into your page. Try to include the JavaScript and CSS files of Mapbox GL JS itself AND this plugin in the <head> of your HTML file.

<link href="https://api.mapbox.com/mapbox-gl-js/v2.13.0/mapbox-gl.css" rel="stylesheet" />
<script src="https://api.mapbox.com/mapbox-gl-js/v2.13.0/mapbox-gl.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mapbox-gl-rain-layer@latest/dist/mapbox-gl-rain-layer.min.js"></script>

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