Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Doesn't work with leaflet v1.0 #1

Open
vladim1 opened this issue Dec 12, 2016 · 1 comment
Open

Doesn't work with leaflet v1.0 #1

vladim1 opened this issue Dec 12, 2016 · 1 comment

Comments

@vladim1
Copy link

vladim1 commented Dec 12, 2016

The js files in the assets folder seems to be deprecated with leaflet v1.0
I get the following error all the time
TypeError: str is undefined
After some searching I found, that this is a version issue
I think it would be a better choice to use bower to get the latest stable version instead of the old one.

@vladim1
Copy link
Author

vladim1 commented Dec 12, 2016

When I use

public $js = [
        'https://unpkg.com/[email protected]/dist/leaflet.markercluster.js'
    ];

instead of

public function init()
    {
        $this->sourcePath = __DIR__ . '/assets';
        $this->js = YII_DEBUG ? ['js/leaflet.markercluster-src.js'] : ['js/leaflet.markercluster.js'];
    }

in MarkerClusterAsset everything works fine.

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

No branches or pull requests

1 participant