If you create a page view using the Leaflet module's leaflet display (outputs a map), the view page won't open when set to use colorbox-node. It gives the error: TypeError: container is null

The map view page will open fine using colorbox-load, but once you update the link class to use colorbox-node it errors. If I switch the view to a simple unformatted display of fields it will open with both colorbox-load and colorbox-node, so the problem definitely seems to exist with the Leaflet display.

I'm not sure if it's even possible to fix this in colorbox_node, but I will do some digging. In the meantime this bug report might help out anyone else trying to open a map view into the colorbox as it took me a while to track down the problem.

Comments

iLLin’s picture

Project: Colorbox Node » Leaflet
Version: 7.x-2.x-dev » 7.x-1.x-dev

That module will need to use attach behaviors and it should work correctly. Moving this to that issue queue.

pvhee’s picture

Status: Active » Closed (cannot reproduce)

Attach behaviors are used, so that should not be the cause. Closing this issue until it is reconfirmed.

mErilainen’s picture

Issue summary: View changes
Status: Closed (cannot reproduce) » Active

I cannot open content in a colorbox when using Leaflet popup. I have an attachment list below the map and enabling colorbox node for example on the title works there just fine.

abs’s picture

I also confirm the issue. Loading Leaflet Map on Views Page using colorbox-node will not works. Map will be displayed inproperly.