Changing the selection Color (Java Maps SDK)

834
3
Jump to solution
02-09-2023 08:02 PM
NebiSARIKAYA
New Contributor III

How can I change the selection color of GraphicsOverlay and FeatureLayer?

0 Kudos
2 Solutions

Accepted Solutions
ColinAnderson1
Esri Contributor

You should be be able to change this through the selection properties object by using the property on GeoView and modifying the returned object. 

View solution in original post

0 Kudos
NebiSARIKAYA
New Contributor III

I managed to change the background color of the base map with using ArcGISMap.setBackgroundColor(Color color);

View solution in original post

0 Kudos
3 Replies
ColinAnderson1
Esri Contributor

You should be be able to change this through the selection properties object by using the property on GeoView and modifying the returned object. 

0 Kudos
NebiSARIKAYA
New Contributor III

Thank you for the quick response. It worked. How can I change the background color of MapView? When I set Mapview.setBackground() with no other layers than a FeatureLayer with a ShapeFile the background goes to light gray again and I cannot change the background color. You may see the attached image.

0 Kudos
NebiSARIKAYA
New Contributor III

I managed to change the background color of the base map with using ArcGISMap.setBackgroundColor(Color color);

0 Kudos