Changing the highlight color of the selection

5258
5
Jump to solution
10-20-2015 03:46 AM
AveKargaja
Occasional Contributor

I'm using uncompiled flex 3.7 in Flash Builder and trying to change the symbol used to highlight the feature that has been clicked on (to show popups). I know that it is possible, but I haven't been able to track down the specific location(s) to modify in the code. Therefore I would be very glad if somebody could point out  the file(s) I need to change and the code that I have to insert.

0 Kudos
1 Solution

Accepted Solutions
MattiasEkström
Occasional Contributor III

Take a look at this post: Re: change symbology of popup feature graphic
You need to add a style to the default.css.

View solution in original post

5 Replies
EvelynHernandez
Occasional Contributor III

Well idk the exact file, but u can change the color in a graphic object, or eventually, for example, u do a query and when u get the featureset of the search u usually make a mappoint and a graphic object to display the search on the map. When u make the object, u specify the x,y of the mappoint and in the graphic the followings properties (kind of graphic: ppoint, polyline, polygon; the color; the alpha; etc). So try to see if u find something like that in ur code.

I hope this reference will be useful for you

0 Kudos
EvelynHernandez
Occasional Contributor III

I found this post, it can help u: Map Highlight Color

AveKargaja
Occasional Contributor

Thanks, I've read the topic refferred, but sadly it does not indicate the mxml file to insert the code.

0 Kudos
MattiasEkström
Occasional Contributor III

Take a look at this post: Re: change symbology of popup feature graphic
You need to add a style to the default.css.

AveKargaja
Occasional Contributor

Thanks for the clues

The solution in my case was to add

map.setStyle('infoWindowRendererHighlightColor', 0x000000);

into InfoPopup.mxml file private function init():void section.