{% include "snippetMacros.html" %} {% macro renderMapLocations(items, pageUrl, classname) %} {% if items %} {% for item in items %} {{ renderMapLocation(item, pageUrl, classname) }} {% endfor %} {% else %}

{{ __('There are no map locations yet.') }}

{% endif %} {% endmacro %} {% macro renderMapLocation(item, pageUrl, classname) %}
  • {# Even if you plan to override this link with javascript, it still #} {# must exist, otherwise your maps are not Google-friendly. -Tom #} {{ item.title | e }}
    {{ item.descr }}
  • {% endmacro %} {% macro renderGoogleMap(mapItems, mapOptions={}) %} {% set _id = 'apos-map-canvas-' + aposGenerateId() %}
    {# load in the google maps apis #} {# instantiate a new AposGoogleMap #} {% endmacro %} {# let's show off all the stuff we can hold in a map item #} {% macro renderMapLocationWithDetails(item, pageUrl, classname) %}
  • {# Even if you plan to override this link with javascript, it still #} {# must exist, otherwise your maps are not Google-friendly. -Tom #} {{ item.title | e }} {% if item._edit %} Edit {% endif %} {{ aposArea(item, 'body', { edit: false }) }}
    {{ __('Address') }}
    {{ item.address }}
    {{ __('Coordinates') }}
    {{ item.coords.lat }}, {{ item.coords.lng }}
    {{ __('Created On') }}
    {{ item.createdAt }}
  • {% endmacro %}