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

leaflet-mapbox-vector-tile with react #87

Open
dsmoslem opened this issue Jul 13, 2021 · 1 comment
Open

leaflet-mapbox-vector-tile with react #87

dsmoslem opened this issue Jul 13, 2021 · 1 comment

Comments

@dsmoslem
Copy link

Hi.
I have a simple react project with leaflet and used pure leaflet (not react-leaflet).
then I installed "leaflet-mapbox-vector-tile" with npm. but when I want to run the project, the following error shows:

TypeError: __WEBPACK_IMPORTED_MODULE_1_leaflet___default.a.TileLayer.MVTSource is not a constructor

can anyone help me?!

@iamtekson
Copy link

Use leaflet-geojson-vt

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