# Zentrale Konfiguration komserv/settings.py ```python #... LEAFLET_CONFIG = { # conf here 'SPATIAL_EXTENT': (6.0, 49.0, 8.5, 52), 'DEFAULT_CENTER': (7.0, 50.0), 'DEFAULT_ZOOM': 7, 'MIN_ZOOM': 2, 'MAX_ZOOM': 20, 'DEFAULT_PRECISION': 6, } #... ``` # WMS Layer hinzufügen Muss im im jeweiligen Template erfolgen, da die zentrale Leaflet Konfiguration nur zusätzliche Tiled Layer erlaubt. Siehe auch [https://stackoverflow.com/questions/66938889/how-to-add-leaflet-extensions-marker-basemap-geocoder-to-django-leaflet](https://stackoverflow.com/questions/66938889/how-to-add-leaflet-extensions-marker-basemap-geocoder-to-django-leaflet) xplanung_light/templates/xplanung_light/bplan_form.html ```jinja {% extends "xplanung_light/layout.html" %} {% block title %} Bebauungsplan anlegen {% endblock %} {% block content %}
{% csrf_token %} {{ form.as_p }}
{% endblock %} ``` xplanung_light/templates/xplanung_light/bplan_form_update.html ```jinja {% extends "xplanung_light/layout.html" %} {% block title %} Bebauungsplan editieren {% endblock %} {% block content %}
{% csrf_token %} {{ form.as_p }}
{% endblock %} ``` # Darstellung WMS in Client [http://127.0.0.1:8000/admin/xplanung_light/bplan/add/](http://127.0.0.1:8000/admin/xplanung_light/bplan/add/) ```{image} img/leaflet_wms_view.png :alt: Darstellung WMS in Client :class: bg-primary :width: 800px :align: center ```