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.
This latest D8 version has not been very guarded (at all) and has become a real headache figuring out which version to install and which patches to apply to have a really working version that easily install with:
$ composer require drupal/leaflet
The attached patch wants to cover all this.
It applies to the actual 8.x-1.0-beta1 version of the module, covers all the actual 8.x-1.x dev enhancements
and include also the following existing (and not yet committed) patches:
- LeafletMarker could not recognize geofield (https://www.drupal.org/node/2839538)
Source: https://www.drupal.org/files/issues/leaflet-recognize_geofield-2839538.p... - Manage Leaflet library dependency in composer.json (https://www.drupal.org/node/2774237)
Source: https://www.drupal.org/files/issues/leaflet-1.0.3-D8-composer-2774237-50... - Upgrade patch to fix 'The leaflet_map plugin does not exist.'(https://www.drupal.org/node/2825567)
Source: https://www.drupal.org/files/issues/leaflet-viewstyle-id-typo-2825567-2....
I hope this might help a solid acceleration for the release of a stable and more usable version of this module.
Comment | File | Size | Author |
---|---|---|---|
leaflet_major_patch_for_really_working_d_8_x_1_0_beta1_version.diff | 37.98 KB | itamair |
Comments
Comment #2
itamair CreditAttribution: itamair as a volunteer commentedThe patch should be applied using and following this composer plugin workflow: https://github.com/cweagans/composer-patches
As you can see in the related patch, it adds the following lines in the leaflet composer.json:
When committed in the module it will work properly,
but I am not totally sure as a patch it would be able to apply that patch adds-on and download/install the leaflet/leaflet library dependency at the same time.
If you don't find the leaflet/leaflet library installed too at the end of your "composer require drupal/leaflet" process, then you should and follow what is now advised in the actual 8.x-1.x:dev readme.txt file, and it means the following:
Comment #3
rickvug CreditAttribution: rickvug commented@itamair Have you tried contacting the maintainer of the module to see if you could be added as a maintainer? It looks like you're doing a lot of great work here. The issues listed badly need to be resolved so that D8 devs can use this important module in a proper best practice composer workflow.
Comment #4
itamair CreditAttribution: itamair as a volunteer commentedah right ... it might be a lot easier if I have granted maintainer privileges on Leaflet.
I will now try to write to RdeBoer ...
Comment #5
levelos CreditAttribution: levelos at ThinkShout commented@itamir, thanks for all your support on this module. You've been added as a maintainer.
Comment #6
itamair CreditAttribution: itamair as a volunteer commentedThis has been included in the last 1.x-dev
Comment #8
ken-g CreditAttribution: ken-g as a volunteer and commentedI have been using the D8 version of the Leaflet module for several months now, and I have only ever installed it using composer, always without any problems. Given that we are now on a stable release of 8.x-1.3, as far as I am concerned, this issue has been reviewed and tested.
Comment #9
anruetherThis seems to be fixed a loooong while ago.