Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lonlims and datalims were removed in https://github.com/MakieOrg/GeoMakie.jl/pull/163 #216

Merged
merged 12 commits into from
Jun 12, 2024
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,17 @@ land = GeoMakie.land()

fig = Figure(size = (1000, 1000))

ga1 = GeoAxis(fig[1, 1]; dest = "+proj=ortho", lonlims = (-90, 90), title = "Orthographic\n "); lines!(ga1, GeoMakie.coastlines())
ga1 = GeoAxis(fig[1, 1]; dest = "+proj=ortho", title = "Orthographic\n ")
ga2 = GeoAxis(fig[1, 2]; dest = "+proj=moll", title = "Image of Earth\n ")
ga3 = GeoAxis(fig[2, 1]; title = "Plotting polygons")
ga4 = GeoAxis(fig[2, 2]; dest = "+proj=natearth", title = "Auto limits") # you can plot geodata on regular axes too

surface!(ga1, fieldlons, fieldlats, field; colormap = :rainbow_bgyrm_35_85_c69_n256, shading = NoShading)
lines!(ga1, GeoMakie.coastlines())

image!(ga2, -180..180, -90..90, img; interpolate = false) # this must be included
poly!(ga3, land[50:100]; color = 1:51, colormap = (:plasma, 0.5))
poly!(ga4, land[22]); datalims!(ga4)
poly!(ga4, land[22]);

fig
```
Expand Down
6 changes: 3 additions & 3 deletions examples/specialized/osmmakie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fig = Figure()
ga = GeoAxis(fig[1, 1]; dest="+proj=eqearth +lon_0=25")

osmplot!(ga, osm)
datalims!(ga)

fig

download_osm_buildings(:bbox;
Expand All @@ -45,9 +45,9 @@ buildings = buildings_from_file("london_buildings.osm");
# plot London map with buildings

fig = Figure();
ga = GeoAxis(fig[1, 1]; dest="+proj=ortho +lon_0=0 +lat_0=51.5", lonlims = (0, 1), latlims=(50, 51))
ga = GeoAxis(fig[1, 1]; dest="+proj=ortho +lon_0=0 +lat_0=51.5", limits = ((0, 1), (50, 51)) )
plot = osmplot!(ga, osm; buildings)
datalims!(ga)

fig
#
# make cover image #jl
Expand Down
2 changes: 1 addition & 1 deletion src/GeoMakie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export Proj

export FileIO

export GeoAxis, datalims, datalims!, automatic
export GeoAxis, automatic

function __init__()
@eval Makie.MakieCore begin
Expand Down
Loading