Always use svg display in gis editor (#18182)

* Always use svg display in gis editor

Data with srid does would not display in editor.
This was the easiest fix.

Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>

* Apply suggestions from code review

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>

---------

Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Co-authored-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
MoonE 2023-08-26 21:00:04 +02:00 committed by GitHub
parent 90cbefad59
commit 3d5dfc5ec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,14 +11,14 @@
{{ get_hidden_inputs() }}
{# Visualization section #}
<div id="placeholder"{{ srid != 0 ? ' class="hide"' }}>
<div id="placeholder">
{{ visualization|raw }}
</div>
<div id="openlayersmap" style="width: {{width}}px; height: {{height}}px;"{{ srid == 0 ? ' class="hide"' }}></div>
<div class="choice float-end">
<input type="checkbox" id="choice" value="useBaseLayer"{{ srid != 0 ? ' checked="checked"' }}>
<input type="checkbox" id="choice" value="useBaseLayer">
<label for="choice">{% trans "Use OpenStreetMaps as Base Layer" %}</label>
</div>