All OMGraphics have a bunch of color settings. There are methods for OMGraphics that let you set them as java.awt.Color or OMColor objects (OMColor extends Color).
You can set the highlight color on an OMGraphic, and that edge color will become the color when omGraphic.setSelected(true) is called. You can revert the color to the line color with omGraphic.setSelected(false).
In OpenMap 5.1.15, the com.bbn.openmap.layer.DemoLayer has a bunch of examples of this. That layer has been moved to com.bbn.openmap.layer.test.DemoLayer in OpenMap 6. Version 6 is in the git repo.
Hope this helps,
Don
> On Sep 23, 2021, at 8:06 PM, Geoffrey Koo <
wxc...@163.com> wrote:
>
> How do I highlight in area ? How do I show areas in different colors ?
>
> --
> You received this message because you are subscribed to the Google Groups "openmap-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
openmap-user...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/openmap-users/98aee83f-cb81-459d-b5f3-1419ca78920cn%40googlegroups.com.