"); template.setContent(getWindowContent); statesLayer1 = new esri.layers.FeatureLayer(judete1, { mode: esri.layers.FeatureLayer.MODE_ONDEMAND, infoTemplate: template, outFields: ["*"] }); map.addLayer(statesLayer1); } function dezactivare() { dijit.byId("grafice").disabled = false; dijit.byId("cursor").disabled = true; baraInstrumente.deactivate(); maptips(); } function maptips() { dojo.byId("info").innerHTML = "Miscati mouse-ul deasupra judetelor"; try{ map.removeLayer(statesLayer1); } catch (err) { } southCarolinaCounties = new esri.layers.FeatureLayer(judete1, { mode: esri.layers.FeatureLayer.MODE_SNAPSHOT, outFields: ["judet", "presedinte_filiala", "nr_delegati", "comentariu"] }); southCarolinaCounties.setDefinitionExpression("judet LIKE '%'"); var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255, 255, 255, 0.35]), 1), new dojo.Color([125, 125, 125, 0.3])); map.addLayer(southCarolinaCounties); var infoTemplate = new esri.InfoTemplate(); infoTemplate.setContent("${judet}" + "PRESEDINTE FILIALA: ${presedinte_filiala}
" + "NUMAR DELEGATI: ${nr_delegati}
" + "COMENTARIU: ${comentariu}"); var highlightSymbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255, 0, 0]), 3), new dojo.Color([125, 125, 125, 0.35])); dojo.connect(map, "onLoad", function () { map.graphics.enableMouseEvents(); event2= dojo.connect(map.graphics, "onMouseOut", closeDialog); }); event1 = dojo.connect(southCarolinaCounties, "onMouseOver", function (evt) { evt.graphic.setInfoTemplate(infoTemplate); var content = evt.graphic.getContent(); var highlightGraphic = new esri.Graphic(evt.graphic.geometry, highlightSymbol); map.graphics.clear(); map