Following the work of @steven-jones at #2799311: Support geometry collections.
Refactored the patch to work on latest beta16 and added support for more geometries.
I tested the patch and it's working on beta16 (Drupal 8.6.2 and 8.7) with
Point,
Polyline,
Polygon,
MultiPoint,
MultiPolyline,
MultiPolygon,
GeometryCollection.
Meanwhile I notices the bug at #2905407: L.MultiPolygon is not a constructor (Leaflet 1.2.0). This patch solve that problem and add support for MultiPolyline->polyline not considered in that issue but strictly related.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | support_complex_geometries_3017492_#8.patch | 7.53 KB | itamair |
| #3 | Support-complex-geometries_patch.jpg | 252.64 KB | itamair |
| #3 | fix_multipolygon_const-2905407_patch.jpg | 250.83 KB | itamair |
| Support-complex-geometries.patch | 6.02 KB | viappidu |
Comments
Comment #2
itamair commentedthanks @viappidu ... reviews on this might start and are really welcome
Comment #3
itamair commentedAlthough the Patch is not compliant with Drupal patch naming conventions
I did a review of the posted patch, and the outcome is that it cannot be accepted, for the following reasons:
if compared to thefix_multipolygon_const-2905407.patch one, that has just been committed into the new 8.x-1.0-beta17 release. (Screenshots attached)
Comment #4
itamair commentedComment #5
itamair commented(content removed)
Comment #6
itamair commentedComment #7
itamair commentedComment #8
itamair commentedI amended and extended the previous patch with this one that overrides everything and applies upon the 8.x-1.0-beta17.
Everything seem to work nice on all the above mentioned geometries
(just the pop infowindow over a GeometryCollection won't show up ...).
Going to commit into dev, deploy a new 8.x-1.0-beta18 release and close this issue.
Comment #10
itamair commented