{
  "cells": [
    {
      "cell_type": "markdown",
      "id": "global-maps-intro",
      "metadata": {},
      "source": "# Countries and Chilean regions: install only the geometry you use\n\nUse the matching global map enabled native development runtime and notebook integration. Aner Plot is implemented in development and awaits a binary release. These examples do not use the older published research preview.\n\nCopy the matching data packs onto this computer, then run `aner maps install /media/maps/chile.region.rm.anermap` for the first chart, for example. `aner maps list` shows exact available identities and installation status. No automatic downloads, online tiles or map service are used. The full notebook uses seven independent packs; run an individual chart cell to use only its pack. Importing aner.plot opens no pack. No CSV or other observation file is needed.\n\nAll values are synthetic. National outlines have no administrative subdivisions. The `chile.region.rm` chart contains just the Metropolitana de Santiago administrative region, retaining source key `CL-RM`; it does not need `chile`, `country.chl` or `world`. It is the same simplified geometry as that feature in the continental `chile` layer. Focusing a whole country administrative chart would keep its other regions in memory; selecting the single region pack avoids loading them.\n\nThe country index documents source identities, territories and grouping. The Natural Earth 2022 snapshot is generalized display data, not a current legal boundary survey. Source depiction is not a sovereignty claim. Notebook snapshots and exported SVG or supported HTML retain their chosen geometry for offline viewing. Rerunning code still needs its matching installed pack.\n"
    },
    {
      "cell_type": "code",
      "id": "global-maps-import",
      "metadata": {},
      "execution_count": null,
      "outputs": [],
      "source": [
        "import aner.plot\n"
      ]
    },
    {
      "cell_type": "code",
      "id": "global-map-1",
      "metadata": {},
      "execution_count": null,
      "outputs": [],
      "source": [
        "// Only chile.region.rm.anermap is required by this chart.\n",
        "// One Chilean region; no country or world geometry is loaded.\n",
        "plot.map(\"chile.region.rm\", keys: List(\"CL-RM\"), values: List(12.0))\n",
        "    .focus(\"CL-RM\").projection(\"lambert_azimuthal_equal_area\")\n",
        "    .size(width: 880, height: 580)\n",
        "    .title(\"Metropolitana de Santiago: one selected map pack\")\n",
        "    .caption(\"Synthetic index; generalized Natural Earth 2022 snapshot; chile.region.rm.\")\n",
        "    .show()\n"
      ]
    },
    {
      "cell_type": "code",
      "id": "global-map-2",
      "metadata": {},
      "execution_count": null,
      "outputs": [],
      "source": [
        "// Only country.chl.anermap is required by this chart.\n",
        "// National outline; distinct from the continental administrative-region pack.\n",
        "plot.map(\"country.chl\", keys: List(\"CHL\"), values: List(13.0))\n",
        "    .focus(\"CHL\").projection(\"auto\")\n",
        "    .size(width: 880, height: 580)\n",
        "    .title(\"Chile: one selected map pack\")\n",
        "    .caption(\"Synthetic index; generalized Natural Earth 2022 snapshot; country.chl.\")\n",
        "    .show()\n"
      ]
    },
    {
      "cell_type": "code",
      "id": "global-map-3",
      "metadata": {},
      "execution_count": null,
      "outputs": [],
      "source": [
        "// Only country.fra.anermap is required by this chart.\n",
        "// Full national outline; view metropolitan France, retaining remote source parts in the chart.\n",
        "plot.map(\"country.fra\", keys: List(\"FRA\"), values: List(14.0))\n",
        "    .focus(\"FRA\").extent(west: -5.5, south: 41.0, east: 10.0, north: 51.8).projection(\"auto\")\n",
        "    .size(width: 880, height: 580)\n",
        "    .title(\"France: metropolitan view, one selected map pack\")\n",
        "    .caption(\"Synthetic index; generalized Natural Earth 2022 snapshot; country.fra.\")\n",
        "    .show()\n"
      ]
    },
    {
      "cell_type": "code",
      "id": "global-map-4",
      "metadata": {},
      "execution_count": null,
      "outputs": [],
      "source": [
        "// Only country.jpn.anermap is required by this chart.\n",
        "// National outline; no prefecture or street geometry.\n",
        "plot.map(\"country.jpn\", keys: List(\"JPN\"), values: List(15.0))\n",
        "    .focus(\"JPN\").projection(\"auto\")\n",
        "    .size(width: 880, height: 580)\n",
        "    .title(\"Japan: one selected map pack\")\n",
        "    .caption(\"Synthetic index; generalized Natural Earth 2022 snapshot; country.jpn.\")\n",
        "    .show()\n"
      ]
    },
    {
      "cell_type": "code",
      "id": "global-map-5",
      "metadata": {},
      "execution_count": null,
      "outputs": [],
      "source": [
        "// Only country.ken.anermap is required by this chart.\n",
        "// National outline; no county geometry.\n",
        "plot.map(\"country.ken\", keys: List(\"KEN\"), values: List(16.0))\n",
        "    .focus(\"KEN\").projection(\"auto\")\n",
        "    .size(width: 880, height: 580)\n",
        "    .title(\"Kenya: one selected map pack\")\n",
        "    .caption(\"Synthetic index; generalized Natural Earth 2022 snapshot; country.ken.\")\n",
        "    .show()\n"
      ]
    },
    {
      "cell_type": "code",
      "id": "global-map-6",
      "metadata": {},
      "execution_count": null,
      "outputs": [],
      "source": [
        "// Only country.aus.anermap is required by this chart.\n",
        "// National outline; no state or territory subdivision geometry.\n",
        "plot.map(\"country.aus\", keys: List(\"AUS\"), values: List(17.0))\n",
        "    .focus(\"AUS\").projection(\"auto\")\n",
        "    .size(width: 880, height: 580)\n",
        "    .title(\"Australia: one selected map pack\")\n",
        "    .caption(\"Synthetic index; generalized Natural Earth 2022 snapshot; country.aus.\")\n",
        "    .show()\n"
      ]
    },
    {
      "cell_type": "code",
      "id": "global-map-7",
      "metadata": {},
      "execution_count": null,
      "outputs": [],
      "source": [
        "// Only country.gtm.anermap is required by this chart.\n",
        "// National outline; no department geometry.\n",
        "plot.map(\"country.gtm\", keys: List(\"GTM\"), values: List(18.0))\n",
        "    .focus(\"GTM\").projection(\"auto\")\n",
        "    .size(width: 880, height: 580)\n",
        "    .title(\"Guatemala: one selected map pack\")\n",
        "    .caption(\"Synthetic index; generalized Natural Earth 2022 snapshot; country.gtm.\")\n",
        "    .show()\n"
      ]
    }
  ],
  "metadata": {
    "kernelspec": {
      "name": "aner",
      "display_name": "Aner",
      "language": "aner"
    },
    "language_info": {
      "name": "aner",
      "file_extension": ".aner",
      "mimetype": "text/x-aner"
    },
    "aner": {
      "status": "example",
      "execution_mode": "persistent-session"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 5
}
