henikseptiana15

Untitled

Jul 26th, 2021
1,045
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2.       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml"
  4. xmlns:ui="http://java.sun.com/jsf/facelets"
  5. xmlns:f="http://java.sun.com/jsf/core"
  6. xmlns:h="http://java.sun.com/jsf/html"
  7. xmlns:p="http://primefaces.org/ui"
  8. xmlns:j="http://jleaf.org/faces"
  9. xmlns:jl="http://java.sun.com/jsf/composite/jlcomponents">
  10. <ui:composition template="/WEB-INF/layouts/browse.xhtml">
  11.  <ui:define name="headPart">
  12.        <j:lang id="lang" prefix="org.jleaf.erp.mlm.web" />
  13.        <title>#{piece['viewGPS']}</title>
  14.        
  15.        <style type="text/css">
  16.             /* Set the size of the div element that contains the map */
  17.             #map {
  18.               height: 400px;
  19.               /* The height is 400 pixels */
  20.               width: 100%;
  21.               /* The width is the width of the web page */
  22.             }              
  23.        </style>
  24.        <script>
  25.           // Initialize and add the map
  26.           function initMap() {
  27.             // The location of Uluru
  28.             // const uluru = { lat: -25.344, lng: 131.036 };
  29.             const uluru = { lat: -6.188397568253478, lng: 106.77909262274359 };
  30.            
  31.             // The map, centered at Uluru
  32.             const map = new google.maps.Map(document.getElementById("map"), {
  33.               zoom: 4,
  34.               center: uluru,
  35.             });
  36.             // The marker, positioned at Uluru
  37.             const marker = new google.maps.Marker({
  38.               position: uluru,
  39.               map: map,
  40.             });
  41.           }
  42.         </script>
  43.  </ui:define>
  44.  <ui:define name="pageTitle">
  45.       <span>#{piece['viewGPS']}</span>
  46.  </ui:define>
  47.  <ui:define name="filter">
  48.  </ui:define>
  49.  
  50.  <ui:define name="content">
  51.     <h3>My Google Maps Demo</h3>
  52.     <!--The div element for the map -->
  53.     <div id="map"></div>
  54.  
  55.     <!-- Async script executes immediately and must be after any DOM elements used in callback. -->
  56.     <script
  57.      src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB41DRUbKWJHPxaFjMAwdrzWzbVKartNGg&callback=initMap&libraries=&v=weekly&channel=2"
  58.      async
  59.      />
  60.  </ui:define>
  61. </ui:composition>
  62. </html>
RAW Paste Data