({{, (RefLink[GeoRangePadding, paclet:ref/GeoRangePadding]) 
is an option for (RefLink[GeoGraphics, paclet:ref/GeoGraphics]) that specifies what padding to use when extending beyond the original ranges of latitude and longitude.}})

OpenersNotesSection(Spacer1)Details

The settings can be of the following forms:

For each direction the following forms can be used:

(RefLink[GeoRangePadding, paclet:ref/GeoRangePadding])->(RefLink[Full, paclet:ref/Full]) pads to cover the whole region shown by the map's (RefLink[PlotRange, paclet:ref/PlotRange]).
(RefLink[GeoRangePadding, paclet:ref/GeoRangePadding])->{padspec,(RefLink[Full, paclet:ref/Full])} pads the geo range as specified by padspec and then adds extra padding to cover the whole region shown by the map's (RefLink[PlotRange, paclet:ref/PlotRange]).

(RefLink[GeoRangePadding, paclet:ref/GeoRangePadding]) can take (RefLink[Quantity, paclet:ref/Quantity]) angles and lengths. Angles are interpreted as directly extending the angular geo range, while lengths are used as radii for geo disks around the corners of the geo range. Raw numbers are taken to be lengths in meters.

(RefLink[GeoRangePadding, paclet:ref/GeoRangePadding]) extends (RefLink[GeoRange, paclet:ref/GeoRange]) before projection.

OpenersPrimaryExamplesSection(Spacer1)Examples  (11)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

By default, some padding is added around objects in maps:

GeoGraphics[(Entity["Australia", Entity["Country","Australia"], "Entity[\"Country\", \"Australia\"]", "country"])]

Use GeoRangePadding->None to remove padding:

GeoGraphics[(Entity["Australia", Entity["Country","Australia"], "Entity[\"Country\", \"Australia\"]", "country"]),GeoRangePadding->None]

Use GeoRangePadding->{…,(RefLink[Full, paclet:ref/Full])} to complete a rectangular map:

GeoGraphics[(Entity["Australia", Entity["Country","Australia"], "Entity[\"Country\", \"Australia\"]", "country"]),GeoRangePadding->{None,Full}]

Use 50 kilometers of padding on each side of the map:

GeoGraphics[{EdgeForm[Thin],Polygon[(Entity["Germany", Entity["Country","Germany"], "Entity[\"Country\", \"Germany\"]", "country"])]},GeoRangePadding->(QuantityUnit[50])]

Specify padding for latitude only:

GeoGraphics[{EdgeForm[Thin],Polygon[(Entity["Germany", Entity["Country","Germany"], "Entity[\"Country\", \"Germany\"]", "country"])]},GeoRangePadding->{(QuantityUnit[200]),None}]

Specify different padding on each side of the map:

GeoGraphics[{EdgeForm[Thin],Polygon[(Entity["Germany", Entity["Country","Germany"], "Entity[\"Country\", \"Germany\"]", "country"])]},GeoRangePadding->{{None,(QuantityUnit[50])},{(QuantityUnit[100]),(QuantityUnit[200])}}]

Pad inward on each side:

GeoGraphics[{EdgeForm[Thin],Polygon[(Entity["Spain", Entity["Country","Spain"], "Entity[\"Country\", \"Spain\"]", "country"])]},GeoRangePadding->(QuantityUnit[-100])]

OpenersExampleSection1(Spacer1)Scope  (4)

By default, there is automatic padding of the geo background:

GeoGraphics[GeoRange->{{40,80},{0,40}},GeoGridLines->Automatic,GeoBackground->"ReliefMap"]

Restrict to the given geo range:

GeoGraphics[
GeoRange->{{40,80},{0,40}},GeoRangePadding->None,GeoGridLines->Automatic,GeoBackground->"ReliefMap"]

Padding can be specified as a (RefLink[Quantity, paclet:ref/Quantity]) angle, extending the original latitude and longitude ranges:

GeoGraphics[(Entity["Spain", Entity["Country","Spain"], "Entity[\"Country\", \"Spain\"]", "country"]),GeoRangePadding->Quantity[5,"AngularDegrees"]]

Or as a (RefLink[Quantity, paclet:ref/Quantity]) length:

GeoGraphics[(Entity["Spain", Entity["Country","Spain"], "Entity[\"Country\", \"Spain\"]", "country"]),GeoRangePadding->Quantity[200,"Kilometers"]]

Raw numbers are interpreted as distances in meters:

