Etude exploratoire XML / SVG IDL_CERTU1/ETU_001 / 1.1 - Lara
Etude exploratoire XML / SVG IDL_CERTU1/ETU_001 / 1.1 - Lara
Etude exploratoire XML / SVG IDL_CERTU1/ETU_001 / 1.1 - Lara
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Edité le 11 juin 2002 Annexes de l'étude CERTUdocument.svgMap.get<strong>SVG</strong>Document().getElementById("Parcelles").getStyle().setProperty('pointer-events','none');document.svgLegende.get<strong>SVG</strong>Document().getElementById("zone_radio_check").getStyle().setProperty('visibility','visible');document.svgLegende.get<strong>SVG</strong>Document().getElementById("zone_radio_uncheck").getStyle().setProperty('visibility','hidden');document.svgLegende.get<strong>SVG</strong>Document().getElementById("parcelle_radio_check").getStyle().setProperty('visibility','hidden');document.svgLegende.get<strong>SVG</strong>Document().getElementById("parcelle_radio_uncheck").getStyle().setProperty('visibility','visible');}// Active la couche "Parcelles"function activeParcelles() {document.svgMap.get<strong>SVG</strong>Document().getElementById("Parcelles").getStyle().setProperty('pointer-events','visible');document.svgLegende.get<strong>SVG</strong>Document().getElementById("zone_radio_check").getStyle().setProperty('visibility','hidden');document.svgLegende.get<strong>SVG</strong>Document().getElementById("zone_radio_uncheck").getStyle().setProperty('visibility','visible');document.svgLegende.get<strong>SVG</strong>Document().getElementById("parcelle_radio_check").getStyle().setProperty('visibility','visible');document.svgLegende.get<strong>SVG</strong>Document().getElementById("parcelle_radio_uncheck").getStyle().setProperty('visibility','hidden');}var selectedRect = null;// Traite les clics sur les rectangles de la légendefunction selectZone(rect) {var scale = document.svgMap.get<strong>SVG</strong>Document().getDocumentElement().getCurrentScale();var redPath = document.svgMap.get<strong>SVG</strong>Document().getElementById("redpath");// Cas où le clic s'effectue sur le rectangle sélectionnéif (rect == selectedRect) {selectedRect = null;rect.style.setProperty("stroke-width", 1);rect.style.setProperty("stroke", "black");redPath.style.setProperty('visibility', 'hidden');// Cas où il n'y avait pas de rectangle sélectionné avant} else if (selectedRect == null) {selectedRect = rect;rect.style.setProperty("stroke-width", 3);rect.style.setProperty("stroke", "red");var groupe =document.svgMap.get<strong>SVG</strong>Document().getElementById(rect.parentNode.getId());var d = "";var path = null;for (var i=0 ; i