netzmacht/contao-leaflet-maps

Add expert options setting to layers

Closed this issue · 2 comments

Like the map has an expert setting to pass custom options it should be available for layers as well.

We cannot do it for markers and vectors as they get created from GeoJSON. Use an input field to create an feature.properties.data field instead. Use the data property instead of the properties so that it is not mixed with some internal data being set.

2nd paragraph is wrong. The options are already passed to feature.properties.options and added to the object. Maybe providing both is the way to go.

Only feature.properties.data will be implemented.