Message Boards Message Boards

Make GeoLabels work on GeoPath-GeoGraphics?

I want to draw a path between 2 cities and label them. Tried these 2 syntaxes but its not working. Any heads up?

enter image description here

POSTED BY: Manjunath Babu
2 Replies

When i tried to copy paste the code that includes Ctrl+= text boxes. it generated many lines of code. So, to keep the question clear, i took a screenshot of the command.

POSTED BY: Manjunath Babu

Could you also please post code, not only images, next time. It is very easy. And BTW if something an option red it is not applicable.

(GeoListPlot[{#1[[1]], #1[[2]], GeoPath[#1]}, GeoLabels -> Automatic] & )[
  {Entity["City", {"Paris", "IleDeFrance", "France"}], 
   Entity["City", {"NewYork", "NewYork", "UnitedStates"}]}]

enter image description here

POSTED BY: Vitaliy Kaurov
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