Allow to define a pointToLayer function for geojson (json)

Created on 1 November 2024, 5 months ago

Problem/Motivation

If a map is rendered with geojson, it is not really possible to have a pointToLayer function as described here

https://leafletjs.com/reference.html#geojson-pointtolayer

Proposed resolution

Give the ability to define a pointToLayer function in the php feature, which then is used in create_json

    $features[] = [
      'type' => 'json',
      'json' => $geojson,
      'pointToLayer' => 'Drupal.manageGeojsonPointToLayer',
    ];
Feature request
Status

Active

Version

10.2

Component

Code

Created by

🇩🇪Germany uniquename Berlin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024