Message Boards Message Boards

How to control PointSize in GeoListPlot?

I marked two groups very close points on GeoListPlot and hoping to control PointSize to avoid overlap. Should I how to do it?

a={{24.9954,121.304},{25.0603,121.202},{24.9528,121.204},{24.9528,121.204},{24.8639,121.216},{24.9001,121.039},{24.9001,121.039},{24.7406,121.089},{24.8056,120.972},{24.697,120.899},{24.5653,120.82},{24.9533,121.222},{25.0355,121.083},{24.9868,121.309}};
b={{24.9001,121.039},{24.8056,120.972},{24.9528,121.204},{24.9948,121.32},{24.9533,121.222},{25.0603,121.202},{24.697,120.899},{24.5653,120.82},{25.0355,121.083},{24.8639,121.216},{24.7406,121.089}};
GeoListPlot[{GeoPosition@a,GeoPosition@b},PlotLegends->Placed[{"A","B"},Bottom],PlotStyle->PointSize[0.01]]
POSTED BY: Tsai Ming-Chou
3 Replies

Thanks Emmanuel & Rohit. These two methods are very suitable for me. I have never considered these methods ~~ It is great!!

POSTED BY: Tsai Ming-Chou
Posted 3 years ago

Hi Ming-Chou,

Many points overlap exactly so changing point size is not going to help.

Complement[a, b]
(* {{24.9868, 121.309}, {24.9954, 121.304}} *)

Complement[b, a]
(* {{24.9948, 121.32}} *)

If the points are close then maybe DynamicGeoGraphics will work. The user can pan and zoom to see the close points.

DynamicGeoGraphics[{PointSize[0.01], Red, Point@GeoPosition@a, Blue, Point@GeoPosition@b},
 GeoZoomLevel -> 11]

enter image description here

POSTED BY: Rohit Namjoshi

Hi,

The default PlotMarkers in GeoListPlot are not really Points, they are Insets. So you can make custom PlotMarkers like:

GeoListPlot[{GeoPosition@a, GeoPosition@b}, 
 PlotLegends -> Placed[{"A", "B"}, Bottom], 
 PlotMarkers -> Graphics[{PointSize[.06], Point[{0, 0}]}]]
POSTED BY: Emmanuel Garces
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract