src/Aqarmap/Bundle/ListingBundle/Resources/views/Listing/listingMap.html.twig line 1

  1. {% if showMap(listing) %}
  2. <div class="listing-details-item listingMap" ng-controller="listingMapController">
  3. <p class="section-title__header">{{ 'listing.map'|trans }}</p>
  4. <div id="map-thumb-container" style="position: relative; z-index:200;">
  5. <div hidden itemscope itemtype="https://schema.org/GeoCoordinates">
  6. <span itemprop="latitude">{{ listing.centerLat }}</span>
  7. <span itemprop="longitude">{{ listing.centerLng }}</span>
  8. <span itemprop="addressCountry">{{ get_setting('general', 'country') }}</span>
  9. </div>
  10. <a class="d-flex align-items-center justify-content-center" href="#" ng-show="show"
  11. ng-click="showListingMap({{ listing.centerLat }}, {{ listing.centerLng }});">
  12. <img itemprop="hasMap" class="map_place_holder img-responsive lazyload" border="0"
  13. src="" data-src="{{ asset('images/Map.svg') }}" width="750" height="120">
  14. <span class="listing__map-cta rounded-pill">
  15. {{ 'listing.show_location'|trans }}
  16. </span>
  17. </a>
  18. <div ng-if="!show">
  19. <leaflet id="map" defaults="defaults" center="center" paths="paths"
  20. maxbounds="maxbounds"
  21. ng-init="initListingLocation({{ listing.centerLat }}, {{ listing.centerLng }});"
  22. layers="layers" event-broadcast="events" v-pre></leaflet>
  23. </div>
  24. </div>
  25. </div>
  26. {% endif %}