1
$\begingroup$

a bug in v12.3 and v12.3.1


I'm trying to apply some styling to GeoPositions

GeoListPlot[{{Style[
    GeoPosition[{RandomReal[{0, 90}], RandomReal[{-180, 180}]}], 
    ColorData[98, 3]]}, {Style[
    GeoPosition[{RandomReal[{0, 90}], RandomReal[{-180, 180}]}], 
    Red]}}]

and it seems no effect

enter image description here

So how to apply custom styling to the two points?

I'm using v12.3.1.

$\endgroup$
2
  • $\begingroup$ To me, this looks like a bug in the 12.3 (or lower). For example, none of the two solutions from this question work in version 12.3.0. $\endgroup$
    – Domen
    Jul 7, 2021 at 18:54
  • $\begingroup$ thanks @Domen for the testing. I was suspecting so as well. $\endgroup$
    – sunt05
    Jul 7, 2021 at 18:58

1 Answer 1

2
$\begingroup$

This looks like a bug, mentioned in another Wolfram community post as well.

The simplest workaround, I think, is to use two separate GeoListPlot:

p1 = GeoPosition[{RandomReal[{0, 90}], RandomReal[{-180, 180}]}];
p2 = GeoPosition[{RandomReal[{0, 90}], RandomReal[{-180, 180}]}];

Show[
 GeoListPlot[{p1}, PlotStyle -> {ColorData[98, 3]}], 
 GeoListPlot[{p2}, PlotStyle -> {Red}]
]

GeoListPlot

$\endgroup$
2
  • $\begingroup$ Thanks for the workaround! Seems the only workaround for now. slightly disappointed by this bug. $\endgroup$
    – sunt05
    Jul 7, 2021 at 19:14
  • $\begingroup$ I have tried several ways of providing different styles, but in every case it looked like GeoListPlot didn't traverse the style array, but instead used only the last style from the list. $\endgroup$
    – Domen
    Jul 7, 2021 at 19:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.