GeoStyling
✖
GeoStyling
Details and Options



- GeoStyling is a directive for GeoGraphics that applies textures and styling directives that are useful for maps.
- GeoStyling applies to Polygon, GeoDisk, FilledCurve, Triangle, DayHemisphere, NightHemisphere, and GeoVisibleRegion.
- Possible forms for mapstyle include:
-
Automatic use default styling None use no explicit styling "ContourMap" elevation data as contours "Coastlines" geo background style displaying coastlines "CountryBorders" geo background style displaying country borders Dated["CountryBorders",year] geo background style displaying historical country borders "OutlineMap" schematic region "ReliefMap" elevation data as color with shadows "Satellite" satellite imagery "SatelliteWithLabels" satellite imagery with labels "StreetMap" street map data "StreetMapLabelsOnly" street map labels only "StreetMapNoLabels" street map data omitting labels {"GeoImage",image} apply image as a texture to unprojected polygons and project {"Image",image} apply image as a texture to the projected polygons - GeoStyling[Automatic] is automatically applied by default to geo graphics and uses partial opacity with no explicitly specified color. It therefore inherits the default Graphics color behavior, meaning filled geo primitives are black in color but appear as transparent light gray when combined with their default partial transparency.
- GeoStyling[None] removes any geo styling that has been set by previous GeoStyling specifications (including any set by GeoStyling[Automatic]). Using no geo styling results in the same default styles for geo graphics as for the usual Graphics (black with no transparency).
- GeoStyling[] is equivalent to GeoStyling[None].
- GeoStyling[directive] is equivalent to GeoStyling["OutlineMap",directive].
- GeoStyling[mapstyle,directive] appends a graphics directive (or collection of individual directives inside an enclosing Directive) to the set of directives used to style a given mapstyle. All directives take effect for "OutlineMap", but only Opacity and EdgeForm take effect for other map styles.
- The most recently applied GeoStyling specification in a geo graphics expression takes precedence. For geo primitives, GeoStyling specifications (including those from Automatic styling) take precedence over explicit graphics style directives added after the currently active GeoStyling. As a result of the default styling of GeoStyling[Automatic], bare color directives take effect by default, while GeoStyling must be explicitly wrapped around Opacity in order to change the transparency of filled geo primitives.
- GeoStyling accepts most options applicable to Graphics. In addition, the following geo-specific options can be given:
-
GeoStylingImageFunction None image processing function to apply GeoZoomLevel Automatic level of detail for styled geo graphics - GeoStyling["ContourMap",opts] accepts the same options as ListContourPlot.
- GeoStyling["ReliefMap",opts] accepts the same options as ReliefPlot.
Examples
open allclose allBasic Examples (13)Summary of the most common use cases

https://wolfram.com/xid/0en0cz1no-bjd47t

Specify the Automatic geo style explicitly:

https://wolfram.com/xid/0en0cz1no-kpe5g3

Use default Graphics styles (no geo styling):

https://wolfram.com/xid/0en0cz1no-2qm5a0


https://wolfram.com/xid/0en0cz1no-4fbalq

Specify a named color and suppress geo background:

https://wolfram.com/xid/0en0cz1no-4ix75a


https://wolfram.com/xid/0en0cz1no-tlp0vl

Use a relief map as a GeoBackground:

https://wolfram.com/xid/0en0cz1no-52iy23


https://wolfram.com/xid/0en0cz1no-4qj0pt


https://wolfram.com/xid/0en0cz1no-3eal4p

World map with country borders:

https://wolfram.com/xid/0en0cz1no-fugu7o

Map of Europe with country borders in year 1900:

https://wolfram.com/xid/0en0cz1no-9rrbk4

Specify different geo styles for different regions:

https://wolfram.com/xid/0en0cz1no-cbjtx5

https://wolfram.com/xid/0en0cz1no-q80dsu

Specify different geo styles for different regions with partial overlaps:

https://wolfram.com/xid/0en0cz1no-llevaw

Style the daylight portion of the Earth in partially transparent yellow:

https://wolfram.com/xid/0en0cz1no-doovq5


https://wolfram.com/xid/0en0cz1no-t4rnsf

Scope (25)Survey of the scope of standard use cases
"Coastlines" (1)
"ContourMap" (2)
Specify a contour map of elevations over a country:

https://wolfram.com/xid/0en0cz1no-p67mxl

Adjust contours and add contour styling by passing ListContourPlot options:

https://wolfram.com/xid/0en0cz1no-7pusxe

Display elevation contours of Spain using the colors of its national flag:

https://wolfram.com/xid/0en0cz1no-pce9fd


https://wolfram.com/xid/0en0cz1no-0nfwc7

