Skip to content

leaflet-mapbox-vector-tile with react #87

@dsmoslem

Description

@dsmoslem

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?!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions