I would like to add some markers on some cities on a map (smaller or bigger depending on the values each city has)

vals={GeoVariant[Entity["Country", "Spain"], "SimplifiedArea"] -> 11.1268, 
         GeoVariant[Entity["Country", "China"], "SimplifiedArea"] -> 10.7984, 
         GeoVariant[Entity["Country", "UnitedStates"], "SimplifiedArea"] -> 
GeoRegionValuePlot[vals, GeoRange -> {{-60, 90}, {-170, 190}}]

This gives the plotenter image description here

I would like to add now a Disk with radius 3 on New York, a disk with radius 2 on Madrid and a disk with radius 5 on Bejin. Anyone can help me? Thanks


Combine plots using Show.If you search docs you can easily find many examples. Note I used GeoDisk just to show you it exists. But you could also use Disk and Epilog for example. Or GeoGraphics instead of GeoListPlot etc. - there are many ways. Also consider GeoBubbleChart.


cit = {
    GeoDisk[Entity["City", {"NewYork", "NewYork", "UnitedStates"}], 
    Quantity[300, "Kilometers"]], 
    GeoDisk[Entity["City", {"Madrid", "Madrid", "Spain"}], 
    Quantity[200, "Kilometers"]], 
    GeoDisk[Entity["City", {"Beijing", "Beijing", "China"}], 
    Quantity[500, "Kilometers"]]};

Show[pl1, pl2]

enter image description here

Here example without Show just with Epilog and regular Disk for just NYC:

GeoRegionValuePlot[vals, GeoRange -> {{-60, 90}, {-170, 190}}, 
    Epilog -> {Red, Opacity[0.5], Disk[Reverse[First[GeoPosition[
    Entity["City", {"NewYork", "NewYork", "UnitedStates"}]]]], 10]}]

enter image description here

  • $\begingroup$ Thank you very much. have a nice day $\endgroup$ – Giorgio Colangelo Mar 16 '17 at 14:01
  • $\begingroup$ one think. The circle in the second method looks in a different perspective if I use different earth projections, i.e. , GeoProjection -> "WinkelTripel". do you know how to avoid this problem? thanks $\endgroup$ – Giorgio Colangelo Mar 16 '17 at 14:15
  • 1
    $\begingroup$ @GiorgioColangelo but this is why I told you about GeoDisk? $\endgroup$ – Vitaliy Kaurov Mar 16 '17 at 15:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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