|
@@ -0,0 +1,191 @@
|
|
|
+{% extends 'SonataAdminBundle:CRUD:base_list.html.twig' %}
|
|
|
+
|
|
|
+{% block stylesheets %}
|
|
|
+{{ parent() }}
|
|
|
+
|
|
|
+<style>
|
|
|
+
|
|
|
+.vakata-context {
|
|
|
+ z-index: 10000;
|
|
|
+}
|
|
|
+
|
|
|
+.content-header,.content {
|
|
|
+ padding-top: 0px;
|
|
|
+ padding-left: 0px;
|
|
|
+ padding-right: 0px;
|
|
|
+ padding-bottom: 0px;
|
|
|
+}
|
|
|
+
|
|
|
+.no_checkbox>i.jstree-checkbox
|
|
|
+{
|
|
|
+ display:none
|
|
|
+}
|
|
|
+
|
|
|
+.toolbar {
|
|
|
+ margin: 4px;
|
|
|
+}
|
|
|
+
|
|
|
+.statusBar {
|
|
|
+ display: block;
|
|
|
+ color: white;
|
|
|
+ margin-left: 10px;
|
|
|
+ /*margin-top: -10px;*/
|
|
|
+}
|
|
|
+
|
|
|
+.modal-xl { width: 90%; }
|
|
|
+
|
|
|
+.modal {
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+
|
|
|
+@media screen and (min-width: 768px) {
|
|
|
+ .modal:before {
|
|
|
+ display: inline-block;
|
|
|
+ vertical-align: middle;
|
|
|
+ content: " ";
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.modal-dialog {
|
|
|
+ display: inline-block;
|
|
|
+ text-align: left;
|
|
|
+ vertical-align: middle;
|
|
|
+}
|
|
|
+
|
|
|
+#objectTree {
|
|
|
+ padding-top: 20px;
|
|
|
+ height: calc(100vh - 120px);
|
|
|
+ overflow-y: scroll;
|
|
|
+ overflow-x: hidden;
|
|
|
+}
|
|
|
+
|
|
|
+#objectTree.jstree-proton .jstree-anchor{
|
|
|
+ color: lightGray;
|
|
|
+}
|
|
|
+
|
|
|
+#map {
|
|
|
+ width: 100%;
|
|
|
+ height: calc(100vh - 157px);
|
|
|
+ border-top: 2px;
|
|
|
+ border-bottom: 0px;
|
|
|
+ border-left: 0px;
|
|
|
+ border-right: 0px;
|
|
|
+ border-style: solid;
|
|
|
+ border-color: gray;
|
|
|
+ z-index: 0;
|
|
|
+ cursor:default;
|
|
|
+}
|
|
|
+
|
|
|
+footer {
|
|
|
+ z-index: 1100;
|
|
|
+}
|
|
|
+
|
|
|
+</style>
|
|
|
+{% endblock %}
|
|
|
+
|
|
|
+{% block actions %}
|
|
|
+{% endblock %}
|
|
|
+
|
|
|
+{% block tab_menu %}
|
|
|
+{#{{ knp_menu_render(admin.sidemenu(action), {'currentClass' : 'active', 'template': sonata_admin.adminPool.getTemplate('tab_menu_template')}, 'twig') }}#}
|
|
|
+{% endblock %}
|
|
|
+
|
|
|
+{% block list_filters_actions %}
|
|
|
+{% endblock %}
|
|
|
+
|
|
|
+{% block list_filters %}
|
|
|
+{% endblock %}
|
|
|
+
|
|
|
+{% block list_table %}
|
|
|
+{% endblock %}
|
|
|
+
|
|
|
+{% block sonata_wrapper %}
|
|
|
+{{ parent() }}
|
|
|
+<footer class="footer">
|
|
|
+ <span id="statusBar" class="statusBar">Listo.</span>
|
|
|
+</footer>
|
|
|
+{% endblock %}
|
|
|
+
|
|
|
+{% block content %}
|
|
|
+
|
|
|
+<div id='wrapper'>
|
|
|
+ <div id='page-content-wrapper'>
|
|
|
+ <div class="cms-block cms-block-element" >
|
|
|
+ <div id="map"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+
|
|
|
+
|
|
|
+<!-- Page JS -->
|
|
|
+{% include 'LeafletBundle:Leaflet:resources.html.twig' %}
|
|
|
+
|
|
|
+<!-- twig para reemplazar url por crossbrowser de feature geoserver -->
|
|
|
+{% include 'LeafletBundle:Leaflet:leaflet_wms.html.twig' %}
|
|
|
+
|
|
|
+<script>
|
|
|
+
|
|
|
+window.SONATA_CONFIG.USE_ICHECK = false;
|
|
|
+
|
|
|
+
|
|
|
+/* --------------------- PROGRAMA PRINCIPAL ------------------------- */
|
|
|
+initializeMap();
|
|
|
+/* ------------------- FIN PROGRAMA PRINCIPAL ----------------------- */
|
|
|
+
|
|
|
+
|
|
|
+/* --------------------- Funciones ------------------------- */
|
|
|
+function initializeMap() {
|
|
|
+
|
|
|
+ window.map = new L.Map('map', { center: new L.LatLng({{map['lat']}}, {{map['lng']}}), zoom: {{map['zoom']}} });
|
|
|
+
|
|
|
+ var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
|
|
|
+ var osmAttrib = '© OpenStreetMap';
|
|
|
+ var osm = L.tileLayer(osmUrl, { maxZoom: 18, attribution: osmAttrib });
|
|
|
+
|
|
|
+ var controlLayers = L.control.layers({
|
|
|
+ 'OSM': osm.addTo(window.map),
|
|
|
+ "Google": L.tileLayer('http://www.google.cn/maps/vt?lyrs=s@189&gl=cn&x={x}&y={y}&z={z}', {zIndex:1, attribution: '© Google'})
|
|
|
+ }, {}, { position: 'topleft', collapsed: false });
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ layerGeoRx = L.tileLayer.betterWms('http://200.50.168.118:8081/geoserver/deviceServer_1/wms', {
|
|
|
+ layers: 'deviceServer_1:onu_stats_tenancy_1',
|
|
|
+ transparent:true,
|
|
|
+ format: 'image/png',
|
|
|
+ zIndex: 99,
|
|
|
+ maxZoom: 24,
|
|
|
+ styles: 'onuRxPower'
|
|
|
+ });
|
|
|
+ layerGeoTx = L.tileLayer.betterWms('http://200.50.168.118:8081/geoserver/deviceServer_1/wms', {
|
|
|
+ layers: 'deviceServer_1:onu_stats_tenancy_1',
|
|
|
+ transparent:true,
|
|
|
+ format: 'image/png',
|
|
|
+ zIndex: 99,
|
|
|
+ maxZoom: 24,
|
|
|
+ styles: 'onuTxPower'
|
|
|
+ });
|
|
|
+
|
|
|
+ layerGeoStatus = L.tileLayer.betterWms('http://200.50.168.118:8081/geoserver/deviceServer_1/wms', {
|
|
|
+ layers: 'deviceServer_1:onu_stats_tenancy_1',
|
|
|
+ transparent:true,
|
|
|
+ format: 'image/png',
|
|
|
+ zIndex: 99,
|
|
|
+ maxZoom: 24,
|
|
|
+ styles: 'onuStatus'
|
|
|
+ });
|
|
|
+
|
|
|
+ var extraLayers = L.control.layers({
|
|
|
+ "TX": layerGeoTx,
|
|
|
+ 'RX': layerGeoRx,
|
|
|
+ "Status": layerGeoStatus
|
|
|
+ }, {}, { position: 'topleft', collapsed: false });
|
|
|
+
|
|
|
+ extraLayers.addTo(window.map);
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+/* --------------------- Funciones ------------------------- */
|
|
|
+</script>
|
|
|
+{% endblock %}
|