is an option for GeoGraphics that specifies the coordinates of the point that should appear at the geographic center of the final map.
GeoCenter
is an option for GeoGraphics that specifies the coordinates of the point that should appear at the geographic center of the final map.
Details
- An explicit GeoRange specification takes precedence over GeoCenter.
- GeoCenter can be specified as GeoPosition[{lat,lon}] or Entity[…]. In the latter case, the "Position" property of the specified entity is used.
Examples
open all close allBasic Examples (4)
Plot a world map centered at a point in the Pacific Ocean:
GeoGraphics[{Red, PointSize[Large], Point[GeoPosition[{0, -180}]]}, GeoRange -> "World", GeoGridLines -> Automatic, GeoCenter -> GeoPosition[{0, -180}]]Show a point on a map centered on London, UK:
GeoGraphics[{Red, PointSize[Large], Point[GeoPosition[{50, 5}]]}, GeoCenter -> Entity["City", {"London", "GreaterLondon", "UnitedKingdom"}], GeoBackground -> "StreetMapVectorLabels"]GeoGraphics[Polygon /@ {Entity["Country", "Spain"], Entity["Country", "Germany"]}, GeoCenter -> Entity["Country", "UnitedKingdom"], GeoBackground -> "Plain"]Center the map on a famous structure:
With[{loc = Entity["Building", "NotreDameCathedral::95fcw"]}, GeoGraphics[{Red, PointSize[Large], Point[loc]}, GeoCenter -> loc, GeoRange -> Quantity[100, "Meters"]]]Scope (2)
Center a map at given coordinates:
GeoGraphics[GeoRange -> "World", GeoCenter -> GeoPosition[{-30, -80}], GeoProjection -> "Orthographic", GeoGridLines -> Automatic]Center a map at a given geo entity:
GeoGraphics[GeoRange -> "World", GeoCenter -> Entity["City", {"Tokyo", "Tokyo", "Japan"}], GeoProjection -> "LambertAzimuthal", GeoGridLines -> Automatic]Properties & Relations (2)
An explicit geo range (other than All or "World") takes precedence over a geo center:
GeoGraphics[Polygon[EntityClass["Country", "EuropeSovereign"]], GeoCenter -> Entity["Country", "France"], GeoRange -> Entity["Country", "Spain"]]To use a geo center, remove the geo range specification:
GeoGraphics[Polygon[EntityClass["Country", "EuropeSovereign"]], GeoCenter -> Entity["Country", "France"], GeoRange -> Automatic]The latitude of the specified geo center is ignored for cylindrical projections, which are always aligned with the poles:
GeoGraphics[GeoRange -> "World", GeoCenter -> {#, 0}, GeoProjection -> "Equirectangular"]& /@ {0, 45}The center longitude takes effect for cylindrical projections:
GeoGraphics[GeoRange -> "World", GeoCenter -> {0, #}, GeoProjection -> "Equirectangular" ]& /@ {0, -100}The center latitude and longitude take effect for non-cylindrical projections:
GeoGraphics[GeoRange -> "World", GeoCenter -> #, GeoProjection -> "Orthographic" ]& /@ {{0, 0}, {45, -100}}GeoGraphics[GeoRange -> "World", GeoCenter -> #, GeoProjection -> "LambertAzimuthal" ]& /@ {{0, 0}, {45, -100}}Possible Issues (1)
Attempting to use an entity class as a geo center ignores the specification and gives a message:
With[{loc = EntityClass["Building", "AcropolisAthens"]}, GeoGraphics[{Red, PointSize[Large], Point[loc]}, GeoCenter -> loc, GeoRange -> Quantity[100, "Meters"]]]GeoGraphics[{}, GeoRange -> "World", GeoCenter -> EntityClass["Country", "Europe"]]See Also
Tech Notes
Related Guides
History
Text
Wolfram Research (2014), GeoCenter, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoCenter.html.
CMS
Wolfram Language. 2014. "GeoCenter." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GeoCenter.html.
APA
Wolfram Language. (2014). GeoCenter. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoCenter.html
BibTeX
@misc{reference.wolfram_2026_geocenter, author="Wolfram Research", title="{GeoCenter}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/GeoCenter.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_geocenter, organization={Wolfram Research}, title={GeoCenter}, year={2014}, url={https://reference.wolfram.com/language/ref/GeoCenter.html}, note=[Accessed: 13-June-2026]}