openLayers // numero d objet if (isset ($_GET['idx'])){ $idx=$_GET['idx']; }else{ $idx=''; } // obj if (isset ($_GET['obj'])){ $obj=$_GET['obj']; } // // geometrie if (isset ($_GET['geometrie'])){ $geometrie=$_GET['geometrie']; }else{ $geometrie="point"; } //parametrage de l etendue dans l url if (isset ($_GET['etendue'])){ $etendue=$_GET['etendue']; } // utils include ("../obj/utils.class.php"); $f = new utils ('nohtml'); $f->disableLog(); $f->addHTMLHeadJs(array("../lib/openlayers/OpenLayers.js", "../lib/openlayers/proj4js-compressed.js", "../js/sig.js")); // table om_sig_point $sql="select * from ".DB_PREFIXE."om_sig_point where id='".$obj."'"; $res = $f -> db -> query($sql); if (DB :: isError($res)){ die($res->getMessage()."erreur ".$sql); }else{ while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)){ $titre=$row['libelle']; $zoom=$row['zoom']; $fond_sat=$row['fond_sat']; $fond_osm=$row['fond_osm']; $fond_bing=$row['fond_bing']; $layer_info=$row['layer_info']; $etendue= $row['etendue']; $maj=$row['maj']; $projection_externe=$row['projection_externe']; $table=$row['table_update']; $champ=$row['champ']; $retour=$row['retour']; } } // *** variables pouvant etre surchargees dans dyn/var_sig.php *** $http_google="http://maps.google.com/maps?file=api&v=2&key="; $http_bing='http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2&mkt=en-us'; // 6.3c au lieu de 6.2 $cle_google = ""; $fichier_jsons="sig_json.php?obj="; $fichier_wkt="sig_wkt.php"; //zoom par couche : zoom standard permettant un passage de zoom a l autre $zoom_osm_maj=18; $zoom_osm=14; $zoom_sat_maj=8; $zoom_sat=4; $zoom_bing_maj=8; $zoom_bing=4; //popup data contenuHTML $width_popup=200; $cadre_popup=1; $couleurcadre_popup="black"; $fontsize_popup=12; $couleurtitre_popup="black"; $weightitre_popup="bold"; $fond_popup="yellow"; $opacity_popup="0.7"; // image localisation maj ou consultation $img_maj="../img/punaise_sig.png"; $img_maj_hover="../img/punaise_hover.png"; $img_consult="../img/punaise_point.png"; $img_consult_hover="../img/punaise_point_hover.png"; $img_w=14; $img_h=32; $img_click="1.3";// multiplicateur hauteur et largeur image cliquee // personnalisation des variables if (file_exists("../dyn/var_sig.inc")) include ("../dyn/var_sig.inc"); // affichage des fonds if($fond_sat=="Oui") $f->addHTMLHeadJs(array($http_google.$cle_google)); if($fond_bing=="Oui" ) $f->addHTMLHeadJs(array($http_bing)); $f->setFlag("nodoctype"); $f->display(); // Etat de l interface $bl="    "; $msg_dessin=$bl._("Dessiner").$bl; $msg_valider=$bl._("Enregistrer").$bl; $msg_data=$bl._("Data").$bl; $msg_deplacer=$bl."Deplacer".$bl; echo "
"; echo "".$titre." [".$obj." ".$idx."]"; if($maj=="Oui"){ if($geometrie=='point'){ echo ""; echo ""; echo ""; echo ""; } if($geometrie=='line'){ echo ""; echo ""; echo ""; echo ""; } if($geometrie=='polygon'){ echo ""; echo ""; echo ""; echo ""; } } if($layer_info=="Oui"){ echo ""; } ///scr/dashboard.php echo ""; // fond echo "  ".$msg_data.""; echo "
"; // map echo "
"; ?>