Skip to main content
edited body
Source Link
kglr
  • 400.5k
  • 18
  • 488
  • 929
entity = RandomEntity["Country"]

enter image description here

cities = CityData[{Large, CanonicalName @ entity}]

enter image description here

Manipulate[DynamicGeoGraphics[{GeoMarker[cities], GeoPath[{x, y}, "Geodesic"]}], 
 {{x, First @ cities}, Thread[cities -> CommonName /@ cities], ControlType -> PopupMenu},
 {{y, Last @ cities}, Thread[cities -> CommonName /@ cities], ControlType -> PopupMenu}]

enter image description hereenter image description here

entity = RandomEntity["Country"]

enter image description here

cities = CityData[{Large, CanonicalName @ entity}]

enter image description here

Manipulate[DynamicGeoGraphics[{GeoMarker[cities], GeoPath[{x, y}, "Geodesic"]}], 
 {{x, First @ cities}, Thread[cities -> CommonName /@ cities], ControlType -> PopupMenu},
 {{y, Last @ cities}, Thread[cities -> CommonName /@ cities], ControlType -> PopupMenu}]

enter image description here

entity = RandomEntity["Country"]

enter image description here

cities = CityData[{Large, CanonicalName @ entity}]

enter image description here

Manipulate[DynamicGeoGraphics[{GeoMarker[cities], GeoPath[{x, y}, "Geodesic"]}],
{{x, First @ cities}, Thread[cities -> CommonName /@ cities], ControlType -> PopupMenu},
{{y, Last @ cities}, Thread[cities -> CommonName /@ cities], ControlType -> PopupMenu}]

enter image description here

Source Link
kglr
  • 400.5k
  • 18
  • 488
  • 929

entity = RandomEntity["Country"]

enter image description here

cities = CityData[{Large, CanonicalName @ entity}]

enter image description here

Manipulate[DynamicGeoGraphics[{GeoMarker[cities], GeoPath[{x, y}, "Geodesic"]}], 
 {{x, First @ cities}, Thread[cities -> CommonName /@ cities], ControlType -> PopupMenu},
 {{y, Last @ cities}, Thread[cities -> CommonName /@ cities], ControlType -> PopupMenu}]

enter image description here