Skip to content

bindPopup trigger Cannot read property 'call' of undefined #5

Description

@jeremy-saidani

Hi,

I'am trying to add Popup to leaflet object in splitMap, but i'am getting this error :

TypeError: Cannotreadproperty'call'ofundefinedNewClass.firesrc/core/Events.js:190187|this._firingCount=(this._firingCount+1)||1;188|for(vari=0,len=listeners.length;i<len;i++){189|varl=listeners[i];>190|l.fn.call(l.ctx||this,event);|^191|}192|193|this._firingCount--;NewClass.removeLayersrc/layer/Layer.js:195192|deletethis._layers[id];193|194|if(this._loaded){>195|this.fire('layerremove',{layer: layer});|^196|layer.fire('remove');197|}198|NewClass.closePopupsrc/layer/Popup.js:347344|this._popup=null;345|}346|if(popup){>347|this.removeLayer(popup);|^348|}349|returnthis;350|}NewClass._closesrc/layer/Popup.js:171168|169|_close: function(){170|if(this._map){>171|this._map.closePopup(this);|^172|}173|},174|NewClass._onCloseButtonClicksrc/layer/Popup.js:281278|},279|280|_onCloseButtonClick: function(e){>281|this._close();|^282|DomEvent.stop(e);283|},284|HTMLAnchorElement.handlersrc/dom/DomEvent.js:7976|if(obj[eventsKey]&&obj[eventsKey][id]){returnthis;}77|78|varhandler=function(e){>79|returnfn.call(context||obj,e||window.event);|^80|};81|82|varoriginalHandler=handler;
L.control.splitMap(leftPaneObjects,rightPaneObjects)

leftPaneObjects and rightPaneObjects are array of marker and polyline.
I used L.marker().bindPopup() : this crash
And L.popup() directly on map : this crash too
I tried to add popup on different pane, but still crash

If anyone has a solution, that would help me a lot, thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions