templates/InteractiveMap/map.html.twig line 1

Open in your IDE?
  1. {% extends "Layout/default.html.twig" %}
  2. {% block content %}
  3.     {{ include('Navigation/breadcrumb.html.twig') }}
  4.     {{ include('Includes/main-title-block-splitted-editable.html.twig') }}
  5.     <section class="content-block">
  6.         {% do jsConfig().add('googleMapAPIKey', googleApiKey()) %}
  7.         {% do jsConfig().add('googleMapsLibraries', ['places', 'geocoding']) %}
  8.         {% do jsConfig().add('ajaxForm', true) %}
  9.         {% do jsConfig().add('ajaxFormMap', true) %}
  10.         {% do jsConfig().add('interactiveMap', true) %}
  11.         {% embed 'Includes/editmode-settings.html.twig' %}
  12.             {% block additionalInfo %}
  13.                 <div>
  14.                     <label>
  15.                         Longitude {{ pimcore_input('longitude', {placeholder: '14.306775'}) }}
  16.                     </label>
  17.                 </div>
  18.                 <div>
  19.                     <label>
  20.                         Latitude {{ pimcore_input('latitude', {placeholder: '47.2183939'}) }}
  21.                     </label>
  22.                 </div>
  23.                 <div>
  24.                     <label>
  25.                         Zoom {{ pimcore_numeric('map-zoom', {minValue: 0}) }}
  26.                     </label>
  27.                 </div>
  28.             {% endblock %}
  29.         {% endembed %}
  30.         <div class="js-ajax-form-map-google interactive-map position-relative"
  31.              data-google-map-initial-lng="{{ pimcore_input('longitude').empty ? '14.306775' : pimcore_input('longitude').data }}"
  32.              data-google-map-initial-lat="{{ pimcore_input('latitude').empty ? '47.2183939' : pimcore_input('latitude').data }}"
  33.              data-google-map-initial-zoom="{{ pimcore_numeric('map-zoom').empty ? "10" : pimcore_numeric('map-zoom').data }}"
  34.              data-ajax-form-add-url-params="true"
  35.              data-form-map-url="{{ path('im_pois', {'region': pimcore_relation('region').empty ? '' : pimcore_relation('region').element.id}) }}"
  36.         >
  37.             <div aria-live="polite">
  38.                 {{ include('InteractiveMap/filter.html.twig') }}
  39.                 {{ include('Includes/loading-overlay.html.twig', { styleModifier: 'js-ajax-form-map-google__loading' }) }}
  40.                 <div class="js-ajax-form-map-google__map interactive-map__google-map" style="">
  41.                     <div class="interactive-map__geo-location__wrapper">
  42.                         <button type="button" data-target="#location" class="interactive-map__geo-location js-ajax-form-map-google__get-geo-location">{{ 'im.In meinem Umkreis suchen'|trans }}</button>
  43.                     </div>
  44.                     <div class="js-ajax-form-map-google__map__canvas interactive-map__map-canvas"></div>
  45.                 </div>
  46.             </div>
  47.         </div>
  48.     </section>
  49. {% endblock %}
  50.     {% block javascripts %}
  51.         {% if not app.request.get('onlyInlineCss') %}
  52.         {{ include('Layout/includes/encore.html.twig', {
  53.             'staticDebugMode': staticDebugMode,
  54.             'file': 'js/interactiveMap'
  55.         }) }}
  56.         {% endif %}
  57.     {% endblock %}