You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{% load leaflet_tags %}
<html><head>
{% leaflet_js plugins="forms" %}
{% leaflet_css plugins="forms" %}
{{ form.media }} <!-- Even though this line does not appear in the docs, it showed an error without it, as issue #343 --></head><body><h1>Edit {{ object }}</h1><formmethod="POST">
{{ form }}
<inputtype="submit"/>
</form></body></html>
However, the LeafletWidget always appears in black (no tile layer). There doesn't seem to be any reference to the OpenStreetMap layer anywhere either. Does that mean that I have to add it manually with javascript?
Also, it seems to ignore the settings defined in the settings.py file, i.e. the ATTRIBUTION_PREFIX parameter.
The text was updated successfully, but these errors were encountered:
I have no errors in my console. Strangely, both the admin and the widget in template works, but the form doesn't render or use the settings defined in the settings file
I'm trying to create a form using the code in the docs:
Code:
... and in my HTML template
However, the LeafletWidget always appears in black (no tile layer). There doesn't seem to be any reference to the OpenStreetMap layer anywhere either. Does that mean that I have to add it manually with javascript?
Also, it seems to ignore the settings defined in the settings.py file, i.e. the
ATTRIBUTION_PREFIX
parameter.The text was updated successfully, but these errors were encountered: