is an option for specifying an image effect to apply to a geo style.
GeoStylingImageFunction
is an option for specifying an image effect to apply to a geo style.
Details
- GeoStylingImageFunction is an option for GeoStyling.
- GeoStylingImageFunction is specified as a function to be applied to the underlying image or texture.
Examples
open all close allBasic Examples (2)
Sharpen a circular region near the Taj Mahal and blur the region outside it:
GeoGraphics[{GeoStyling["StreetMap", EdgeForm[Red], GeoStylingImageFunction -> Sharpen], GeoDisk[Entity["Building", "TajMahal"], Quantity[0.5, "Miles"]]}, GeoBackground -> GeoStyling["StreetMap", GeoStylingImageFunction -> (Blur[#1, 25]&)], GeoRangePadding -> Quantity[0.2, "Miles"]]Show the geo background of a geo histogram in gray levels:
GeoHistogram[GeoPosition[«1»], GeoBackground -> GeoStyling["StreetMap", GeoStylingImageFunction -> (ColorConvert[#, GrayLevel]&)]]Applications (2)
Use the flag of a country as an image effect:
CountryData["DemocraticRepublicCongo", "Flag"]Place copies of the flag on the country and blur surrounding countries:
With[{c = Entity["Country", "DemocraticRepublicCongo"]}, GeoGraphics[{{GeoStyling["StreetMap", GeoStylingImageFunction -> (Blur[#, 4]&)], Polygon[#]}& /@ CountryData[c, "BorderingCountries"], GeoStyling["StreetMap", GeoZoomLevel -> 5, GeoStylingImageFunction -> (Sharpen@ImageCompose[#, ImageAssemble[Table[SetAlphaChannel[Image[CountryData[c, "Flag"]], 0.2], {5}, {4}]]]&)], Polygon[c]}]]Apply various image processing effects to neighboring countries:
GeoGraphics[{
GeoStyling["ReliefMap", GeoStylingImageFunction -> ColorNegate], Polygon[Entity["Country", "Austria"]], Polygon[Entity["Country", "Switzerland"]],
GeoStyling["StreetMap", GeoStylingImageFunction -> (ImageEffect[#1, "Charcoal"]&)], Polygon[Entity["Country", "France"]],
GeoStyling["ReliefMap", GeoStylingImageFunction -> ({0, 0} /. StationaryWaveletTransform[ColorCombine[Take[ColorSeparate[#1], 3][[{2, 3, 1}]], "RGB"], Automatic, 2][{0, 0}, "Image"]&)], Polygon[Entity["Country", "Germany"]]
}]See Also
Tech Notes
Related Guides
History
Text
Wolfram Research (2014), GeoStylingImageFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoStylingImageFunction.html.
CMS
Wolfram Language. 2014. "GeoStylingImageFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GeoStylingImageFunction.html.
APA
Wolfram Language. (2014). GeoStylingImageFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoStylingImageFunction.html
BibTeX
@misc{reference.wolfram_2026_geostylingimagefunction, author="Wolfram Research", title="{GeoStylingImageFunction}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/GeoStylingImageFunction.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_geostylingimagefunction, organization={Wolfram Research}, title={GeoStylingImageFunction}, year={2014}, url={https://reference.wolfram.com/language/ref/GeoStylingImageFunction.html}, note=[Accessed: 12-June-2026]}