I have a GeoGraphics
where I am using Scaled
in PointSize
to include size information. I want to Inset
a PointLegend
that describes the sizes of the points.
Outside of GeoGraphics
I can do this by specifying the sizes directly using the LegendMarkerSize
option. For example:
PointLegend[
ConstantArray[Black, 4], {"Size1", "Size2", "Size3", "Size4"},
LegendLabel -> "Info",
LegendMarkerSize -> Range[12, 20, 2],
LegendFunction -> "Panel"]
However, when I try this method with Scaled
and Inset
the points in the legend do not scale to the expected size.
GeoGraphics[
MapIndexed[{PointSize[Scaled[0.02 First@#2]],
Point@GeoPosition@#1} &]@({35, -95} + {#, -#} & /@ Range[.1, .4, .1]),
Epilog -> {
Inset[
PointLegend[
ConstantArray[Black, 4], {"Size1", "Size2", "Size3", "Size4"},
LegendLabel -> "Info",
LegendMarkerSize -> Scaled /@ Range[.02, .08, .02],
LegendFunction -> "Panel"]]}
]
How do I get the legend to display points at the correct scaled sizes?