You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
Uncaught TypeError: Cannot read property 'trim' of undefined
at trim (Util.js:121)
at splitWords (Util.js:127)
at NewClass.on (Events.js:49)
at NewClass.initialize (leaflet.markercluster-src.js:51)
at new NewClass (Class.js:22)
at Object.L.markerClusterGroup (leaflet.markercluster-src.js:1080)
at map_init (map:678)
at HTMLDocument.<anonymous> (map:683)
at fire (jquery.js:3187)
at Object.fireWith [as resolveWith] (jquery.js:3317)
Followed the documentation on readme, it looks like outdated tho
The text was updated successfully, but these errors were encountered:
nfacha
changed the title
Not working
Not working - JS Error
Jul 28, 2017
Same error...
I need to change
$cluster = new MarkerCluster([
'jsonUrl' => Yii::$app->controller->createUrl('projects/json')
]);
for this:
$cluster = new MarkerCluster([
'url' => Yii::$app->urlManager->createUrl('projects/json')
]);
Because jsonUrl isn't throws this exception:
Setting unknown property: dosamigos\leaflet\plugins\markercluster\MarkerCluster::jsonUrl
and
Yii::$app->controller->createUrl('projects/json') throws: Calling unknown method: app\controllers\ProjectsController::createUrl()
but the error (Uncaught TypeError: Cannot read property 'trim' of undefined) don't fixed.
Finally, i added:
public $js = [
'https://unpkg.com/[email protected]/dist/leaflet.markercluster.js'
];
wich posted vladim1 in the other issue and works fine.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Followed the documentation on readme, it looks like outdated tho
The text was updated successfully, but these errors were encountered: