Choose one country or Chilean region
Draw independently installed national outlines across continents and a single Chilean region without loading other maps.
// Requires the matching global-map-enabled native development runtime.
// Copy/install only the packs used by the cells you run. No automatic downloads.
// The complete example uses seven independent packs; any chart works alone.
// Values are synthetic teaching data, not a national or regional statistic.
import aner.plot
// Only chile.region.rm.anermap is required by this chart.
// One Chilean region; no country or world geometry is loaded.
plot.map("chile.region.rm", keys: List("CL-RM"), values: List(12.0))
.focus("CL-RM").projection("lambert_azimuthal_equal_area")
.size(width: 880, height: 580)
.title("Metropolitana de Santiago: one selected map pack")
.caption("Synthetic index; generalized Natural Earth 2022 snapshot; chile.region.rm.")
.show()
// Only country.chl.anermap is required by this chart.
// National outline; distinct from the continental administrative-region pack.
plot.map("country.chl", keys: List("CHL"), values: List(13.0))
.focus("CHL").projection("auto")
.size(width: 880, height: 580)
.title("Chile: one selected map pack")
.caption("Synthetic index; generalized Natural Earth 2022 snapshot; country.chl.")
.show()
// Only country.fra.anermap is required by this chart.
// Full national outline; view metropolitan France, retaining remote source parts in the chart.
plot.map("country.fra", keys: List("FRA"), values: List(14.0))
.focus("FRA").extent(west: -5.5, south: 41.0, east: 10.0, north: 51.8).projection("auto")
.size(width: 880, height: 580)
.title("France: metropolitan view, one selected map pack")
.caption("Synthetic index; generalized Natural Earth 2022 snapshot; country.fra.")
.show()
// Only country.jpn.anermap is required by this chart.
// National outline; no prefecture or street geometry.
plot.map("country.jpn", keys: List("JPN"), values: List(15.0))
.focus("JPN").projection("auto")
.size(width: 880, height: 580)
.title("Japan: one selected map pack")
.caption("Synthetic index; generalized Natural Earth 2022 snapshot; country.jpn.")
.show()
// Only country.ken.anermap is required by this chart.
// National outline; no county geometry.
plot.map("country.ken", keys: List("KEN"), values: List(16.0))
.focus("KEN").projection("auto")
.size(width: 880, height: 580)
.title("Kenya: one selected map pack")
.caption("Synthetic index; generalized Natural Earth 2022 snapshot; country.ken.")
.show()
// Only country.aus.anermap is required by this chart.
// National outline; no state or territory subdivision geometry.
plot.map("country.aus", keys: List("AUS"), values: List(17.0))
.focus("AUS").projection("auto")
.size(width: 880, height: 580)
.title("Australia: one selected map pack")
.caption("Synthetic index; generalized Natural Earth 2022 snapshot; country.aus.")
.show()
// Only country.gtm.anermap is required by this chart.
// National outline; no department geometry.
plot.map("country.gtm", keys: List("GTM"), values: List(18.0))
.focus("GTM").projection("auto")
.size(width: 880, height: 580)
.title("Guatemala: one selected map pack")
.caption("Synthetic index; generalized Natural Earth 2022 snapshot; country.gtm.")
.show()
Run step by step in VS Code.
The notebook separates observations and chart construction into cells. It opens with empty outputs and shared variables. Map cells state which optional local packs they need.
- Install a compatible native Aner executable and VS Code extension using the editor guide. Chart construction and interactive geographic navigation require the matching development runtime and editor.
- Download the
.anernbnotebook and open it in your VS Code project. If it appears as JSON, choose Reopen Editor With… → Aner Notebook. - Select the
Aner — notebookkernel and keep Shared variables active. Run code cells from top to bottom, or choose Run All. Later cells reuse observations and chart values from earlier cells. Run cells that need no pack before trying the optional geographic map. - Read the figures below their producing cells. In geographic outputs, drag to pan and use the zoom controls to reveal crowded labels. Static SVG exports retain the initial view. Source observations, units and limitations remain in each caption.
After changing an earlier cell, rerun its dependent cells. Use Aner: Restart Notebook Session, then Run All, for a clean experiment. Saved outputs are historical; reopening the file starts without live variables. The notebook guide explains session state, inspection, and runtime controls.
Run step by step in Jupyter.
Download the .ipynb notebook and open it in a notebook application with the Aner kernel configured. Select Aner and run its cells from top to bottom. The Jupyter guide explains kernel requirements, shared session state and output policies.
The plot provides its supported local navigation or selection controls after the producing cell finishes. Notebook trust and script policies determine whether interaction is displayed; the initial SVG and exported HTML provide the documented fallbacks. Optional map pack requirements are stated in the notebook.
Make it your experiment.
With a compatible development runtime installed, save this program as examples/plot_global_maps.aner inside a folder for your experiment. Open a terminal in that folder, then check and run the program.
aner check examples/plot_global_maps.aner
aner run examples/plot_global_maps.anerThe aner command must be on your PATH. Follow the installation guide if your terminal cannot find it.
Requires the global map enabled native Aner development runtime and the matching VS Code extension for .anernb, or Aner kernel integration for Jupyter. Aner Plot awaits a binary release and is not included in the published research preview; development packages are not offered here. Copy the matching .anermap files onto this computer and install only those needed by the cells you run. The complete source uses chile.region.rm, country.chl, country.fra, country.jpn, country.ken, country.aus and country.gtm. Each chart works independently with only its own pack. No CSV, network, map service or credential is needed.
aner maps list
aner maps install /media/maps/chile.region.rm.anermap
aner check examples/plot_global_maps.anerObservations are synthetic teaching inputs. Geographic context comes from optional offline boundary packs and does not add street detail or establish observed traffic conditions.
Read the chart and map contracts