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, }, }