This is a wonderful module, and integrates so well with several other modules.
But one very popular module should also be integrated, and that’s Views Bulk Operation (VBO). Imagine the possibilities!
Already we can add a “Bulk operations: Content” Field to the Fields of a Content-type View with a “Map (Leaflet API, via IPGV&M)” (and presumably the Google API version as well, though I haven’t tried this) Formatter, but it doesn’t actually do anything yet other than display the action buttons or drop-down above the map. There’s no way to actually select the records to be passed to it.
UX Possibilities:
(in increasing order of UX efficiency and sheer coolness but likely also increasing order of difficulty of implementation)
- Display the “Bulk operations” Field as a simple checkbox inside the marker popup balloons (just as it would be if the Formatter were “Table” or “Grid” or some such). Hover over each marker you wish to pass on to VBO, and check its checkbox which will appear inside along with any other non-Excluded Fields.
- New “VBO Toggle Selection on Click” option in the Formatter Settings. This would override the “Display non-excluded fields in a pop-up balloon above the marker, when clicked. ” and “Go to the associated content page, when a marker is clicked.” settings. Selection would be indicated by some sort of special highlighting, such as superimposing a checkbox emoji character over the marker, or a change in its color or other visual aspect (perhaps implemented via CSS filter so that separate images don’t have to be made). More thoughts on this below.
- Integration with Leaflet.Draw (Leaflet API only) to allow selection rectangles, ellipses, and/or polygons to be drawn around a group of markers, selecting or deselecting them all in one user action.
Further Thoughts on Option #2:
I should maybe make other Issues for these and make this the Parent Issue, but for more efficiency of UX experience, several of the Settings options should probably be changed in their implementation and/or presentation:
The various options for what to do on Hover or Click should be grouped by the action and made into radio button selections (at least for Click and Double-Click [which should also be added, and perhaps Right-Click and Click + Modifier Key{s}as well], if not Hover) so that only one item can be chosen for each. For instance:
Action for Single-Click on Marker or Tag:
◉ Display non-excluded fields in a pop-up balloon above the marker.
◎ Go to content
◎ Toggle VBO Selection (requires Views Bulk Operation (VBO) Module, an appropriate “Bulk operations” Field, and at least one VBO Action selected.)
(perhaps other options which may be implemented later)
Similar sections would exist for Double-Click and Right-Click, with the latter perhaps offering the additional option of a context menu with all of the above options. Hover would offer only Display Pop-Up Balloon and Cross-Highlight as options, and those could be checkboxes since they can co-exist without interfering with each other.
The VBO Select may have an additional configuration section in a collapsible fieldset which would open if that were selected, to offer options on how to indicate the selection (make the marker dimmer, put a box or circle around it [using CSS outline settings], superimpose a green checkbox emoji or dingbat, etc.).
Comments
Comment #2
Joel MMCC commentedComment #3
Joel MMCC commented