{ "cells": [ { "cell_type": "markdown", "id": "5738454c", "metadata": {}, "source": [ "## Draw Map" ] }, { "cell_type": "markdown", "id": "8f41940d", "metadata": {}, "source": [ "### Packages" ] }, { "cell_type": "code", "execution_count": 1, "id": "e545284f", "metadata": {}, "outputs": [], "source": [ "from resilientplotterclass import rpc" ] }, { "cell_type": "markdown", "id": "3211bb0f", "metadata": {}, "source": [ "### Map" ] }, { "cell_type": "code", "execution_count": 2, "id": "c4b1a752", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# Create map\n", "m = rpc.map(location=(52.3784, 4.9009), zoom_start=8)\n", "\n", "# Show map\n", "rpc.show(m=m)" ] }, { "cell_type": "markdown", "id": "6d8cfd15", "metadata": {}, "source": [ "### Draw map" ] }, { "cell_type": "code", "execution_count": 5, "id": "e247a114", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "543318f383fd48d49989a56b7440a81e", "version_major": 2, "version_minor": 0 }, "text/plain": [ "Draw_Map(center=[52.3784, 4.9009], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title',…" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Create map\n", "m = rpc.draw_map(center=[52.3784, 4.9009], zoom=8)\n", "\n", "# Show map\n", "rpc.show(m=m)" ] }, { "cell_type": "code", "execution_count": 6, "id": "c90790a0", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
geometry
0POLYGON ((3.3783 51.88327, 3.3783 52.87244, 6....
\n", "
" ], "text/plain": [ " geometry\n", "0 POLYGON ((3.3783 51.88327, 3.3783 52.87244, 6...." ] }, "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Get geometries\n", "gdf_geoms = m.get_geometries()\n", "\n", "# Show geometries\n", "gdf_geoms.head()" ] } ], "metadata": { "kernelspec": { "display_name": "resilientplotterclass", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.12.11" } }, "nbformat": 4, "nbformat_minor": 5 }