My goal here is to be able to display the coordinates of the center of a DynamicGeoGraphic
which updates as the map is dragged (without right clicking on the map to get coordinates).
One method I came up with to do this was to read the GeoRange
of the map, then take the average of the latitudes and longitudes in the GeoRange
, but the GeoRange
doesn't update dynamically as the map is dragged:
Column[
{map = DynamicGeoGraphics[GeoPosition[{40.097191, -88.245990}]],
Dynamic[Options[map, GeoRange]]}]
I've provided a specific GeoPosition
here just for the sake of clarity. I have two questions:
Is there a better way to access information about the map directly than what I've done here?
Why won't the
GeoRange
change as the map is moved?
Any other ideas for how to accomplish this are also welcome.