|
|
//<?php require_once('../../js_asm.php'); ?>
function loadLocationEditor(){ var tPanel = Ext.getCmp('main_content'); if( tlInterval!= null ){ window.clearInterval( tlInterval ); tlInterval = null; timelineObj = null; }; tPanel.remove(0); tPanel.add({ title: 'Locaton Map',// id: 'sys_map',
frame: false, border: false, //layout: 'column', // Specifies that the items will now be arranged in columns
layout:'hbox', layoutConfig: { align : 'stretch', pack : 'start', //padding:'5',
//align:'middle'
}, items: [{ //columnWidth: 0.60,
layout: 'fit', //height: 700,
flex: 1, border: true, items:{ id: 'location_map' } },{ title: 'Properties', flex: 1, width: 210, layout: 'fit', frame: true, id: 'prop_content',// border: true
items:{ html: 'Select Item From Map' } }], tbar: [{ xtype: 'splitbutton', text: 'Add Laser Sensor', split: true, enableToggle : undefined, menu : { items: [{ text:'ALS', handler: function(){ createNode( 0, 1 ); } },{ text:'LFS', handler: function(){ createNode( 0, 2 ); } },{ text:'PLS-200', handler: function(){ createNode( 0, 3 ); } },{ text:'PLS-360', handler: function(){ createNode( 0, 4 ); } },{ text:'3DLIDAR', handler: function(){ createNode( 0, 5 ); } }] } },{ xtype: 'splitbutton', text: 'Add Additional Equipment', split: true, enableToggle : undefined, menu : { items: [{ text:'Static Analog Camera' },{ text:'PTZ Analog Camera' },{ text:'Static IP Camera', handler: function(){ addIpCam(); } },{ text:'PTZ IP Camera', handler: function(){ addIpCam(); } },{ text:'DVR/Video Server/Streamer' },{ text:'Network Video Recorder' },{ text:'Ethernet to UART transeiver' },{ text:'DC to Ethernet (ADAM)' }] } },{ xtype: 'splitbutton', text: 'Add Connection', split: true, enableToggle : undefined, menu : { items: [{ text:'COM_TYPE_RS485_CTRL', handler: function(){ startCreateConnection(1); } },{ text:'COM_TYPE_RS422_CTRL', handler: function(){ startCreateConnection(2); } },{ text:'COM_TYPE_RS232_CTRL', handler: function(){ startCreateConnection(3); } },{ text:'COM_TYPE_TCP_CTRL', handler: function(){ startCreateConnection(4); } },{ text:'COM_TYPE_RS485_PTZ', handler: function(){ startCreateConnection(5); } },{ text:'COM_TYPE_RS422_PTZ', handler: function(){ startCreateConnection(6); } },{ text:'COM_TYPE_RS232_PTZ', handler: function(){ startCreateConnection(7); } },{ text:'COM_TYPE_TCP_PTZ', handler: function(){ startCreateConnection(8); } },{ text:'COM_TYPE_ANALOG_VIDEO', handler: function(){ startCreateConnection(9); } },{ text:'COM_TYPE_ANALOG_AUDIO', handler: function(){ startCreateConnection(10); } },{ text:'COM_TYPE_DC_ALARM_NC', handler: function(){ startCreateConnection(11); } },{ text:'COM_TYPE_DC_ALARM_NO', handler: function(){ startCreateConnection(12); } }] } }] }); tPanel.doLayout(); var map = L.map('location_map').setView([51.505, -0.09], 13);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' }).addTo(map);
L.marker([51.5, -0.09]).addTo(map) .bindPopup('A pretty CSS3 popup.<br> Easily customizable.') .openPopup();
};
|