When a location is too small, GeoListPlot marks that location using a point on the map. For example, GeoListPlot[{Entity["Country", "Ireland"], Entity["City", {"Atlanta", "Georgia", "UnitedStates"}], Entity["City", {"Savannah", "Georgia", "UnitedStates"}]}]

results in the attached image. I have a list of lots of countries and locations, and I want to disable plotting of smaller locations (e.g., the red point in attached example). How can I go about doing this without manually removing said small locations from the list?

  • 1
    $\begingroup$ What do you mean by "manual"? Is this OK? locations = {Entity["Country", "Ireland"], Entity["City", {"Atlanta", "Georgia", "UnitedStates"}], Entity["City", {"Savannah", "Georgia", "UnitedStates"}]}; GeoListPlot[Select[locations, FreeQ[#, "City"] &]] $\endgroup$
    – Bob Hanlon
    Commented Mar 21, 2021 at 23:36
  • $\begingroup$ @BobHanlon This works great if there are only cities in the list, but there are also small countries in the list that are shown as dots. For example, the code does not work with Vatican City. locations = {Entity["Country", "Ireland"], Entity["Country", "VaticanCity"]}; GeoListPlot[ Select[locations, FreeQ[#, "City"] &]] $\endgroup$
    – sepehr78
    Commented Mar 22, 2021 at 6:30
  • 3
    $\begingroup$ You can use a size threshold, e.g., GeoListPlot[Select[locations, FreeQ[#, "City"] && CountryData[#, "Area"] > Quantity[10^3, "Kilometers"^2] &]] $\endgroup$
    – Bob Hanlon
    Commented Mar 22, 2021 at 7:10
  • $\begingroup$ @BobHanlon the size threshold idea works great with tuning, thanks! $\endgroup$
    – sepehr78
    Commented Mar 22, 2021 at 8:47

1 Answer 1


The red points are added with Inset. If gp is the original plot, the following removes the points.

gp /. Inset[__] -> Nothing

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.