1 // camera graphics 2 dojo.connect(SANDY.mapDij.map.graphics, "onMouseOver", function(evt){ 3 // store old symbol to save for mouse out function 4 SANDY.origSymbol = evt.graphic.symbol; 5 6 // get orig color rgb's 7 var r = SANDY.origSymbol.color.r; 8 var g = SANDY.origSymbol.color.g; 9 var b = SANDY.origSymbol.color.b; 10 11 // highlight opacity 12 var a = 0.5; 13 14 // change symbol to highlight symbol 15 var biggerSize = evt.graphic.symbol.size + 4; 16 evt.graphic.setSymbol(dojo.clone(evt.graphic.symbol).setSize(biggerSize).setColor([r, g, b, a])); 17 18 SANDY.iTip.setContent(evt.graphic.getContent()); 19 SANDY.iTip.show(evt.screenPoint, SANDY.mapDij.map.height, SANDY.mapDij.map.width); 20 }); 21 dojo.connect(SANDY.mapDij.map.graphics, "onMouseOut", function(evt){ 22 // change symbol back 23 evt.graphic.setSymbol(SANDY.origSymbol); 24 25 SANDY.iTip.hide(); 26 }); 27 dojo.connect(SANDY.mapDij.map.graphics, "onClick", function(evt){ 28 // hide infowindow 29 SANDY.mapDij.map.infoWindow.hide(); 30 });