silverstripe-webpack/app/templates/Objects/Map.ss

29 lines
716 B
Scheme
Raw Normal View History

<div
class="mapAPI-map-container"
data-map-zoom="$MapZoom"
data-key="$MapAPIKey"
2019-12-17 21:43:28 +01:00
data-map-style="<% if $MapStyle %>$MapStyle.XML<% else %>$SiteConfig.MapStyle.XML<% end_if %>"
<% if $GeoJSON %>data-geojson="$GeoJSON.XML"<% end_if %>
<% if $ID %>
data-id="$ID"
<% end_if %>
<% if $MapIcon %>
data-icon="$Icon.XML"
<% end_if %>
<% if $MapTitle %>
data-content="$MapTitle.XML"
<% end_if %>
<% if $Lat && $Lng %>
data-lat="$Lat"
data-lng="$Lng"
2020-10-26 11:25:06 +01:00
<% else_if $FullAddress %>
data-address="$FullAddress.XML"
2019-12-17 21:43:28 +01:00
<% else_if $Address %>
data-address="$Address.XML"
<% end_if %>
data-fly-to-marker="true"
data-fly-to-bounds="false"
>
2018-09-15 00:55:42 +02:00
<div class="mapAPI-map"></div>
</div>