GeoGraphics[(Entity["Spain", Entity["Country","Spain"], "Entity[\"Country\", \"Spain\"]", "country"]),GeoRangePadding->200000]

Specify padding as a fraction of the original geo range:

GeoGraphics[(Entity["Spain", Entity["Country","Spain"], "Entity[\"Country\", \"Spain\"]", "country"]),GeoRangePadding->Scaled[0.5]]

Explicit padding for longitude and no padding for latitude:

GeoGraphics[(Entity["Spain", Entity["Country","Spain"], "Entity[\"Country\", \"Spain\"]", "country"]),GeoRangePadding->{0,2 10^5}]

Specify different paddings on each side of the map:

GeoGraphics[(Entity["Spain", Entity["Country","Spain"], "Entity[\"Country\", \"Spain\"]", "country"]),GeoRangePadding->{{None,(QuantityUnit[100])},{-10^5,Scaled[0.3]}}]

OpenersExampleSection2(Spacer1)Properties & Relations  (3)

Construct the corners of a geo range:

GeoCorners[{{latmin_,latmax_},{lonmin_,lonmax_}}]:=GeoPosition/@{{latmin,lonmin},{latmin,lonmax},{latmax,lonmax},{latmax,lonmin},{latmin,lonmin}}

Extend to a new geo range by adding geo disks of a given radius at those corners:

pad=Quantity[1000,"Kilometers"];
corners=GeoCorners[range={{0,45},{0,50}}];
disks=GeoDisk[#,pad]&/@corners;
newcorners=GeoCorners[newrange=GeoBounds[disks]];

Visualize the original and padded geo rectangles:

GeoGraphics[{
GeoPath[corners,"Rhumb",CurveClosed->True],
disks,
Red,GeoPath[newcorners,"Rhumb",CurveClosed->True]
},GeoGridLines->True]

Compare the region covered by the original and padded geo rectangles:

GeoGraphics[GeoRange->#,GeoRangePadding->None]&/@{range,newrange}

The padded geo rectangle corresponds to the original one with given padding:

GeoGraphics[GeoRange->range,GeoRangePadding->pad]

(RefLink[GeoRangePadding, paclet:ref/GeoRangePadding]) adds padding before projection:

GeoGraphics[(Entity["Australia", Entity["Country","Australia"], "Entity[\"Country\", \"Australia\"]", "country"]),GeoRangePadding->{Scaled[0.5],Full},Frame->True]

(RefLink[PlotRangePadding, paclet:ref/PlotRangePadding]) adds padding after projection:

GeoGraphics[(Entity["Australia", Entity["Country","Australia"], "Entity[\"Country\", \"Australia\"]", "country"]),PlotRangePadding->0.5,Frame->True]

An angle specification of padding extends the angular geo ranges:

GeoGraphics[GeoRangePadding->Quantity[10,"AngularDegrees"],GeoRange->GeoBounds[(Entity["Sweden", Entity["Country","Sweden"], "Entity[\"Country\", \"Sweden\"]", "country"])],GeoProjection->"Bonne"]

It is equivalent to a direct extension of the geo range in each direction:

GeoGraphics[GeoRange->GeoBounds[(Entity["Sweden", Entity["Country","Sweden"], "Entity[\"Country\", \"Sweden\"]", "country"])]+{{-10,10},{-10,10}},GeoRangePadding->None,GeoProjection->"Bonne"]

OpenersExampleSection3(Spacer1)Possible Issues  (1)

Nonphysical paddings generate a message and use the default padding:

GeoGraphics[Polygon[(Entity["Germany", Entity["Country","Germany"], "Entity[\"Country\", \"Germany\"]", "country"])],GeoRangePadding->(QuantityUnit[(10^6)])]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[GeoRange, paclet:ref/GeoRange])  ▪  (RefLink[GeoCenter, paclet:ref/GeoCenter])  ▪  (RefLink[GeoGraphics, paclet:ref/GeoGraphics])  ▪  (RefLink[GeoBounds, paclet:ref/GeoBounds])  ▪  (RefLink[GeoBoundingBox, paclet:ref/GeoBoundingBox])  ▪  (RefLink[GeoBoundsRegion, paclet:ref/GeoBoundsRegion])  ▪  (RefLink[PlotRangePadding, paclet:ref/PlotRangePadding])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[GeoGraphics, paclet:tutorial/GeoGraphics])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Maps & Cartography, paclet:guide/MapsAndCartography])}})}})