# GeoMarker opacity

I was surprised today when I discovered that GeoMarker seems to ignore the Opacity directive in GeoGraphics. This can be demonstrated using the first example in the documentation:

GeoGraphics[{GeoStyling["OutlineMap"],
Opacity[.5],
Polygon[Entity["Country", "Italy"]],
GeoMarker[Entity["City", {"Rome", "Lazio", "Italy"}]]}]


The country's polygon is respecting the Opacity directive, but GeoMarker ignores it.

How to properly set the opacity of GeoMarkers?

Probably the most simple way to set the opacity of GeoMarkers is with an undocumented usage of its "Color" parameter. It appears to support Directives, so the opacity can be set the following way:

GeoGraphics[{GeoStyling["OutlineMap"], Opacity[.5],
Polygon[Entity["Country", "Italy"]],
GeoMarker[Entity["City", {"Rome", "Lazio", "Italy"}],
"Color" -> Directive[Opacity[.5], RGBColor[0.790588, 0.201176, 0.]]]}]


• Do you mind tell us how to find it? – yode Jun 18 '16 at 16:22
• @yode I had a hunch and was lucky it worked. :) – shrx Jun 18 '16 at 16:30
• "Color" is a documented option for GeoMarker – Bob Hanlon Jun 18 '16 at 18:24
• @BobHanlon Yes, but it doesn't mention it can take other arguments than color objects. – shrx Jun 18 '16 at 18:38
• [RGBColor] (reference.wolfram.com/language/ref/RGBColor.html) has an optional fourth argument for opacity. – Bob Hanlon Jun 18 '16 at 20:03