{% set pageHasMap = load_script_for('map', document) %}
{% if pageHasMap %}
{# google or openstreet map #}
{% if pimcore_website_config('googleMapsApiKey') is null %}
<link rel="stylesheet" href="{{ get_frontend_file('streetmap', 'css') }}" type="text/css">
<script src="{{ get_frontend_file('streetmap', 'js') }}"></script>
{% endif %}
{% endif %}