Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi!
I used this module in a project but needed the map to display all markers in a single map. For this, I have extended the LeafletDefaultFormatter and created a modified copy of the leaflet.drupal.js file (see attached zip for the files).
Js changes are in the Drupal.Leaflet.prototype.add_features function, starting with the "// START OF MODIFICATIONS ----." comment.
I just wanted to share this quick and dirty ("it works") modification so it may be added to the module in a proper way.
Notes:
- I only tested this with "Leaflet map: OSM Mapnik".
- The "aggregated_leaflet_map_render_map" function is almost the same as the "leaflet_render_map", the only change is that mine uses the modified js.
Comment | File | Size | Author |
---|---|---|---|
aggregated-map.zip | 4.13 KB | mhavelant |
Comments