From 77b56623ed383363577e2b224723f432a79cf3b1 Mon Sep 17 00:00:00 2001 From: Brian DeRocher Date: Wed, 20 Sep 2023 13:07:12 -0400 Subject: [PATCH] Remove field from map settings form. --- umap/static/umap/js/umap.js | 7 ------- umap/views.py | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index 6c06414f..4ba5fe14 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -1113,7 +1113,6 @@ L.U.Map.include({ 'filterKey', 'facetKey', 'slugKey', - 'featuresHaveOwners', 'showLabel', 'labelDirection', 'labelInteractive', @@ -1459,12 +1458,6 @@ L.U.Map.include({ label: L._('Feature identifier key'), }, ], - [ - 'options.featuresHaveOwners', - { - handler: 'Switch', label: L._('Features have owners') - }, - ], ] builder = new L.U.FormBuilder(this, optionsFields, { diff --git a/umap/views.py b/umap/views.py index ad819e5a..31f86717 100644 --- a/umap/views.py +++ b/umap/views.py @@ -460,6 +460,7 @@ class MapDetailMixin: (i, str(label)) for i, label in AnonymousMapPermissionsForm.STATUS ], "umap_version": VERSION, + "featuresHaveOwners": settings.UMAP_DEFAULT_FEATURES_HAVE_OWNERS, } if self.get_short_url(): properties["shortUrl"] = self.get_short_url() @@ -509,7 +510,6 @@ class MapDetailMixin: "properties": { "zoom": getattr(settings, "LEAFLET_ZOOM", 6), "datalayers": [], - "featuresHaveOwners": settings.UMAP_DEFAULT_FEATURES_HAVE_OWNERS, }, }