You are here

olmap_field.html.twig in Google Map Field 8

{% if infowindow is not empty %}
  {% set showInfowindow = "true" %}
{% endif %}
<section class="olmap-field">
  {% if name %}
  <h2>{{ name }}</h2>
  {% endif %}
  {% if showInfowindow %}
  <div class="map-infowindow" style="display:none;">{{ infowindow }}</div>
  {% endif %}
  <div class="map-container" style="width:{{ width }};height:{{ height }};" data-default-marker="{{ default_marker }}" data-controls-show="{{ show_controls }}" data-marker-show="{{ show_marker }}" data-lat="{{ lat }}" data-lon="{{ lon }}" data-zoom="{{ zoom }}" data-infowindow="{{ showInfowindow }}"></div>
</section>

File

templates/olmap_field.html.twig
View source
  1. {% if infowindow is not empty %}
  2. {% set showInfowindow = "true" %}
  3. {% endif %}
  4. <section class="olmap-field">
  5. {% if name %}
  6. <h2>{{ name }}</h2>
  7. {% endif %}
  8. {% if showInfowindow %}
  9. <div class="map-infowindow" style="display:none;">{{ infowindow }}</div>
  10. {% endif %}
  11. <div class="map-container" style="width:{{ width }};height:{{ height }};" data-default-marker="{{ default_marker }}" data-controls-show="{{ show_controls }}" data-marker-show="{{ show_marker }}" data-lat="{{ lat }}" data-lon="{{ lon }}" data-zoom="{{ zoom }}" data-infowindow="{{ showInfowindow }}"></div>
  12. </section>