Solved! Go to Solution.
Dilson,
Sure. I just threw it into 2.5 of the viewer and it worked fine.
I have problem when trying to resize the results box, it's fall to the bottom of the screen. Seems like i lost some control to resize results boxIf you ever had the ability to resize your popups then you already had a customized popup skin, as resizing the popup is not a OTB feature.
Dilson,
That is just a warning, that the import in not actually used in the code and could be removed.
If you ever had the ability to resize your popups then you already had a customized popup skin, as resizing the popup is not a OTB feature.
All,
So here is the full file with Mattias last addition and a new private var at the top where you can set the highlight color (if you don't want Red).
Dilson,
Hmm... I really can not tell you where you are going wrong then. When I have a change to the highlightColor var it works fine.
Yes that would be nice, and it's doable.
You can get the PopUpRendererSkin.mxml from downloading the API and make some addition there to accomplish this.
My solution is probably not the best one, but it works for me. Basically I'm adding the feature to a new graphiclayer and put a glow filter on it.
Here's my customPopUpRendererSkin, my additions are commented so you can see what I've done and change to your own customizations. For example make it flash insted of beeing highlighted or whatever you want.
Copy the skin to for example src/com/esri/viewer/skins
and then point it out in the defaults.css, something like this:esri|PopUpRenderer { skin-class: ClassReference("com.esri.viewer.skins.customPopUpRendererSkin"); }
I'm still in version 2.4, and my customPopUpRendererSkin is based on the one from API 2.4. If you have 2.5, download that new skin and make the changes to that one...
All,
So here is the full file with Mattias last addition and a new private var at the top where you can set the highlight color (if you don't want Red).