https://wolfram.com/xid/0en0cz1no-7hb1l5

"CountryBorders" (2)
Mercator map of the world, displaying country borders:

https://wolfram.com/xid/0en0cz1no-e88ckw

Select different graphical directives:

https://wolfram.com/xid/0en0cz1no-w2khar

Show country borders in year 1800 for the region corresponding to modern Italy:

https://wolfram.com/xid/0en0cz1no-m3rdaq

"GeoImage" (1)
"Image" (4)
The Stars and Stripes placed on the US:

https://wolfram.com/xid/0en0cz1no-g3kad3

Place images of some famous mathematicians within the present borders of their countries of origin:

https://wolfram.com/xid/0en0cz1no-20flr3

https://wolfram.com/xid/0en0cz1no-iio4d1
Construct image/country pairs:

https://wolfram.com/xid/0en0cz1no-24xbxp

https://wolfram.com/xid/0en0cz1no-pwg8pn

Load an image of a flower from ExampleData:

https://wolfram.com/xid/0en0cz1no-sjaigp

Use as a texture map for the Netherlands:

https://wolfram.com/xid/0en0cz1no-6yoawa


https://wolfram.com/xid/0en0cz1no-yctrsi

https://wolfram.com/xid/0en0cz1no-7o7zxs


https://wolfram.com/xid/0en0cz1no-iep98p

"OutlineMap" (5)
Use an outline map for Africa:

https://wolfram.com/xid/0en0cz1no-894qot

Use an outline map for Africa with a geo background style:

https://wolfram.com/xid/0en0cz1no-yybyew

Specify a solid-fill color together with an edge color and style:

https://wolfram.com/xid/0en0cz1no-1g118q

Specify a partially transparent fill color together with an edge color and style:

https://wolfram.com/xid/0en0cz1no-zcujey

Directives in a geo style take precedence over bare directives for geo primitives:

https://wolfram.com/xid/0en0cz1no-3evbpm

Style the daylight portion of the Earth in partially transparent yellow on top of a relief map background:

https://wolfram.com/xid/0en0cz1no-y0kmen

This is equivalent to simply giving yellow as a color directive:

https://wolfram.com/xid/0en0cz1no-5fd0a0

"ReliefMap" (3)

https://wolfram.com/xid/0en0cz1no-cehbx6

Use a relief map for the US with a contour map geo background style:

https://wolfram.com/xid/0en0cz1no-gipe9u

Show the region visible from the top of the Washington Monument using a relief map:

https://wolfram.com/xid/0en0cz1no-1k801f

Relief map of the area around the Copernicus crater on the Moon:

https://wolfram.com/xid/0en0cz1no-wesd80

"Satellite" (2)
"StreetMap" (3)
Use a street map style for Virginia:

https://wolfram.com/xid/0en0cz1no-3cqir2

Street maps can have styled edges:

https://wolfram.com/xid/0en0cz1no-vjwzf9


https://wolfram.com/xid/0en0cz1no-e5en3s


https://wolfram.com/xid/0en0cz1no-tyhr4p

Show the region visible from the top of the Washington Monument using a street map:

https://wolfram.com/xid/0en0cz1no-fwufs4

Image processing effects can be applied using GeoStylingImageFunction:

https://wolfram.com/xid/0en0cz1no-f4303a

"StreetMapLabelsOnly" (1)
"StreetMapNoLabels" (1)
Show Virginia with a boundary and a street map with no labels:

https://wolfram.com/xid/0en0cz1no-1c7y11

Show the region visible from the top of the Washington Monument using a street map with no labels:

https://wolfram.com/xid/0en0cz1no-8x5p4x


https://wolfram.com/xid/0en0cz1no-p8saoi

Options (13)Common values & functionality for each option
ColorFunction (2)
ColorFunctionScaling (1)
ContourLabels (1)

https://wolfram.com/xid/0en0cz1no-ir6tvr

Contours (1)
ContourShading (1)
ContourStyle (1)
Specify the ContourStyle for the "ContourMap" style:

https://wolfram.com/xid/0en0cz1no-biqs47


https://wolfram.com/xid/0en0cz1no-g58p8x

GeoStylingImageFunction (5)
Add salt-and-pepper noise to a map of Austria:

https://wolfram.com/xid/0en0cz1no-mmtbsj

Sharpen a circular region near the Taj Mahal and blur the region outside it:

https://wolfram.com/xid/0en0cz1no-bd6h87

Add a tapered "swoosh" map effect around Paris:

https://wolfram.com/xid/0en0cz1no-k3uq8s

https://wolfram.com/xid/0en0cz1no-bruag2

Use the flag of a country as an image effect:

https://wolfram.com/xid/0en0cz1no-6k9he3

