Load one state, province or region
Draw Colorado with an illustrative Boulder point and independently selected regions across continents, using the same offline Aner and notebook analysis.
// Requires the matching subdivision-map-enabled native development runtime.
// Install only the .anermap files needed by the individual charts you run.
// This complete file intentionally constructs seven separate region charts.
// All values and the Boulder location below are illustrative teaching data.
import aner.plot
import aner.geo
// One Colorado state outline, without USA, county, city or other state geometry.
plot.map("region.usa.co", keys: List("US-CO"), values: List(12.0))
.add_points(positions: List(geo.position(longitude: -105.2705, latitude: 40.0150)),
values: List(18.0), labels: List("Boulder"))
.point_labels("all")
.projection("lambert_azimuthal_equal_area")
.size(width: 900, height: 600)
.title("Boulder in Colorado: one independently loaded state")
.caption("Synthetic indices; illustrative Boulder position. Natural Earth 2022 state outline, not a city or street map.")
.show()
// Just Metropolitana de Santiago; no whole-country or other Chilean regions.
plot.map("region.chl.rm", keys: List("CL-RM"), values: List(16.0))
.projection("lambert_azimuthal_equal_area")
.size(width: 900, height: 600)
.title("Metropolitana de Santiago: one selected Chilean region")
.caption("Synthetic index; generalized Natural Earth 2022 source. This global region pack is independent of chile and chile.region.rm.")
.show()
// Source code AR-B is the Buenos Aires province feature, not the capital AR-C.
plot.map("region.arg.b", keys: List("AR-B"), values: List(14.0))
.projection("lambert_azimuthal_equal_area")
.size(width: 900, height: 600)
.title("Buenos Aires: select the AR-B source feature")
.caption("Synthetic index; Natural Earth 2022. AR-C is the separate Ciudad de Buenos Aires feature. Source type labels are not a current legal register.")
.show()
// Only the Tokyo source metropolis; not the whole country of Japan.
plot.map("region.jpn.13", keys: List("JP-13"), values: List(19.0))
.projection("lambert_azimuthal_equal_area")
.size(width: 900, height: 600)
.title("Tokyo: one selected Japanese region")
.caption("Synthetic index; generalized Natural Earth 2022 source. The full source extent includes remote islands.")
.show()
// One South African province; no Africa or South Africa overview is needed.
plot.map("region.zaf.wc", keys: List("ZA-WC"), values: List(15.0))
.projection("lambert_azimuthal_equal_area")
.size(width: 900, height: 600)
.title("Western Cape: one selected South African province")
.caption("Synthetic index; generalized Natural Earth 2022 province geometry. No spatial measurement is inferred.")
.show()
// One Australian state, independently installed without other states or territories.
plot.map("region.aus.qld", keys: List("AU-QLD"), values: List(17.0))
.projection("lambert_azimuthal_equal_area")
.size(width: 900, height: 600)
.title("Queensland: one selected Australian state")
.caption("Synthetic index; generalized Natural Earth 2022 state geometry. Other Australian states and territories are not loaded.")
.show()
// Four-country UK first-order layer: this chart loads only Scotland.
plot.map("region.gbr.sct", keys: List("GB-SCT"), values: List(13.0))
.projection("lambert_azimuthal_equal_area")
.size(width: 900, height: 600)
.title("Scotland: a constituent country selected independently")
.caption("Synthetic index; Eurostat / geoBoundaries pinned 2021 first-order source. Other UK countries and council areas are not loaded.")
.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_subdivision_maps.aner inside a folder for your experiment. Open a terminal in that folder, then check and run the program.
aner check examples/plot_subdivision_maps.aner
aner run examples/plot_subdivision_maps.anerThe aner command must be on your PATH. Follow the installation guide if your terminal cannot find it.
Requires the subdivision map enabled native Aner development runtime and matching VS Code .anernb or Jupyter integration. Aner Plot awaits a binary release and development packages are not offered here. Copy and install only the independent data files needed by the cells you run: region.usa.co, region.chl.rm, region.arg.b, region.jpn.13, region.zaf.wc, region.aus.qld and region.gbr.sct. The complete file intentionally constructs seven charts; any chart cell works alone after imports. No CSV, connection, map service or credential is needed.
aner maps list
aner maps install /media/maps/region.usa.co.anermap
aner check examples/plot_subdivision_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