-
Notifications
You must be signed in to change notification settings - Fork 10
Improve/display density results #1025
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| {% extends 'base.html' %} | ||
|
|
||
| {% load static l10n evaluations moulinette %} | ||
|
|
||
| {% block title %}Démonstrateur densité de haie{% endblock %} | ||
|
|
||
| {% block main-classes %}demos{% endblock %} | ||
|
|
||
| {% block content %} | ||
| <article id="{% block article_id %}{% endblock %}"> | ||
| <h1> | ||
| {% block article_heading %}{% endblock %} | ||
| </h1> | ||
| <div class="fr-grid-row fr-grid-row--gutters"> | ||
| <div class="fr-col-7"> | ||
| {% block map_column %} | ||
| <div class="ratio-4x3 ratio-sm-4x5 fr-my-3w"> | ||
| <div class="ratio-content"> | ||
| <div id="map"></div> | ||
| </div> | ||
| </div> | ||
| {% endblock %} | ||
| </div> | ||
| <div class="fr-col-5"> | ||
|
|
||
| {% if result_available %} | ||
| <div class="fr-table fr-mb-3w"> | ||
| <div class="fr-table__wrapper"> | ||
| <div class="fr-table__container"> | ||
| <div class="fr-table__content"> | ||
| {% block table %}{% endblock %} | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| {% else %} | ||
| {% block no_result %}{% endblock %} | ||
| {% endif %} | ||
|
|
||
| {% block feedback %}{% endblock %} | ||
|
|
||
| <div class="share-btn hide-print fr-my-8w">{% include '_share_url_btn.html' %}</div> | ||
| </div> | ||
| </div> | ||
| </article> | ||
| {% endblock %} | ||
|
|
||
| {% block extra_body %}{% endblock %} | ||
|
|
||
| {% block extra_css %} | ||
| <link href="{% static 'leaflet/dist/leaflet.css' %}" rel="stylesheet"> | ||
| <link href="{% static 'leaflet/draw/leaflet.draw.css' %}" rel="stylesheet"> | ||
| {% endblock %} | ||
|
|
||
| {% block extra_js %} | ||
| <script defer src="{% static 'leaflet/leaflet.js' %}"></script> | ||
| <script defer src="{% static 'leaflet/draw/leaflet.draw.js' %}"></script> | ||
| <script defer src="{% static 'js/libs/leaflet-icon-fix.js' %}"></script> | ||
| <script defer src="{% static 'js/demos/hedge_density_map.js' %}"></script> | ||
| <script defer src="{% static 'js/libs/urlmappings.js' %}"></script> | ||
| <script defer src="{% static 'js/libs/share_url_modal.js' %}"></script> | ||
| <script> | ||
| var DISPLAY_MARKER = {{ display_marker|yesno:'true,false' }}; | ||
| var CENTER_MAP = { lng: {{ center_map.0|unlocalize }}, lat: {{ center_map.1|unlocalize }} }; | ||
| var DEFAULT_ZOOM = {{ default_zoom }}; | ||
| var LAT_FIELD_ID = "id_lat"; | ||
| var LNG_FIELD_ID = "id_lng"; | ||
| var POLYGONS = {{ polygons|default:"[]"|safe }}; | ||
| var ENVELOPE = {{ envelope|default:"{}"|safe }}; | ||
| var DEBUG = {{ debug|yesno:'true,false' }}; | ||
| var LEGEND = []; | ||
|
|
||
| window.addEventListener("load", function() { | ||
| const options = { | ||
| displayMarker: DISPLAY_MARKER, | ||
| centerMap: CENTER_MAP, | ||
| defaultZoom: DEFAULT_ZOOM, | ||
| latFieldId: LAT_FIELD_ID, | ||
| lngFieldId: LNG_FIELD_ID, | ||
| polygons: POLYGONS, | ||
| envelope: ENVELOPE, | ||
| legend: LEGEND, | ||
| debug: DEBUG, | ||
| interactive: typeof IS_MAP_INTERACTIVE === "undefined" ? false : IS_MAP_INTERACTIVE, | ||
| }; | ||
|
|
||
| let map = new DemoMap(options); | ||
| }); | ||
| </script> | ||
| {% endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.