<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_leaflet
 *
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
 
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<!-- IMPORT JS FILES -->
<?php

    //JHtml::_('jquery.framework');

    //JHtml::_('script', 'https://unpkg.com/leaflet@1.7.1/dist/leaflet.js');
    //JHtml::_('stylesheet', 'https://unpkg.com/leaflet@1.7.1/dist/leaflet.css');

    JHtml::_('script', JUri::root() . 'media/com_leaflet/js/jquery-3.6.0.slim.min.js');
    JHtml::_('script', JUri::root() . 'media/com_leaflet/js/leaflet-1.7.1/leaflet.js');
    JHtml::_('stylesheet', JUri::root() . 'media/com_leaflet/js/leaflet-1.7.1/leaflet.css');

    
    JHtml::_('script', 'com_leaflet/leaflet-panel-layers-master/src/leaflet-panel-layers.js', array('version' => 'auto', 'relative' => true));
    JHtml::_('stylesheet', JUri::root() . 'media/com_leaflet/js/leaflet-panel-layers-master/src/leaflet-panel-layers.css'); 
    JHtml::_('stylesheet', JUri::root() . 'media/com_leaflet/js/leaflet-search-master/src/leaflet-search.css'); 
    JHtml::_('stylesheet', JUri::root() . 'media/com_leaflet/js/leaflet-sidebar-master/src/L.Control.Sidebar.css'); 
    JHtml::_('stylesheet', JUri::root() . 'media/com_leaflet/js/Leaflet.markercluster-1.4.1/dist/MarkerCluster.css'); 
    JHtml::_('stylesheet', JUri::root() . 'media/com_leaflet/js/Leaflet.markercluster-1.4.1/dist/MarkerCluster.Default.css'); 
    // JHtml::_('script', JUri::root() . 'media/com_leaflet/js/leaflet-menu-master/src/leaflet.menu.min.js');
    // JHtml::_('stylesheet', JUri::root() . 'media/com_leaflet/js/leaflet-menu-master/src/leaflet.menu.min.css');
    // JHtml::_('stylesheet', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css');
    

    // JHtml::_('script', 'com_leaflet/chflieu_communesV2.js', array('version' => 'auto', 'relative' => true));
    JHtml::_('script', 'com_leaflet/nouvelles_regionsV3.js', array('version' => 'auto', 'relative' => true));
    JHtml::_('script', 'com_leaflet/mapbox_token.js', array('version' => 'auto', 'relative' => true));
    JHtml::_('script', 'media/com_leaflet/js/leaflet-omnivore.min.js');
    //JHtml::_('script', 'media/com_leaflet/jsChainesGeomWKT.js');
    // JHtml::_('script', 'com_leaflet/themes.js', array('version' => 'auto', 'relative' => true));

    JHtml::_('script', 'com_leaflet/leaflet-search-master/src/leaflet-search.js', array('version' => 'auto', 'relative' => true));
    JHtml::_('script', 'com_leaflet/Leaflet.markercluster-1.4.1/dist/leaflet.markercluster.js', array('version' => 'auto', 'relative' => true));
    JHtml::_('script', 'com_leaflet/leaflet-sidebar-master/src/L.Control.Sidebar.js', array('version' => 'auto', 'relative' => true));

    JHtml::_('script', 'com_leaflet/app.js', array('version' => 'auto', 'relative' => true));
    

    
    ?> 

<!-- TEMPLATE -->
    <?php echo '<input id="token" type="hidden" name="' . JSession::getFormToken() . '" value="1" />'; ?>

    <!-- <table class="table table-bordered"> -->
    <!-- <thead>
      <tr>
        <th>Code</th>
      </tr>
    </thead>
    <tbody id="t_points"></tbody>
    <tr>
        <td>test<td>
    </tr>
  </table> -->
    <div id="mapid">
        <div id="filtreMap">
        <div id="filtreCode">
        </div id="filtre">
    </div>
   

    <div id="sidebar">
        <h1>Cartographie des projets d'enedis coorace</h1>
    </div>
    <div id="tooltip">
    </divid>


<!-- SCRIPT -->

<!-- HERE IS THE VIEW IN FRONT-END WHEN WE SEE COMPONENT -->