src/Trinity/ProjectssitesBundle/Resources/views/frontend/realestate/widget_maps.html.twig line 1

Open in your IDE?
  1. {% trans_default_domain 'projectssites' %}
  2. {% if file_exists('../templates/override/projectssites/front.html.twig') %}
  3.     {% include '::override/projectssites/front.html.twig' %}
  4. {% else %}
  5.     <script>
  6.         let realestates = {{ realestate_hydrated|json_encode|raw }};
  7.         let realEstateParentPage = '{{path(config.detailpageroot.slugkey)}}';
  8.         let search_lat = {{ search_lat }};
  9.         let search_long = {{ search_long }};
  10.         let imgMarker = '{{ marker }}';
  11.         let googleMapsZoomLvl = {{ googleMapsZoomLvl }};
  12.         let isSingleProject = {{ config.isSingleProject() ? 1 : 0 }};
  13.     </script>
  14.     <script defer src="/bundles/trinityprojectssites/js/frontend/realestate.js"></script>
  15.     <script defer
  16.             src="https://maps.googleapis.com/maps/api/js?key=AIzaSyC042fMu6ZYNvJfBtKOnhEvlPpAs5XNy18&callback=initMap&language=nl"
  17.             xmlns="http://www.w3.org/1999/html">
  18.     </script>
  19.     <script src="https://unpkg.com/@googlemaps/markerclusterer/dist/index.min.js"></script>
  20.     
  21.     <div class="alert alert-danger position-fixed start-50" id="error-alert" style="display:none; z-index: 200; opacity: 1 " role="alert">
  22.         <strong>Error</strong><span id="error_txt"></span>
  23.     </div>
  24.     <div class="pi-bundle {% if not config.isSingleProject() %}multi-projects{% endif %}">
  25.       
  26.       <div style="height:500px" class="maps-wrapper">
  27.           <div style="height:500px;" id="map"></div>
  28.       </div>
  29.       {% for realEstate in realestates %}
  30.         {% include '@TrinityProjectssites/frontend/realestate/popup_realestate_options.html.twig' with {'realEstate':realEstate,'realEstateOptions': realEstate.options} %}
  31.       {% endfor %}
  32.     </div>
  33. {% endif %}