Default values [skip ci]

This commit is contained in:
James Cole
2017-01-02 12:15:33 +01:00
parent 9352ee3e25
commit f797344106

View File

@@ -61,7 +61,7 @@
{% if Input.old('latitude') %} {% if Input.old('latitude') %}
var latitude = {{ Input.old('latitude') }}; var latitude = {{ Input.old('latitude') }};
{% else %} {% else %}
var latitude = {{ tag.latitude }}; var latitude = {{ tag.latitude|default("52.3167") }};
{% endif %} {% endif %}
{% if (Input.old('latitude') and Input.old('longitude') and Input.old('zoomLevel')) {% if (Input.old('latitude') and Input.old('longitude') and Input.old('zoomLevel'))
@@ -74,13 +74,13 @@
{% if Input.old('longitude') %} {% if Input.old('longitude') %}
var longitude = "{{ Input.old('longitude') }}"; var longitude = "{{ Input.old('longitude') }}";
{% else %} {% else %}
var longitude = {{ tag.longitude }}; var longitude = {{ tag.longitude|default("5.5500") }};
{% endif %} {% endif %}
{% if Input.old('zoomLevel') %} {% if Input.old('zoomLevel') %}
var zoomLevel = {{ Input.old('zoomLevel') }}; var zoomLevel = {{ Input.old('zoomLevel') }};
{% else %} {% else %}
var zoomLevel = {{ tag.zoomLevel }}; var zoomLevel = {{ tag.zoomLevel|default("6") }};
{% endif %} {% endif %}
var apiKey = "{{ apiKey }}"; var apiKey = "{{ apiKey }}";