Hi

I basically rewrote the whole Drupal 8 version of the Leaflet Widget module.
https://github.com/ayalon/leaflet_widget

It supports drawing of

  • Markers
  • Polyline
  • Rectangle
  • Polygon / Multipolygon
  • Circle

It has

  • Edit Mode
  • Drag Mode
  • Cut Mode
  • Delete Mode
  • The GeoJSON data is saved in the geofield module.

It has the same funtionality as the current version, because it also supports marker. But it uses way less frontend libraries and the code is massively reduced.

What do you think about a 2.x-dev branch? If you add me as a maintainer, I will commit the current state to the drupal.org git repo.

Comments

ayalon created an issue. See original summary.

ken-g’s picture

Hi ayalon,

You may have seen that a few days ago I made an offer to the current module maintainer (FMB) to help get the D8 version of the Leaflet Widget working by adding the Leaflet.draw plugin as the foundation for all the geometry creating and editing.

However, this afternoon I have been trying out your version of the Leaflet Widget. I can see that it is already a fully developed solution, and wouldn't take much more work to get it to a full release.

Most of my experience in this area has been with the Leaflet.draw plugin, but I have no problem using the Leaflet.PM plugin instead.

In summary, I think your version of the Leaflet Widget is great ! I would fully support making this the official widget for Leaflet for Drupal 8, and I would be happy to carry out some further testing once it is committed to drupal.org as 8.x-2.x-dev.

ayalon’s picture

Thanks for the feedback and testing the new module. I will write an email to the maintainer, maybe he is willing to create a 2.x-dev branch for the module.

fmb’s picture

Awesome! I added you as maintainer for this project. You can merge your work in a 8.x-2.x-dev branch and maybe create two new releases (8.x-2.x-dev and 8.x-2.0-alpha1). Also, could you update the description on the project page?

We'll figure out later how to deal with two 8.x branches... Besides, I still have to create a new release for the 7.x-2.x branch.

ayalon’s picture

Thanks for adding me as a maintainer. I created a 2.x branch and released a 2.0-alpha1 version. Additionally I updated the project page with a detailed description.

ayalon’s picture

Status: Active » Fixed
ayalon’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev
Assigned: Unassigned » ayalon
Status: Fixed » Closed (fixed)
fmb’s picture

Thanks!

ken-g’s picture

Good work ayalon !!

todda’s picture

this is really awesome!!!!
Great Job!!!!!