From 0e12e0e5c3dfe7b2995d0e95a1c7312f044aa1a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Mon, 1 Apr 2024 14:53:06 +0200 Subject: [PATCH] chore: Add schema entries for layers. --- umap/static/umap/js/modules/schema.js | 12 ++++++++++++ umap/static/umap/js/umap.forms.js | 10 +++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/umap/static/umap/js/modules/schema.js b/umap/static/umap/js/modules/schema.js index f0bd3f2e..490daa04 100644 --- a/umap/static/umap/js/modules/schema.js +++ b/umap/static/umap/js/modules/schema.js @@ -30,6 +30,14 @@ export const SCHEMA = { inheritable: true, default: 'DarkBlue', }, + choropleth: { + type: Object, + impacts: ['data'], + }, + cluster: { + type: Object, + impacts: ['data'], + }, dashArray: { impacts: ['data'], type: String, @@ -129,6 +137,10 @@ export const SCHEMA = { label: translate('Display the fullscreen control'), default: true, }, + heat: { + type: Object, + impacts: ['data'], + }, iconClass: { impacts: ['data'], type: String, diff --git a/umap/static/umap/js/umap.forms.js b/umap/static/umap/js/umap.forms.js index f1e41077..624cb8a2 100644 --- a/umap/static/umap/js/umap.forms.js +++ b/umap/static/umap/js/umap.forms.js @@ -527,11 +527,11 @@ L.FormBuilder.IconUrl = L.FormBuilder.BlurInput.extend({ ) } const symbol = L.DomUtil.add( - 'button', - 'flat tab-symbols', - this.tabs, - L._('Symbol') - ), + 'button', + 'flat tab-symbols', + this.tabs, + L._('Symbol') + ), char = L.DomUtil.add( 'button', 'flat tab-chars',