Skip to content

Show error if cluster property is not present in model #26

Description

@henhuy

When setting up a cluster, model properties can be forwarded to clusters in order to create layer styles depending on model attributes.
But in case a property does not exist, the rendering of the cluster fails showing a vague warning in JS console.
Instead, a missing property should be raising an error when setting up layers in django-mapengine.

Additionally, if an attribute is used in layer styles which is not present in cluster API, layer is not rendered on map.
Implementing an error message for this case is difficult as we must check layer styles for used attributes, which can be present in many different ways in the layer styles engine.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions