Problem/Motivation
Markers are hidden behind other markers if multiple markers are based on the same address and therefore cannot be clicked on.
Proposed resolution
By implementing Overlapping Marker Spiderfier this problem would be solved.
Remaining tasks
Write a patch that implements Overlapping Marker Spiderfier
- Wait for #2837983: Render map regardless of results to be ported and committed to Drupal 8 and write a new patch based on these changes
- Support Marker clusterer extension
- Review
User interface changes
Settings of the Overlapping Marker Spiderfier will be added to the view settings form.
When enabled, markers will be spiderfied on the view results map.
API changes
For this to work, we need our javascript files in a specific order:
- Google maps API
- Overlapping Marker Spiderfier
- Styled Google Maps
To achieve this order the Google maps API will have to become a library of it's own instead of being loaded by the "styled-google-map" library.
Comments
Comment #2
Syndz commentedHere's a patch based on changes in #2837983: Render map regardless of results.
All Overlapping Marker Spiderfier settings can be configured in the view settings.
Does not yet work with all situations of marker clusterer extension.
Comment #3
Syndz commentedActually added the patch... :)
Comment #4
Syndz commentedChanged the library's url to be //jawj.github.io instead of //jawj.github.com to prevent mixed content over https
Comment #5
Syndz commentedComment #6
Syndz commentedComment #7
Syndz commentedSame as #4, fixed line endings
Comment #8
Syndz commentedAnother try at fixing the line endings
Comment #9
Syndz commentedLast try at fixing the line endings
Comment #11
a.dmitriiev commentedThanks for patch. Since then there were couple of changes in the code, so I applied the patch partly. Please check the latest dev version.
Comment #13
a.dmitriiev commentedComment #14
a.dmitriiev commented