Problem/Motivation

Currently the bulk of code in the OpenLayers widget is not specific to OpenLayers but would be relevant to any map-based widget.

As a result, any attempt to build a Geofield-compatible widget for a non-OpenLayers library would involve forking and maintaining almost identical code. See e.g. this issue on Leaflet widget: #1834446: Support Geofield 2.x.

Related issues on Geofield:

Proposed resolution

Refactor the code in geofield's OpenLayers widget to generecise the widget, allowing specific libraries to plug in, with OpenLayers as the example that ships with Geofield. From there, support for e.g. Leaflet would involve minor altering to the widget handling.

Comments

nedjo’s picture

This would basically try to complete the direction originally outlined in #1273802: Geofield/Openlayers widget refactor, which was to generecize a Geofield widget. Possibly this is a duplicate of that issue?