<%- include('_header'); -%>

<%= map.mapName || "(No Name)" %>

<%= map.mapName || "(No Name)" %>
<% if (user.userProperties.canUpdate) { %> <% } %>
<% if (map.mapDescription && map.mapDescription !== "") { %>
Description
<%= map.mapDescription %>
<% } %>
Address
<% if (map.mapAddress1 !== "") { %> <%= map.mapAddress1 %>
<% } %> <% if (map.mapAddress2 !== "") { %> <%= map.mapAddress2 %>
<% } %> <%= map.mapCity %>, <%= map.mapProvince %>
<%= map.mapPostalCode %>
<% if (map.mapPhoneNumber !== "") { %>
Phone Number
<%= map.mapPhoneNumber %>
<% } %>

Geographic Location

<% if (map.mapLatitude && map.mapLongitude) { %>
<% } else { %>

There are no geographic coordinates associated with this <%= configFunctions.getConfigProperty("aliases.map").toLowerCase() %>.

<% } %>

Image

<% if (map.mapSVG) { %> <% const imageURL = urlPrefix + "/images/maps/" + map.mapSVG %> <%- include('../public/images/maps/' + map.mapSVG); -%> <% } else { %>

There are no image associated with this <%= configFunctions.getConfigProperty("aliases.map").toLowerCase() %>.

<% } %>
<% const lotSearchUrl = urlPrefix + "/lots?mapId=" + map.mapId; %>

<%= configFunctions.getConfigProperty("aliases.lot") %> Summaries <%= map.lotCount %>

<% if (map.lotCount === 0) { %>

There are no <%= configFunctions.getConfigProperty("aliases.lots").toLowerCase() %> associated with this <%= configFunctions.getConfigProperty("aliases.map").toLowerCase() %>.

<% } else { %>
<% for (const lotType of lotTypeSummary) { %> <% } %>
Type <%= configFunctions.getConfigProperty("aliases.lot") %> Count Percentage
<%= lotType.lotType %> <%= lotType.lotCount %> <%= ((lotType.lotCount / map.lotCount) * 100).toFixed(1) %>%
<% for (const lotStatus of lotStatusSummary) { %> <% } %>
Status <%= configFunctions.getConfigProperty("aliases.lot") %> Count Percentage
<%= lotStatus.lotStatus %> <%= lotStatus.lotCount %> <%= ((lotStatus.lotCount / map.lotCount) * 100).toFixed(1) %>%
<% } %>
<%- include('_footerA'); -%> <%- include('_footerB'); -%>