is an option for GeoGraphics that specifies how parallels and meridians should be rendered.
GeoGridLinesStyle
is an option for GeoGraphics that specifies how parallels and meridians should be rendered.
Details
- GeoGridLinesStyle->style specifies that all grid lines should be rendered by default with the specified style.
- GeoGridLinesStyle->{latstyle,lonstyle} specifies that latitude and longitude grid lines should use different styles.
- Styles can be specified using graphics directives such as Thick, Red, and Dashed, as well as Thickness, RGBColor, Dashing, and combinations given by Directive.
- Style specifications can refer to styles using style names from current stylesheets.
- Any outside styles not explicitly overridden by settings in GeoGridLinesStyle will still be used.
- Explicit styles specified in the settings for GeoGridLines can override styles specified in GeoGridLinesStyle.
- AbsoluteOptions can be used to extract explicit styles that were used for GeoGridLines with Automatic settings.
Examples
open all close allBasic Examples (2)
Show parallels and meridians with the default style:
GeoGraphics[{GeoStyling["Satellite"], Polygon[Entity["Country", "UnitedStates"]]}, GeoProjection -> "Mercator", GeoGridLines -> Automatic]Specify the overall geo grid line style:
GeoGraphics[{Polygon[Entity["Country", "UnitedStates"]]}, GeoProjection -> "Albers", GeoGridLines -> Automatic, GeoGridLinesStyle -> Opacity[0.5, Orange]]GeoGraphics[{EntityClass["Country", "Africa"]}, GeoGridLines -> Automatic, GeoGridLinesStyle -> Dotted, GeoBackground -> GeoStyling["ReliefMap"]]Scope (1)
Properties & Relations (2)
Individually styled geo grid lines can be used with GeoGridLinesStyle and have higher priority:
GeoGraphics[{Polygon[Entity["Country", "UnitedStates"]]}, GeoGridLines -> {Automatic, {#, Hue[-# / 50]}& /@ Range[-140, -50, 5]}, GeoGridLinesStyle -> Directive[Blue, Thick]]Use AbsoluteOptions to get the default grid line style:
GeoGraphics[{Polygon[Entity["Country", "UnitedStates"]]}, GeoGridLines -> Automatic]AbsoluteOptions[%, GeoGridLinesStyle]InputForm[%]Related Guides
History
Text
Wolfram Research (2014), GeoGridLinesStyle, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoGridLinesStyle.html.
CMS
Wolfram Language. 2014. "GeoGridLinesStyle." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GeoGridLinesStyle.html.
APA
Wolfram Language. (2014). GeoGridLinesStyle. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoGridLinesStyle.html
BibTeX
@misc{reference.wolfram_2026_geogridlinesstyle, author="Wolfram Research", title="{GeoGridLinesStyle}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/GeoGridLinesStyle.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_geogridlinesstyle, organization={Wolfram Research}, title={GeoGridLinesStyle}, year={2014}, url={https://reference.wolfram.com/language/ref/GeoGridLinesStyle.html}, note=[Accessed: 13-June-2026]}