on(dojo.byId('Identify'), "click", function () { if (Buffer != undefined) { Buffer.pause(); } if (Identify == undefined) { Identify = on.pausable(app.map, "click", function (evt) { initializeSidebar(map); }); } else { Identify.resume(); } });
function initializeSidebar(map){ alert("In SidebarApp"); var popup = map.infoWindow; //when the selection changes update the side panel to display the popup info for the //currently selected feature. connect.connect(popup, "onSelectionChange", function(){ displayPopupContent(popup.getSelectedFeature()); }); //when the selection is cleared remove the popup content from the side panel. connect.connect(popup, "onClearFeatures", function(){ //dom.byId replaces dojo.byId dom.byId("featureCount").innerHTML = "Click to select feature(s)"; //registry.byId replaces dijit.byId registry.byId("leftPane").set("content", ""); domUtils.hide(dom.byId("pager")); }); //When features are associated with the map's info window update the sidebar with the new content. connect.connect(popup, "onSetFeatures", function(){ displayPopupContent(popup.getSelectedFeature()); dom.byId("featureCount").innerHTML = popup.features.length + " feature(s) selected"; //enable navigation if more than one feature is selected popup.features.length > 1 ? domUtils.show(dom.byId("pager")) : domUtils.hide(dom.byId("pager")); }); } function displayPopupContent(feature){ if(feature){ var content = feature.getContent(); registry.byId("leftPane").set("content", content); } } function selectPrevious(){ map.infoWindow.selectPrevious(); } function selectNext(){ map.infoWindow.selectNext(); } function clearContent() { registry.byId("leftPane").set("content", ""); domUtils.hide(dom.byId("pager")); }
on(dojo.byId('btnAction1'), "click", function () { }); on(dojo.byId('btnAction2'), "click", function () { });
on(dojo.byId('btnAction1'), "click", function () {
function initializeSidebar(map){
action1 = on.pausable(app.map, "click", function (evt) {
Can you post it on jsfiddle? Your link is not working. I try to put my infowindow result on left pane when button click to active identify tool.
Thanks.