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.
CommentFileSizeAuthor
aggregated-map.zip4.13 KBmhavelant
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mhavelant created an issue.