Problem/Motivation
The MarkerClusterer library supports to define the option ImagePath
: https://github.com/googlemaps/js-marker-clusterer/blob/gh-pages/README.md
Allowing to define this would make it much easier / cleaner to style the cluster images.
Proposed resolution
Introduce a new configuration variable (gsl_cluster_image_path
).
The variable defaults to libraries_get_path('markerclusterer') . '/images/m'
- which will point to the default images provided by the MarkerClusterer library.
Pass new variable into the JS and use it when creating a new MarkerClusterer
instance.
Remaining tasks
Reviews needed.
User interface changes
New config option in the settings page.
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
google_store_locator-allow-to-defined-markerclusterer-image-path.patch | 3.8 KB | das-peter |
Comments
Comment #3
rodrigoeg CreditAttribution: rodrigoeg at CI&T commentedThanks @das-peter
I committed the patch on the dev branch
Comment #4
rodrigoeg CreditAttribution: rodrigoeg at CI&T commented