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$
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$
  • $\begingroup$ thanks, it was very useful! $\endgroup$ – Fabio Oct 10 '18 at 18:41

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.