2
$\begingroup$

how to place Inset (or custom GeoLabels) in GeoGraphics? I've tried this

pos = FindGeoLocation["Adelaide, Australia"]
geo = GeoGraphics[
   GeoDisk[pos, 5000]
   ];
Show[
 geo,
 Epilog -> {Inset["Place", pos, BaseStyle -> {FontSize -> 20}]}
 ]

but it is showing nothing but the map and the disk.

Thanks, F

$\endgroup$

1 Answer 1

3
$\begingroup$
GeoGraphics[{GeoDisk[pos, 5000],Inset[Text[Style["Place", 20]], pos]}]

enter image description here

Alternatively,

GeoGraphics[{GeoDisk[pos, 5000], Text[Style["Place", 20], pos]}]

same picture

And slight modification of OP's code:

Show[
  geo,
  Epilog -> {Inset["Place", 
    GeoGridPosition[GeoPosition[pos], "Mercator"][[1]], 
    BaseStyle -> {FontSize -> 20}]}
  ]

same picture

$\endgroup$
1
  • $\begingroup$ thanks, it was very useful! $\endgroup$
    – Fabio
    Commented Oct 10, 2018 at 18:41

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.