Problem/Motivation
If some rows have error (like not having the geofield information), no marker appears on the map.
Warning : array_merge(): Argument #1 is not an array dans Drupal\leaflet_views\Plugin\views\style\MarkerDefault->renderGroupingSets()
Proposed resolution
Check if the row is not false, if it is just ignore it (unset)
Remaining tasks
Test the patch and commit.
User interface changes
None
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | no_markers_are_rendered-2713085-3.patch | 669 bytes | harings_rob |
| #2 | no_markers_are_rendered-2713085-2.patch | 679 bytes | morsok |
Comments
Comment #2
morsokHere's a patch.
Comment #3
harings_rob commentedHmm, I had something similar, but in my case I would get a fatal error.
Attached patch resolves that issue, might be related.
Comment #4
harings_rob commentedIn fact, I needed both patches for everything to work. Maybe I just need #3 because of misconfiguration?
Comment #6
pvhee commentedHarings_rob, your patch is similar to the commit that went in: http://cgit.drupalcode.org/leaflet/commit/?id=7869326
Committed patch #2