{% if entry.blogLocations.getMarkers is not empty %} {% set options = { id: 'map', width: '100%', height: '400px', options: { scrollwheel: false } } %} {% set map = craft.googleMaps.map(options) %} {% for markerCustom in entry.blogLocations.getMarkers() %} {% set address = '

' ~ loop.index ~ ' ' ~ markerCustom.title ~ '

' ~ markerCustom.content ~ '

' %} {% set marker = { lat: markerCustom.lat, lng: markerCustom.lng, content: address, } %} {{ craft.googleMaps.marker('map', marker) }} {% endfor %} {{ map }}

Locations in this post

{% for marker in entry.blogLocations.getMarkers() %} {% endfor %}
{{ loop.index }}

{{ marker.title }}

{{ marker.content|raw }}

{% endif %}