Place copies of the flag on the country and blur surrounding countries:

https://wolfram.com/xid/0en0cz1no-qj3a4e

Apply various image effects to neighboring countries:

https://wolfram.com/xid/0en0cz1no-m6bjry

GeoZoomLevel (1)
Set the GeoZoomLevel:

https://wolfram.com/xid/0en0cz1no-20t4yy


https://wolfram.com/xid/0en0cz1no-6op033

Show a street map of Paris around a famous structure at a number of zoom levels:

https://wolfram.com/xid/0en0cz1no-lu5y6v

Properties & Relations (6)Properties of the function, and connections to other functions
Color primitives apply directly to non-filled primitives but take effect together with the most recent geo styling (partial opacity by default) for filled geo primitives, resulting in a pink Michigan with a red arrow:

https://wolfram.com/xid/0en0cz1no-5g8x51

Specifying opacity has no effect here since it is trumped by the opacity set implicitly by GeoStyling[Automatic]:

https://wolfram.com/xid/0en0cz1no-ibtxw2

Placing the opacity inside a geo styling causes it to take effect, overwriting the default GeoStyling[Automatic] setting:

https://wolfram.com/xid/0en0cz1no-7cigs0

For geo objects, the default geo style (partial opacity) is automatically applied together with the bare color directives that follow it:

https://wolfram.com/xid/0en0cz1no-103kn4

Make Switzerland a solid color by removing the default geo style:

https://wolfram.com/xid/0en0cz1no-fiw22o

Make Switzerland a solid color using the "OutlineMap" geo style with directive Red:

https://wolfram.com/xid/0en0cz1no-lxxhpw

Use a shorthand geo style specification equivalent to the above:

https://wolfram.com/xid/0en0cz1no-83nn6b

Move France and Switzerland after the geo styling specification turns both red (since the bare color directive in front of France is trumped by the geo styling color specification):

https://wolfram.com/xid/0en0cz1no-0ocs05

Make France blue and Switzerland red:

https://wolfram.com/xid/0en0cz1no-xwjgqa

Do the same by turning off default styling so bare color directives can take effect:

https://wolfram.com/xid/0en0cz1no-7z42gr

Geo styles apply to (geo) polygons, triangles, filled curves, and geo disks, but not to ordinary 2D and 3D graphics primitives:

https://wolfram.com/xid/0en0cz1no-cp13rw

The coordinate values of the map correspond to latitude and longitude for the "Equirectangular" projection:

https://wolfram.com/xid/0en0cz1no-yakx1a

Map coordinates do not correspond to latitude and longitude for other projections:

https://wolfram.com/xid/0en0cz1no-hu5q8s

Use GeoPosition to draw geo lines on any map projection:

https://wolfram.com/xid/0en0cz1no-8lpsfv

Using "ReliefMap" as a map style gives a projected version of the requested region:

https://wolfram.com/xid/0en0cz1no-xdp3jb

Using ReliefPlot of GeoElevationData directly gives an unprojected, differently styled version with no clipping:

https://wolfram.com/xid/0en0cz1no-2cjmz0

Drape an image of a flower over the world:

https://wolfram.com/xid/0en0cz1no-yn97ku

This works because "World" is considered an entity:

https://wolfram.com/xid/0en0cz1no-htm8fl

https://wolfram.com/xid/0en0cz1no-3opapu

Entity classes are taken as a collection of polygons, resulting in many flowers:

https://wolfram.com/xid/0en0cz1no-43ktkb

https://wolfram.com/xid/0en0cz1no-bdsf44

GeoGroup effectively joins the polygons:

https://wolfram.com/xid/0en0cz1no-hctx3m

Wolfram Research (2014), GeoStyling, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoStyling.html (updated 2017).
Text
Wolfram Research (2014), GeoStyling, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoStyling.html (updated 2017).
Wolfram Research (2014), GeoStyling, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoStyling.html (updated 2017).
CMS
Wolfram Language. 2014. "GeoStyling." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/GeoStyling.html.
Wolfram Language. 2014. "GeoStyling." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/GeoStyling.html.
APA
Wolfram Language. (2014). GeoStyling. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoStyling.html
Wolfram Language. (2014). GeoStyling. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoStyling.html
BibTeX
@misc{reference.wolfram_2025_geostyling, author="Wolfram Research", title="{GeoStyling}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/GeoStyling.html}", note=[Accessed: 19-June-2025
]}
BibLaTeX
@online{reference.wolfram_2025_geostyling, organization={Wolfram Research}, title={GeoStyling}, year={2017}, url={https://reference.wolfram.com/language/ref/GeoStyling.html}, note=[Accessed: 19-June-2025
]}