renderPartial($relativePath.'generic/mapLibs'); /* **************** modifier les parametre en fonction des besoins *******************/ if(!isset($sigParams)) $sigParams = array( /* CLÉ UNIQUE QUI SERT D'IDENTIFIANT POUR CETTE CARTE */ "sigKey" => "SV", /* MAP */ "mapHeight" => 450, "mapTop" => 0, "mapColor" => '', //ex : '#456074', //'#5F8295', //'#955F5F', rgba(69, 116, 88, 0.49) "mapOpacity" => 1, //ex : 0.4 /* * * Provider de fond de carte * http://leaflet-extras.github.io/leaflet-providers/preview/index.html * */ /* MAP LAYERS (FOND DE CARTE) */ "mapTileLayer" => 'http://{s}.tile.thunderforest.com/landscape/{z}/{x}/{y}.png', //'http://{s}.tile.stamen.com/toner/{z}/{x}/{y}.png' "mapAttributions" => 'OpenCycleMap', //'Map tiles by Stamen Design' /* MAP BUTTONS */ "mapBtnBgColor" => '#E6D414', "mapBtnColor" => '#213042', "mapBtnBgColor_hover" => '#5896AB', /* USE */ "usePanel" => true, "titlePanel" => 'THÈMES', "useRightList" => true, "useZoomButton" => true, "useHelpCoordinates" => false, "useFullScreen" => true, /* TYPE NON CLUSTERISÉ (liste des types de données à ne pas inclure dans les clusters sur la carte (marker seul))*/ "notClusteredTag" => array("citoyens"), /* COORDONNÉES DE DÉPART (position géographique de la carte au chargement) && zoom de départ */ "firstView" => array( "coordinates" => array(-21.13318, 55.5314), "zoom" => 9), ); /* ***********************************************************************************/ $moduleName = "sigModule".$sigParams['sigKey']; /* ***************** modifier l'url si besoin pour trouver ce fichier *******************/ //chargement de toutes les librairies css et js indispensable pour la carto $this->renderPartial($relativePath.'generic/mapCss', array("sigParams" => $sigParams)); ?> renderPartial($relativePath.'generic/mapView', array( "sigParams" => $sigParams)); ?> SS