Fatal error on editing/displaying map when one of its layers does no longer exists

Created on 28 May 2024, about 1 month ago

Problem/Motivation

When a map contains manually added layers, one of those layers can be deleted. Loading the map to be displayed or edited results in an fatal error.

Steps to reproduce

  • Add some layers using the layers UI.
  • Add a map using one or more of these layers.
  • Remove one of the layers used in the map.
  • The map can no longer be edited nor displayed.

Proposed resolution

Add an extra check, in the leaflet_layers_leaflet_map_info() hook, if the layer can be loaded.

πŸ› Bug report
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium zero2one

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

Comments & Activities

Production build 0.69.0 2024