<?xml version="1.0" encoding="UTF-8"?>
<config>
    <application 
    id="suiviAdresse"
    title="Suis-je éligible à la fibre ?"
    logo="../pub/sm-megalis/apps/fibre/fibre/theme/megalis_logo.png" 
    favicon="../pub/sm-megalis/apps/fibre/fibre/theme/favicon.ico"
    help="../pub/sm-megalis/apps/fibre/fibre/templates/home4.html" 
    showhelp="true"
    measuretools="false" 
    exportpng="false" 
    style="../pub/sm-megalis/apps/fibre/fibre/theme/theme4_mbzh.css"
    templaterightinfopanel="brut"/>

    <mapoptions maxzoom="20" 
    projection="EPSG:3857" 
    center="-334794.1838890721, 6121688.721303193" 
    zoom="9" 
    projextent="-20037508.342789244, -20037508.342789244, 20037508.342789244, 20037508.342789244"/>
  
   <baselayers style="gallery"> 
        <baselayer visible="true" id="positron" thumbgallery="img/basemap/positron.png" title="CartoDb" label="Fond clair" type="OSM" url="https://{a-c}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png" attribution="Map tiles by  &lt;a href=&quot;https://cartodb.com/attributions&quot;&gt;CartoDb&lt;/a&gt;, under  &lt;a href=&quot;https://creativecommons.org/licenses/by/3.0/&quot;&gt;CC BY 3.0 &lt;/a&gt;" /> 
        <baselayer  type="WMTS" id="ortho2" label="Photo aérienne IGN" title="GéoPortail" maxscale="1000" thumbgallery="img/basemap/ortho.jpg"
            url="https://data.geopf.fr/wmts" layers="ORTHOIMAGERY.ORTHOPHOTOS" format="image/jpeg" visible="false" fromcapacity="false"
            attribution="&lt;a href='https://geoservices.ign.fr/services-geoplateforme-diffusion' target='_blank'>&lt;img src='img/basemap/geoservices.png'>&lt;/a>" style="normal" matrixset="PM" maxzoom="22"/>
        <baselayer  type="WMTS" id="plan" label="Plan IGN" title="GéoPortail" maxscale="2000" thumbgallery="img/basemap/plan_ign.png" opacity="0.8"
            url="https://data.geopf.fr/wmts" layers="GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2" format="image/png" visible="false" fromcapacity="false"
            attribution="&lt;a href='https://geoservices.ign.fr/services-geoplateforme-diffusion' target='_blank'>&lt;img src='img/basemap/geoservices.png'>&lt;/a>" style="normal" matrixset="PM" maxzoom="22"/>
    </baselayers>
    <proxy url=""/>
    <!-- <olscompletion url="https://api-adresse.data.gouv.fr/search/" type="ban" attribution="La recherche d'adresse est un service proposé par la BAN"/> -->
    <olscompletion url="https://data.geopf.fr/geocodage/completion" type="ign" attribution="IGN"/>

    <searchparameters bbox="true" localities="true" features="false" querymaponclick="true" closeafterclick="true" banmarker="true" imgurl="../pub/sm-megalis/apps/fibre/fibre/theme/pin_fibre.png" imgwidth="45px"/>   
    
    <extensions>    
        <extension type="component" id="noMenuNavbar" path="../pub/sm-megalis/apps/fibre/fibre/addons"/>
        <extension type="component" id="helpMap" path="../pub/sm-megalis/apps/fibre/fibre/addons"/>
        <extension type="component" id="messageTpl" path="../pub/sm-megalis/apps/fibre/fibre/addons"/>
        <extension type="component" id="homeBtnTools" path="../pub/sm-megalis/apps/fibre/fibre/addons"/>
        <extension type="component" id="helpModal" path="../pub/sm-megalis/apps/fibre/fibre/addons"/>
        <extension type="component" id="changeBackground" path="../pub/sm-megalis/apps/fibre/fibre/addons"/>
        <extension type="component" id="barAutoComplete" path="../pub/sm-megalis/apps/fibre/fibre/addons"/>
        <extension type="component" id="barAutoCompleteHome" path="../pub/sm-megalis/apps/fibre/fibre/addons"/>
    </extensions>

    <themes>         
        <theme name="Fibre"  collapsed="true" id="fibre" icon="fas fa-arrow-right">
            <layer id="commune_metro" name="Commune filtrées" visible="true" tiled="true" showintoc="false"
				queryable="false" fields="nom_com,insee_com" aliases="Nom,Code INSEE"
                infoformat="application/vnd.ogc.gml" featurecount="5"
				url="https://geobretagne.fr/geoserver/ign/wms"
                filter="insee_reg = '53'"   
                style="administratif_noir"      
                opacity="0.4"       
                nohighlight="true" 
				attribution="IGN - Admin Express" 
				metadata="https://geobretagne.fr/geonetwork/srv/fre/catalog.search#/metadata/b08e6cb1-236c-49b7-88f9-42b500d274d5"
				metadata-csw="https://geobretagne.fr/geonetwork/srv/eng/csw?SERVICE=CSW&amp;VERSION=2.0.2&amp;REQUEST=GetRecordById&amp;elementSetName=full&amp;ID=b08e6cb1-236c-49b7-88f9-42b500d274d5" />
            <layer id="commune" name="Communes" visible="true" queryable="false" showintoc="false"
                fields="nom_com" aliases="Nom" 
                type="customlayer" style="" opacity="1" 
                url="../pub/sm-megalis/apps/fibre/fibre/customlayers/commune.js" 
                tooltip="true" tooltipenabled="true"
                nohighlight="true" 
                attribution="Source: GéoBretagne" 
                metadata="https://geobretagne.fr/geonetwork/srv/eng/catalog.search?node=srv#/metadata/b08e6cb1-236c-49b7-88f9-42b500d274d5" 
                metadata-csw="https://geobretagne.fr/geonetwork/srv/eng/csw?SERVICE=CSW&amp;VERSION=2.0.2&amp;REQUEST=GetRecordById&amp;elementSetName=full&amp;ID=b08e6cb1-236c-49b7-88f9-42b500d274d5"/>	    
            <layer id="epci" name="Intercommunalités" visible="true" queryable="false" showintoc="false"
                fields="nom_geo" aliases="Nom" toplayer="false"
                type="customlayer" style="" opacity="1" legendurl="https://kartenn.region-bretagne.fr/kartoviz/apps/region/territoire/img/epci.png" 
                url="../pub/sm-megalis/apps/fibre/fibre/customlayers/epci.js" 
                tooltip="false" 
                attribution="Source: GéoBretagne" 
                metadata="https://geobretagne.fr/datahub/dataset/2298d744-49cb-4fcb-9487-26f916fecdff" 
                metadata-csw="https://geobretagne.fr/geonetwork/srv/eng/csw?SERVICE=CSW&amp;VERSION=2.0.2&amp;REQUEST=GetRecordById&amp;elementSetName=full&amp;ID=2298d744-49cb-4fcb-9487-26f916fecdff"/>
            <layer id="zdep_fin_travaux" name="Avancement de la zone" type="wms" showintoc="false"
                url="https://geobretagne.fr/geoserver/megalis/wms" 
                tiled="true" visible="true" infoformat="application/vnd.ogc.gml" 
                opacity="0"
                filter="phase = 'ZA'"
                infohighlight ="false"
                attribution="Source: Mégalis Bretagne" 
                metadata="https://geobretagne.fr/datahub/dataset/327785c8-8b3a-49ed-b8d5-15d45c820c0b" 
                metadata-csw="https://geobretagne.fr/geonetwork/srv/fre/csw?SERVICE=CSW&amp;VERSION=2.0.2&amp;REQUEST=GetRecordById&amp;ELEMENTSETNAME=full&amp;ID&amp;ID=327785c8-8b3a-49ed-b8d5-15d45c820c0b" 
                queryable="true" featurecount="3">
                <template url="../pub/sm-megalis/apps/fibre/fibre/templates/zone_amii.mst" />
            </layer> 
            <layer id="suivi_adresse" name="Suivi des adresses du Projet Bretagne Très Haut Débit (BTHD)" type="wms" 
                url="https://geobretagne.fr/geoserver/megalis/wms" 
                sld="https://{{sld_url}}/fibre_suivi_adresse.sld" 
                tiled="true" visible="true" infoformat="application/vnd.ogc.gml" 
                customcontrol="true" customcontrolpath="../pub/sm-megalis/apps/fibre/fibre/customcontrol/"
                infohighlight ="false"
                attribution="Source: Mégalis Bretagne" 
                metadata="https://geobretagne.fr/datahub/dataset/79c691e8-7dbd-426a-97fa-37f503473a01" 
                metadata-csw="https://geobretagne.fr/geonetwork/srv/fre/csw?SERVICE=CSW&amp;VERSION=2.0.2&amp;REQUEST=GetRecordById&amp;ELEMENTSETNAME=full&amp;ID&amp;ID=79c691e8-7dbd-426a-97fa-37f503473a01" 
                queryable="true" showintoc="true" featurecount="3">
                <template url="../pub/sm-megalis/apps/fibre/fibre/templates/adresse4.mst" />
            </layer> 
        </theme>        
    </themes>
</config>