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.
Sometimes map needs to be altered by a module or a theme but it isn't possible at the moment because Leaflet module renders map itself. For example it's quite tricky to remove from page some leaflet js files added with drupal_add_js(). I propose use Render API and return to theme layer a renderable array not markup. It's a common practice in Drupal core modules.
Comment | File | Size | Author |
---|---|---|---|
#1 | build_map-1814028-0.patch | 4 KB | Chi |
Comments
Comment #1
Chi CreditAttribution: Chi commentedComment #2
gmclelland CreditAttribution: gmclelland commented@Chi - I was going to test your patch, but it no longer applies.
Comment #3
gcbNice idea. Worked this into the dev version.
Comment #4
DerTobi75 CreditAttribution: DerTobi75 commentedHi,
sorry, for bringing this Issue up again.
Just one question, is it possible that this patch stops the Leaflet Markercluster Module working?
When using the Leaflet Markercluster Module with the latest Dev Version of Leaflet, no clustering librariefiles are loaded, ...
Regards,
Tobi
Comment #5
gcb@DerTobi75 if you are seeing another issue go ahead and create a separate ticket for it!
This fix is now in a release https://drupal.org/node/2148175