{% extends 'partials/base.html.twig' %}

{% block javascripts %}
    {% do assets.addJs('https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList') %}
    {% do assets.addJs('https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.3.0/build/ol.js') %}
    {% do assets.addJs('https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js') %}

    {{ parent() }}

{% endblock %}

{% block stylesheets %}
    {% do assets.addCss('https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.3.0/css/ol.css') %}
    {% do assets.addCss('/horde-map/assets/map.css') %}

    {{ parent() }}

{% endblock %}

{% block bottom %}
    {{ parent() }}

    {% do assets.addJs('/horde-map/assets/map.js') %}

    {{ assets.js() }}

{% endblock %}

{% block content %}
    {{ page.content }}

    <div id="map" class="map"></div>

{% endblock %}
