Remove field from map settings form.

This commit is contained in:
Brian DeRocher 2023-09-20 13:07:12 -04:00
parent 6c58bf367d
commit 77b56623ed
2 changed files with 1 additions and 8 deletions

View file

@ -1113,7 +1113,6 @@ L.U.Map.include({
'filterKey', 'filterKey',
'facetKey', 'facetKey',
'slugKey', 'slugKey',
'featuresHaveOwners',
'showLabel', 'showLabel',
'labelDirection', 'labelDirection',
'labelInteractive', 'labelInteractive',
@ -1459,12 +1458,6 @@ L.U.Map.include({
label: L._('Feature identifier key'), label: L._('Feature identifier key'),
}, },
], ],
[
'options.featuresHaveOwners',
{
handler: 'Switch', label: L._('Features have owners')
},
],
] ]
builder = new L.U.FormBuilder(this, optionsFields, { builder = new L.U.FormBuilder(this, optionsFields, {

View file

@ -460,6 +460,7 @@ class MapDetailMixin:
(i, str(label)) for i, label in AnonymousMapPermissionsForm.STATUS (i, str(label)) for i, label in AnonymousMapPermissionsForm.STATUS
], ],
"umap_version": VERSION, "umap_version": VERSION,
"featuresHaveOwners": settings.UMAP_DEFAULT_FEATURES_HAVE_OWNERS,
} }
if self.get_short_url(): if self.get_short_url():
properties["shortUrl"] = self.get_short_url() properties["shortUrl"] = self.get_short_url()
@ -509,7 +510,6 @@ class MapDetailMixin:
"properties": { "properties": {
"zoom": getattr(settings, "LEAFLET_ZOOM", 6), "zoom": getattr(settings, "LEAFLET_ZOOM", 6),
"datalayers": [], "datalayers": [],
"featuresHaveOwners": settings.UMAP_DEFAULT_FEATURES_HAVE_OWNERS,
}, },
} }