Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Created by Junjie Cheng on 2017.04.02
- Copyright © 2017 Junjie Cheng. All rights reserved.
- -->
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
- xmlns:p="http://primefaces.org/ui">
- <ui:composition template="/template/siteTemplate.xhtml">
- <ui:define name="title">
- <h:outputText value="Map of Locations"></h:outputText>
- </ui:define>
- <ui:define name="editableContent">
- <script src="http://maps.google.com/maps/api/js?key=AIzaSyAqLkL7YFuRRHD8523bGyZ4vgW0kqkqpvo" type="text/javascript" ></script>
- <h:form>
- <p:gmap id="gmap" center="#{mapView.getMapCenter()}" zoom="13" type="HYBRID" model="#{mapView.advancedModel}" style="width:100%;height:800px">
- <p:ajax event="overlaySelect" listener="#{mapView.onMarkerSelect}" />
- <p:gmapInfoWindow id="infoWindow">
- <h:panelGroup id="display">
- <h:outputLabel value="Location Name:" for="locationName" style="font-weight:bold" />
-
- <a href="AddressListContainer.xhtml" target="_blank">
- <h:outputLabel id="locationName" value="#{mapView.marker.title.replace('_', ' ')}" />
- </a>
-
- <c:if test="#{accountManager.isLoggedIn() == true}">
- <c:if test="#{triggerManager.userLocationIsTriggered(accountManager.selected) == false}">
- <h:outputLabel value="Trigger Emergency" for="trigger" style="font-weight: bold" />
-
- <a href="Trigger.xhtml">Trigger Emergency</a>
- </c:if>
- </c:if>
- <c:if test="#{LocationManager.selected.isTriggered()}" >
- <br/>
- <h:outputLabel for="locationDescription" value="Description:" style="font-weight:bold"/>
-
- <h:outputLabel id="locationDescription" value="#{mapView.data}" />
- </c:if>
- </h:panelGroup>
- </p:gmapInfoWindow>
- </p:gmap>
- </h:form>
- </ui:define>
- </ui:composition>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement