Ct herunterladen

“; var winTime = Datum(); OpenWindow = window.open(“”, winTime, “height=250, width=500,toolbar=yes,scrollbars=yes,menubar=no”); OpenWindow.document.write(tbl); OpenWindow.document.close() self.name = “main” Interaktive “Click-and-Pick”-Auswahl dijit.byId(“interactiveSelect”).on(“click”, funktion (evt) é map.infoWindow.hide(); drawSelectGL.clear(); if (evt.target.checked == true)ZoomSlider(); home.hide(); toolbar.activate(“rectangle”, é showTooltips: true `; , if (evt.target.checked == false) ` dijit.byId(“TownSelect”).set(“disabled”, false); search.show(); map.enableMapNavigation(); map.showZoomSlider(); home.show(); toolbar.deactivate(); interactiveTileGL.on(“graphic-add”, funktion (e) é dojo.byId(“lbldownloadSelect”).innerHTML=”Download ” + interactiveTileGL.graphics.length+ ” Tiles As ” dojo.setStyle(“downloadPanel”, “display”, “block”); interactiveTileGL.on(“graphics-clear”, Funktion (e) é dojo.setStyle(“downloadPanel”, “display”, “none”); interactiveTileGL.on(“graphic-remove”, funktion (e) é dojo.byId(“lbldownloadSelect”).innerHTML = “Download ” + interactiveTileGL.graphics.length + ” Tiles As ” if (interactiveTileGL.graphics.length === 0) ` dojo.setStyle(“downloadPanel”, “display”, “none”); toolbar.on(“draw-complete”, Funktion (evt) – wenn (evt.geometry.cache != undefined) – FlashGraphicsLayer.clear(); drawSelectGL.clear(); interactiveTileGL.clear(); getIntersectingTiles(evt); var combo = dijit.byId(“TownSelect”); combo.on(“change”, Funktion (e) – SelectTown(e); dijit.byId(“tabs”).style.display = “block”; identifyTask = IdentifyTask(IdentifyService); identifyParams = neue IdentifyParameters(); identifizierenParams.toleranz = 1; identifyParams.returnGeometry = true; identifyParams.layerIds = [0, 1]; identifyParams.layerOption = IdentifyParameters.LAYER_OPTION_ALL; identifyParams.width = map.width; identifyParams.height = map.height; +InfoWindow onHide-Veranstaltung infoWindow.on(“hide”, Funktion () é dijit.byId(“tabs”).selectChild(dijit.byId(“tileTab”)); `(`#TableView`).empty(); `(`#TitleContent`).empty(); `(`#TitleStart`).show(#TitleContent); dijit.byId(“TownSelect”). set(`value`, `Select a Town`); map.graphics.clear(); interactiveTileGL.clear(); TownFeat = null; TileFeat = null; SelectedTab = “”; infoWindow.on(“show”, funktion () ` drawSelectGL.clear(); switch (SelectedTab) ` case undefined: case “Tile”: case “”: showFeature(tileResults.features[0]); var newPt = map.toScreen(tileResults.features[0].geometry.getExtent().getCenter()); map.infoWindow.move(newPt); showFeature(townResults.features[0]); Pause; Fall “Stadt”: showFeature(townResults.features[0]); var newPt = map.toScreen(townResults.features[0].geometry.getExtent().getCenter()); map.infoWindow.move(newPt); Pause; Fall “Kachel”: / / showFeature(tileResults.features[0]); var newPt = map.toScreen(tileResults.features[0].geometry.getExtent().getCenter()); map.infoWindow.move(newPt); Pause; }; dijit.byId(“tabs”).resize(); }); • Bestimmen Sie die ausgewählte Registerkarte, damit wir wissen, dass Sie die Tile oder die Town var tabs = dijit.byId(“tabs”) auswählen; tabs.watch(“selectedChildWidget”, Funktion (Name, alt, kind) – SelectedTab = child.title; schalter (SelectedTab) – Fall “Town”: showFeature(townResults.features[0]); /var newPt = map.toScreen(townResults.features[0].geometry.getExtent().getCenter())); Fall “Tile”: showFeature(tileResults.features[0]); var newPt = map.toScreen(tileResults.features[0].geometry.getExtent().getCenter()); map.infoWindow.move(newPt); break tabs.selectedChildWidget.id; (`#TitleContent`).html(“”); Erstellen Sie die Liste der Städte für Dropdown Query dojo.style(“Searcher”, “visibility”, “hidden”); var-Abfrage = neue Abfrage(); query.outFields = [“TOWN”]; query.returnGeometry = false; query.where = “1=1”; TownQueryTask.execute(query, populateList); funktion populateList(results) – *Populate the dropdown list box with unique values var Town; var values = []; var testVals = `; var features = results.features; dojo.forEach(features, function (feature) ` Town = feature.attributes.TOWN; if (!testVals[Town]) ` testVals[Town] = true; values.push(` name: Town`); `; var dataItems = `name`, label: `name`, items`, items `; var store = new Memory(` data:` ` ; dijit.byId(“TownSelect”).set(“store”, store); ` funktion SelectTown(selItem) ` if (dijit.byId(“TownSelect”).get(`value`) == `Select a Town`) ` return; `geometryService = new GeometryService(CTECOGeometryServer); var pt = new Point(); var query = new Query(); query.outFields = [“TOWN”]; query.returnGeometry = true; q