Blog posts





{ “cells”: [ { “cell_type”: “code”, “execution_count”: 1, “id”: “d53dc596”, “metadata”: {}, “outputs”: [], “source”: [ “#libraries\n”, “import pandas as pd\n”, “import json # library for working with JSON-formatted text strings\n”, “import requests # library for accessing content from web URLs\n”, “#import pprint # library for cleanly printing Python data structures\n”, “from matplotlib import pyplot as plt\n”, “import matplotlib.ticker as ticker\n”, “import seaborn as sns\n”, “import numpy as np\n”, “import geopandas as gpd\n”, “import utm\n”, “import contextily as cx\n”, “import folium\n”, “import plotly\n”, “#import mpld3\n”, “from PIL import Image, ImageFont, ImageDraw\n”, “from pyproj import Proj\n”, “from shapely.geometry import Point\n”, “from geopandas import GeoDataFrame\n”, “from folium import plugins\n”, “from matplotlib.pyplot import figure\n”, “ \n”, “\n”, “# %matplotlib inline\n”, “# from matplotlib import rcParams\n”, “# pd.options.mode.chained_assignment = None\n”, “\n”, “# pp = pprint.PrettyPrinter()\n” ] }, { “cell_type”: “code”, “execution_count”: 2, “id”: “45671639”, “metadata”: {}, “outputs”: [ { “name”: “stderr”, “output_type”: “stream”, “text”: [ “/Users/flavia/opt/anaconda3/envs/geo_3/lib/python3.9/site-packages/pyproj/crs/crs.py:130: FutureWarning: ‘+init=:' syntax is deprecated. ':' is the preferred initialization method. When making the change, be mindful of axis order changes: https://pyproj4.github.io/pyproj/stable/gotchas.html#axis-order-changes-in-proj-6\n", " in_crs_string = _prepare_from_proj_string(in_crs_string)\n" ] }, { "data": { "text/html": [ "<div>\n", "\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>Capital</th>\n", " <th>CAPITAL</th>\n", " <th>Estado</th>\n", " <th>Sigla</th>\n", " <th>Região</th>\n", " <th>AREA_KM2</th>\n", " <th>POP_2021</th>\n", " <th>PIB_2019</th>\n", " <th>PDE</th>\n", " <th>OODC_PDE</th>\n", " <th>OODC_REG</th>\n", " <th>OODC_IMPLEMENT</th>\n", " <th>OODC_IMPLEMENT_V2</th>\n", " <th>ANO_REG</th>\n", " <th>LAT</th>\n", " <th>LONG</th>\n", " <th>geometry</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th>0</th>\n", " <td>Aracaju</td>\n", " <td>ARACAJU</td>\n", " <td>Sergipe</td>\n", " <td>SE</td>\n", " <td>Nordeste</td>\n", " <td>182,163</td>\n", " <td>672,614</td>\n", " <td>26,688</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>No</td>\n", " <td>No</td>\n", " <td>1</td>\n", " <td>NaN</td>\n", " <td>-10.57</td>\n", " <td>-37.45</td>\n", " <td>POINT (-37.45000 -10.57000)</td>\n", " </tr>\n", " <tr>\n", " <th>1</th>\n", " <td>Boa Vista</td>\n", " <td>BOA VISTA</td>\n", " <td>Roraima</td>\n", " <td>RR</td>\n", " <td>Norte</td>\n", " <td>5,687,037</td>\n", " <td>436,591</td>\n", " <td>26,482</td>\n", " <td>Yes</td>\n", " <td>No</td>\n", " <td>No</td>\n", " <td>No</td>\n", " <td>1</td>\n", " <td>NaN</td>\n", " <td>1.99</td>\n", " <td>-61.33</td>\n", " <td>POINT (-61.33000 1.99000)</td>\n", " </tr>\n", " <tr>\n", " <th>2</th>\n", " <td>Campo Grande</td>\n", " <td>CAMPO GRANDE</td>\n", " <td>Mato Grosso do Sul</td>\n", " <td>MS</td>\n", " <td>Centro-Oeste</td>\n", " <td>8,082,978</td>\n", " <td>916,001</td>\n", " <td>33,745</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>No</td>\n", " <td>No</td>\n", " <td>1</td>\n", " <td>NaN</td>\n", " <td>-20.51</td>\n", " <td>-54.54</td>\n", " <td>POINT (-54.54000 -20.51000)</td>\n", " </tr>\n", " <tr>\n", " <th>3</th>\n", " <td>Macapá</td>\n", " <td>MACAPA</td>\n", " <td>Amapá</td>\n", " <td>AP</td>\n", " <td>Norte</td>\n", " <td>6,563,849</td>\n", " <td>522,357</td>\n", " <td>22,718</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>No</td>\n", " <td>No</td>\n", " <td>1</td>\n", " <td>NaN</td>\n", " <td>1.41</td>\n", " <td>-51.77</td>\n", " <td>POINT (-51.77000 1.41000)</td>\n", " </tr>\n", " <tr>\n", " <th>4</th>\n", " <td>Recife</td>\n", " <td>RECIFE</td>\n", " <td>Pernambuco</td>\n", " <td>PE</td>\n", " <td>Nordeste</td>\n", " <td>218,843</td>\n", " <td>1,661,017</td>\n", " <td>33,232</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>No</td>\n", " <td>No</td>\n", " <td>1</td>\n", " <td>NaN</td>\n", " <td>-8.38</td>\n", " <td>-37.86</td>\n", " <td>POINT (-37.86000 -8.38000)</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " Capital CAPITAL Estado Sigla Região \\\n", "0 Aracaju ARACAJU Sergipe SE Nordeste \n", "1 Boa Vista BOA VISTA Roraima RR Norte \n", "2 Campo Grande CAMPO GRANDE Mato Grosso do Sul MS Centro-Oeste \n", "3 Macapá MACAPA Amapá AP Norte \n", "4 Recife RECIFE Pernambuco PE Nordeste \n", "\n", " AREA_KM2 POP_2021 PIB_2019 PDE OODC_PDE OODC_REG OODC_IMPLEMENT \\\n", "0 182,163 672,614 26,688 Yes Yes No No \n", "1 5,687,037 436,591 26,482 Yes No No No \n", "2 8,082,978 916,001 33,745 Yes Yes No No \n", "3 6,563,849 522,357 22,718 Yes Yes No No \n", "4 218,843 1,661,017 33,232 Yes Yes No No \n", "\n", " OODC_IMPLEMENT_V2 ANO_REG LAT LONG geometry \n", "0 1 NaN -10.57 -37.45 POINT (-37.45000 -10.57000) \n", "1 1 NaN 1.99 -61.33 POINT (-61.33000 1.99000) \n", "2 1 NaN -20.51 -54.54 POINT (-54.54000 -20.51000) \n", "3 1 NaN 1.41 -51.77 POINT (-51.77000 1.41000) \n", "4 1 NaN -8.38 -37.86 POINT (-37.86000 -8.38000) " ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "#MAPPING THE OODC IN THE COUNTRY\n", "\n", "#UPLOADING THE DATASET\n", "oodc_capitais = pd.read_csv('data/OODC_Capitais.csv') \n", "oodc_capitais.head()\n", " \n", " \n", "#CREATING GEOMETRIES\n", "#Creating point from the empreendimentos dataset\n", "crs = {'init': 'epsg:4326'}\n", "\n", "geometry = [Point(xy)for xy in zip (oodc_capitais[\"LONG\"], oodc_capitais[\"LAT\"])]\n", "geometry[:3]\n", "\n", "oodc_capitais = gpd.GeoDataFrame(oodc_capitais, crs=crs, geometry=geometry)\n", "oodc_capitais.head()" ] }, { "cell_type": "code", "execution_count": 3, "id": "d5481eed", "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>Capital</th>\n", " <th>CAPITAL</th>\n", " <th>Estado</th>\n", " <th>Sigla</th>\n", " <th>Região</th>\n", " <th>AREA_KM2</th>\n", " <th>POP_2021</th>\n", " <th>PIB_2019</th>\n", " <th>PDE</th>\n", " <th>OODC_PDE</th>\n", " <th>OODC_REG</th>\n", " <th>OODC_IMPLEMENT</th>\n", " <th>OODC_IMPLEMENT_V2</th>\n", " <th>ANO_REG</th>\n", " <th>LAT</th>\n", " <th>LONG</th>\n", " <th>geometry</th>\n", " <th>marker_color</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th>0</th>\n", " <td>Aracaju</td>\n", " <td>ARACAJU</td>\n", " <td>Sergipe</td>\n", " <td>SE</td>\n", " <td>Nordeste</td>\n", " <td>182,163</td>\n", " <td>672,614</td>\n", " <td>26,688</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>No</td>\n", " <td>No</td>\n", " <td>1</td>\n", " <td>NaN</td>\n", " <td>-10.57</td>\n", " <td>-37.45</td>\n", " <td>POINT (-37.45000 -10.57000)</td>\n", " <td>red</td>\n", " </tr>\n", " <tr>\n", " <th>1</th>\n", " <td>Boa Vista</td>\n", " <td>BOA VISTA</td>\n", " <td>Roraima</td>\n", " <td>RR</td>\n", " <td>Norte</td>\n", " <td>5,687,037</td>\n", " <td>436,591</td>\n", " <td>26,482</td>\n", " <td>Yes</td>\n", " <td>No</td>\n", " <td>No</td>\n", " <td>No</td>\n", " <td>1</td>\n", " <td>NaN</td>\n", " <td>1.99</td>\n", " <td>-61.33</td>\n", " <td>POINT (-61.33000 1.99000)</td>\n", " <td>red</td>\n", " </tr>\n", " <tr>\n", " <th>2</th>\n", " <td>Campo Grande</td>\n", " <td>CAMPO GRANDE</td>\n", " <td>Mato Grosso do Sul</td>\n", " <td>MS</td>\n", " <td>Centro-Oeste</td>\n", " <td>8,082,978</td>\n", " <td>916,001</td>\n", " <td>33,745</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>No</td>\n", " <td>No</td>\n", " <td>1</td>\n", " <td>NaN</td>\n", " <td>-20.51</td>\n", " <td>-54.54</td>\n", " <td>POINT (-54.54000 -20.51000)</td>\n", " <td>red</td>\n", " </tr>\n", " <tr>\n", " <th>3</th>\n", " <td>Macapá</td>\n", " <td>MACAPA</td>\n", " <td>Amapá</td>\n", " <td>AP</td>\n", " <td>Norte</td>\n", " <td>6,563,849</td>\n", " <td>522,357</td>\n", " <td>22,718</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>No</td>\n", " <td>No</td>\n", " <td>1</td>\n", " <td>NaN</td>\n", " <td>1.41</td>\n", " <td>-51.77</td>\n", " <td>POINT (-51.77000 1.41000)</td>\n", " <td>red</td>\n", " </tr>\n", " <tr>\n", " <th>4</th>\n", " <td>Recife</td>\n", " <td>RECIFE</td>\n", " <td>Pernambuco</td>\n", " <td>PE</td>\n", " <td>Nordeste</td>\n", " <td>218,843</td>\n", " <td>1,661,017</td>\n", " <td>33,232</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>No</td>\n", " <td>No</td>\n", " <td>1</td>\n", " <td>NaN</td>\n", " <td>-8.38</td>\n", " <td>-37.86</td>\n", " <td>POINT (-37.86000 -8.38000)</td>\n", " <td>red</td>\n", " </tr>\n", " <tr>\n", " <th>5</th>\n", " <td>Rio Branco</td>\n", " <td>RIO BRANCO</td>\n", " <td>Acre</td>\n", " <td>AC</td>\n", " <td>Norte</td>\n", " <td>8,834,942</td>\n", " <td>419,452</td>\n", " <td>22,448</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>No</td>\n", " <td>No</td>\n", " <td>1</td>\n", " <td>NaN</td>\n", " <td>-8.77</td>\n", " <td>-70.55</td>\n", " <td>POINT (-70.55000 -8.77000)</td>\n", " <td>red</td>\n", " </tr>\n", " <tr>\n", " <th>6</th>\n", " <td>São Luís</td>\n", " <td>SAO LUIS</td>\n", " <td>Maranhão</td>\n", " <td>MA</td>\n", " <td>Nordeste</td>\n", " <td>582,974</td>\n", " <td>1,115,932</td>\n", " <td>29,135</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>No</td>\n", " <td>No</td>\n", " <td>1</td>\n", " <td>NaN</td>\n", " <td>-5.42</td>\n", " <td>-45.44</td>\n", " <td>POINT (-45.44000 -5.42000)</td>\n", " <td>red</td>\n", " </tr>\n", " <tr>\n", " <th>7</th>\n", " <td>Belo Horizonte</td>\n", " <td>BELO HORIZONTE</td>\n", " <td>Minas Gerais</td>\n", " <td>MG</td>\n", " <td>Sudeste</td>\n", " <td>331,354</td>\n", " <td>2,530,701</td>\n", " <td>38,695</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>No</td>\n", " <td>1</td>\n", " <td>NaN</td>\n", " <td>-18.10</td>\n", " <td>-44.38</td>\n", " <td>POINT (-44.38000 -18.10000)</td>\n", " <td>red</td>\n", " </tr>\n", " <tr>\n", " <th>8</th>\n", " <td>Cuiabá</td>\n", " <td>CUIABA</td>\n", " <td>Mato Grosso</td>\n", " <td>MT</td>\n", " <td>Centro-Oeste</td>\n", " <td>3,266,538</td>\n", " <td>623,614</td>\n", " <td>40,199</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>No</td>\n", " <td>1</td>\n", " <td>NaN</td>\n", " <td>-12.64</td>\n", " <td>-55.42</td>\n", " <td>POINT (-55.42000 -12.64000)</td>\n", " <td>red</td>\n", " </tr>\n", " <tr>\n", " <th>9</th>\n", " <td>Maceió</td>\n", " <td>MACEIO</td>\n", " <td>Alagoas</td>\n", " <td>AL</td>\n", " <td>Nordeste</td>\n", " <td>509</td>\n", " <td>1,031,597</td>\n", " <td>22,977</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>No</td>\n", " <td>1</td>\n", " <td>NaN</td>\n", " <td>-9.62</td>\n", " <td>-36.82</td>\n", " <td>POINT (-36.82000 -9.62000)</td>\n", " <td>red</td>\n", " </tr>\n", " <tr>\n", " <th>10</th>\n", " <td>Vitória</td>\n", " <td>VITORIA</td>\n", " <td>Espírito Santo</td>\n", " <td>ES</td>\n", " <td>Sudeste</td>\n", " <td>97,123</td>\n", " <td>369,534</td>\n", " <td>59,694</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>No</td>\n", " <td>1</td>\n", " <td>NaN</td>\n", " <td>-19.19</td>\n", " <td>-40.34</td>\n", " <td>POINT (-40.34000 -19.19000)</td>\n", " <td>red</td>\n", " </tr>\n", " <tr>\n", " <th>11</th>\n", " <td>Belém</td>\n", " <td>BELEM</td>\n", " <td>Pará</td>\n", " <td>PA</td>\n", " <td>Norte</td>\n", " <td>1,059,466</td>\n", " <td>1,506,420</td>\n", " <td>21,709</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>0</td>\n", " <td>2008.0</td>\n", " <td>-3.79</td>\n", " <td>-52.48</td>\n", " <td>POINT (-52.48000 -3.79000)</td>\n", " <td>green</td>\n", " </tr>\n", " <tr>\n", " <th>12</th>\n", " <td>Fortaleza</td>\n", " <td>FORTALEZA</td>\n", " <td>Ceará</td>\n", " <td>CE</td>\n", " <td>Nordeste</td>\n", " <td>312,353</td>\n", " <td>2,703,391</td>\n", " <td>25,254</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>0</td>\n", " <td>2009.0</td>\n", " <td>-5.20</td>\n", " <td>-39.53</td>\n", " <td>POINT (-39.53000 -5.20000)</td>\n", " <td>green</td>\n", " </tr>\n", " <tr>\n", " <th>13</th>\n", " <td>João Pessoa</td>\n", " <td>JOAO PESSOA</td>\n", " <td>Paraíba</td>\n", " <td>PB</td>\n", " <td>Nordeste</td>\n", " <td>210,044</td>\n", " <td>825,796</td>\n", " <td>25,768</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>0</td>\n", " <td>2011.0</td>\n", " <td>-7.28</td>\n", " <td>-36.72</td>\n", " <td>POINT (-36.72000 -7.28000)</td>\n", " <td>green</td>\n", " </tr>\n", " <tr>\n", " <th>14</th>\n", " <td>Natal</td>\n", " <td>NATAL</td>\n", " <td>Rio Grande do Norte</td>\n", " <td>RN</td>\n", " <td>Nordeste</td>\n", " <td>167,401</td>\n", " <td>896,708</td>\n", " <td>28,113</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>0</td>\n", " <td>2022.0</td>\n", " <td>-5.81</td>\n", " <td>-36.59</td>\n", " <td>POINT (-36.59000 -5.81000)</td>\n", " <td>green</td>\n", " </tr>\n", " <tr>\n", " <th>15</th>\n", " <td>Rio de Janeiro</td>\n", " <td>RIO DE JANEIRO</td>\n", " <td>Rio de Janeiro</td>\n", " <td>RJ</td>\n", " <td>Sudeste</td>\n", " <td>1,200,329</td>\n", " <td>6,775,561</td>\n", " <td>52,833</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>0</td>\n", " <td>2011.0</td>\n", " <td>-22.25</td>\n", " <td>-42.66</td>\n", " <td>POINT (-42.66000 -22.25000)</td>\n", " <td>green</td>\n", " </tr>\n", " <tr>\n", " <th>16</th>\n", " <td>Salvador</td>\n", " <td>SALVADOR</td>\n", " <td>Bahia</td>\n", " <td>BA</td>\n", " <td>Nordeste</td>\n", " <td>693,453</td>\n", " <td>2,900,319</td>\n", " <td>22,213</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>0</td>\n", " <td>2015.0</td>\n", " <td>-13.29</td>\n", " <td>-41.71</td>\n", " <td>POINT (-41.71000 -13.29000)</td>\n", " <td>green</td>\n", " </tr>\n", " <tr>\n", " <th>17</th>\n", " <td>Teresina</td>\n", " <td>TERESINA</td>\n", " <td>Piauí</td>\n", " <td>PI</td>\n", " <td>Nordeste</td>\n", " <td>1,391,046</td>\n", " <td>871,126</td>\n", " <td>25,459</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>0</td>\n", " <td>2019.0</td>\n", " <td>-6.60</td>\n", " <td>-42.28</td>\n", " <td>POINT (-42.28000 -6.60000)</td>\n", " <td>green</td>\n", " </tr>\n", " <tr>\n", " <th>18</th>\n", " <td>Brasília</td>\n", " <td>BRASILIA</td>\n", " <td>Distrito Federal</td>\n", " <td>DF</td>\n", " <td>Centro-Oeste</td>\n", " <td>5,760,783</td>\n", " <td>3,094,325</td>\n", " <td>90,743</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>0</td>\n", " <td>1996.0</td>\n", " <td>-15.83</td>\n", " <td>-47.86</td>\n", " <td>POINT (-47.86000 -15.83000)</td>\n", " <td>green</td>\n", " </tr>\n", " <tr>\n", " <th>19</th>\n", " <td>Curitiba</td>\n", " <td>CURITIBA</td>\n", " <td>Paraná</td>\n", " <td>PR</td>\n", " <td>Sul</td>\n", " <td>434,892</td>\n", " <td>1,963,726</td>\n", " <td>49,707</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>0</td>\n", " <td>2020.0</td>\n", " <td>-24.89</td>\n", " <td>-51.55</td>\n", " <td>POINT (-51.55000 -24.89000)</td>\n", " <td>green</td>\n", " </tr>\n", " <tr>\n", " <th>20</th>\n", " <td>Florianópolis</td>\n", " <td>FLORIANOPOLIS</td>\n", " <td>Santa Catarina</td>\n", " <td>SC</td>\n", " <td>Sul</td>\n", " <td>674,844</td>\n", " <td>516,524</td>\n", " <td>43,843</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>0</td>\n", " <td>2014.0</td>\n", " <td>-27.45</td>\n", " <td>-50.95</td>\n", " <td>POINT (-50.95000 -27.45000)</td>\n", " <td>green</td>\n", " </tr>\n", " <tr>\n", " <th>21</th>\n", " <td>Goiânia</td>\n", " <td>GOIANIA</td>\n", " <td>Goiás</td>\n", " <td>GO</td>\n", " <td>Centro-Oeste</td>\n", " <td>728,841</td>\n", " <td>1,555,626</td>\n", " <td>34,901</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>0</td>\n", " <td>2008.0</td>\n", " <td>-15.98</td>\n", " <td>-49.86</td>\n", " <td>POINT (-49.86000 -15.98000)</td>\n", " <td>green</td>\n", " </tr>\n", " <tr>\n", " <th>22</th>\n", " <td>Manaus</td>\n", " <td>MANAUS</td>\n", " <td>Amazonas</td>\n", " <td>AM</td>\n", " <td>Norte</td>\n", " <td>11,401,092</td>\n", " <td>2,255,903</td>\n", " <td>38,881</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>0</td>\n", " <td>2014.0</td>\n", " <td>-3.47</td>\n", " <td>-65.10</td>\n", " <td>POINT (-65.10000 -3.47000)</td>\n", " <td>green</td>\n", " </tr>\n", " <tr>\n", " <th>23</th>\n", " <td>Palmas</td>\n", " <td>PALMAS</td>\n", " <td>Tocantins</td>\n", " <td>TO</td>\n", " <td>Norte</td>\n", " <td>2,227,444</td>\n", " <td>313,349</td>\n", " <td>34,934</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>0</td>\n", " <td>2012.0</td>\n", " <td>-9.46</td>\n", " <td>-48.26</td>\n", " <td>POINT (-48.26000 -9.46000)</td>\n", " <td>green</td>\n", " </tr>\n", " <tr>\n", " <th>24</th>\n", " <td>Porto Alegre</td>\n", " <td>PORTO ALEGRE</td>\n", " <td>Rio Grande do Sul</td>\n", " <td>RS</td>\n", " <td>Sul</td>\n", " <td>495,390</td>\n", " <td>1,492,530</td>\n", " <td>55,555</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>0</td>\n", " <td>1994.0</td>\n", " <td>-30.17</td>\n", " <td>-53.50</td>\n", " <td>POINT (-53.50000 -30.17000)</td>\n", " <td>green</td>\n", " </tr>\n", " <tr>\n", " <th>25</th>\n", " <td>Porto Velho</td>\n", " <td>PORTO VELHO</td>\n", " <td>Rondônia</td>\n", " <td>RO</td>\n", " <td>Norte</td>\n", " <td>34,090,952</td>\n", " <td>548,952</td>\n", " <td>33,825</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>0</td>\n", " <td>2010.0</td>\n", " <td>-10.83</td>\n", " <td>-63.34</td>\n", " <td>POINT (-63.34000 -10.83000)</td>\n", " <td>green</td>\n", " </tr>\n", " <tr>\n", " <th>26</th>\n", " <td>São Paulo</td>\n", " <td>SAO PAULO</td>\n", " <td>São Paulo</td>\n", " <td>SP</td>\n", " <td>Sudeste</td>\n", " <td>1,521,110</td>\n", " <td>12,396,372</td>\n", " <td>62,341</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>Yes</td>\n", " <td>0</td>\n", " <td>2003.0</td>\n", " <td>-22.19</td>\n", " <td>-48.79</td>\n", " <td>POINT (-48.79000 -22.19000)</td>\n", " <td>green</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " Capital CAPITAL Estado Sigla Região \\\n", "0 Aracaju ARACAJU Sergipe SE Nordeste \n", "1 Boa Vista BOA VISTA Roraima RR Norte \n", "2 Campo Grande CAMPO GRANDE Mato Grosso do Sul MS Centro-Oeste \n", "3 Macapá MACAPA Amapá AP Norte \n", "4 Recife RECIFE Pernambuco PE Nordeste \n", "5 Rio Branco RIO BRANCO Acre AC Norte \n", "6 São Luís SAO LUIS Maranhão MA Nordeste \n", "7 Belo Horizonte BELO HORIZONTE Minas Gerais MG Sudeste \n", "8 Cuiabá CUIABA Mato Grosso MT Centro-Oeste \n", "9 Maceió MACEIO Alagoas AL Nordeste \n", "10 Vitória VITORIA Espírito Santo ES Sudeste \n", "11 Belém BELEM Pará PA Norte \n", "12 Fortaleza FORTALEZA Ceará CE Nordeste \n", "13 João Pessoa JOAO PESSOA Paraíba PB Nordeste \n", "14 Natal NATAL Rio Grande do Norte RN Nordeste \n", "15 Rio de Janeiro RIO DE JANEIRO Rio de Janeiro RJ Sudeste \n", "16 Salvador SALVADOR Bahia BA Nordeste \n", "17 Teresina TERESINA Piauí PI Nordeste \n", "18 Brasília BRASILIA Distrito Federal DF Centro-Oeste \n", "19 Curitiba CURITIBA Paraná PR Sul \n", "20 Florianópolis FLORIANOPOLIS Santa Catarina SC Sul \n", "21 Goiânia GOIANIA Goiás GO Centro-Oeste \n", "22 Manaus MANAUS Amazonas AM Norte \n", "23 Palmas PALMAS Tocantins TO Norte \n", "24 Porto Alegre PORTO ALEGRE Rio Grande do Sul RS Sul \n", "25 Porto Velho PORTO VELHO Rondônia RO Norte \n", "26 São Paulo SAO PAULO São Paulo SP Sudeste \n", "\n", " AREA_KM2 POP_2021 PIB_2019 PDE OODC_PDE OODC_REG OODC_IMPLEMENT \\\n", "0 182,163 672,614 26,688 Yes Yes No No \n", "1 5,687,037 436,591 26,482 Yes No No No \n", "2 8,082,978 916,001 33,745 Yes Yes No No \n", "3 6,563,849 522,357 22,718 Yes Yes No No \n", "4 218,843 1,661,017 33,232 Yes Yes No No \n", "5 8,834,942 419,452 22,448 Yes Yes No No \n", "6 582,974 1,115,932 29,135 Yes Yes No No \n", "7 331,354 2,530,701 38,695 Yes Yes Yes No \n", "8 3,266,538 623,614 40,199 Yes Yes Yes No \n", "9 509 1,031,597 22,977 Yes Yes Yes No \n", "10 97,123 369,534 59,694 Yes Yes Yes No \n", "11 1,059,466 1,506,420 21,709 Yes Yes Yes Yes \n", "12 312,353 2,703,391 25,254 Yes Yes Yes Yes \n", "13 210,044 825,796 25,768 Yes Yes Yes Yes \n", "14 167,401 896,708 28,113 Yes Yes Yes Yes \n", "15 1,200,329 6,775,561 52,833 Yes Yes Yes Yes \n", "16 693,453 2,900,319 22,213 Yes Yes Yes Yes \n", "17 1,391,046 871,126 25,459 Yes Yes Yes Yes \n", "18 5,760,783 3,094,325 90,743 Yes Yes Yes Yes \n", "19 434,892 1,963,726 49,707 Yes Yes Yes Yes \n", "20 674,844 516,524 43,843 Yes Yes Yes Yes \n", "21 728,841 1,555,626 34,901 Yes Yes Yes Yes \n", "22 11,401,092 2,255,903 38,881 Yes Yes Yes Yes \n", "23 2,227,444 313,349 34,934 Yes Yes Yes Yes \n", "24 495,390 1,492,530 55,555 Yes Yes Yes Yes \n", "25 34,090,952 548,952 33,825 Yes Yes Yes Yes \n", "26 1,521,110 12,396,372 62,341 Yes Yes Yes Yes \n", "\n", " OODC_IMPLEMENT_V2 ANO_REG LAT LONG geometry \\\n", "0 1 NaN -10.57 -37.45 POINT (-37.45000 -10.57000) \n", "1 1 NaN 1.99 -61.33 POINT (-61.33000 1.99000) \n", "2 1 NaN -20.51 -54.54 POINT (-54.54000 -20.51000) \n", "3 1 NaN 1.41 -51.77 POINT (-51.77000 1.41000) \n", "4 1 NaN -8.38 -37.86 POINT (-37.86000 -8.38000) \n", "5 1 NaN -8.77 -70.55 POINT (-70.55000 -8.77000) \n", "6 1 NaN -5.42 -45.44 POINT (-45.44000 -5.42000) \n", "7 1 NaN -18.10 -44.38 POINT (-44.38000 -18.10000) \n", "8 1 NaN -12.64 -55.42 POINT (-55.42000 -12.64000) \n", "9 1 NaN -9.62 -36.82 POINT (-36.82000 -9.62000) \n", "10 1 NaN -19.19 -40.34 POINT (-40.34000 -19.19000) \n", "11 0 2008.0 -3.79 -52.48 POINT (-52.48000 -3.79000) \n", "12 0 2009.0 -5.20 -39.53 POINT (-39.53000 -5.20000) \n", "13 0 2011.0 -7.28 -36.72 POINT (-36.72000 -7.28000) \n", "14 0 2022.0 -5.81 -36.59 POINT (-36.59000 -5.81000) \n", "15 0 2011.0 -22.25 -42.66 POINT (-42.66000 -22.25000) \n", "16 0 2015.0 -13.29 -41.71 POINT (-41.71000 -13.29000) \n", "17 0 2019.0 -6.60 -42.28 POINT (-42.28000 -6.60000) \n", "18 0 1996.0 -15.83 -47.86 POINT (-47.86000 -15.83000) \n", "19 0 2020.0 -24.89 -51.55 POINT (-51.55000 -24.89000) \n", "20 0 2014.0 -27.45 -50.95 POINT (-50.95000 -27.45000) \n", "21 0 2008.0 -15.98 -49.86 POINT (-49.86000 -15.98000) \n", "22 0 2014.0 -3.47 -65.10 POINT (-65.10000 -3.47000) \n", "23 0 2012.0 -9.46 -48.26 POINT (-48.26000 -9.46000) \n", "24 0 1994.0 -30.17 -53.50 POINT (-53.50000 -30.17000) \n", "25 0 2010.0 -10.83 -63.34 POINT (-63.34000 -10.83000) \n", "26 0 2003.0 -22.19 -48.79 POINT (-48.79000 -22.19000) \n", "\n", " marker_color \n", "0 red \n", "1 red \n", "2 red \n", "3 red \n", "4 red \n", "5 red \n", "6 red \n", "7 red \n", "8 red \n", "9 red \n", "10 red \n", "11 green \n", "12 green \n", "13 green \n", "14 green \n", "15 green \n", "16 green \n", "17 green \n", "18 green \n", "19 green \n", "20 green \n", "21 green \n", "22 green \n", "23 green \n", "24 green \n", "25 green \n", "26 green " ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "#Creating colors for OODC-YES OR NO\n", "oodc_capitais['marker_color'] = pd.cut(oodc_capitais['OODC_IMPLEMENT_V2'], bins=2, \n", " labels=['green', 'red'])\n", "\n", "oodc_capitais" ] }, { "cell_type": "code", "execution_count": 4, "id": "c403138b", "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div style=\"width:100%;\"><div style=\"position:relative;width:100%;height:0;padding-bottom:60%;\"><span style=\"color:#565656\">Make this Notebook Trusted to load map: File -> Trust Notebook</span><iframe srcdoc=\"<!DOCTYPE html>\n", "<head> \n", " <meta http-equiv="content-type" content="text/html; charset=UTF-8" />\n", " \n", " <script>\n", " L_NO_TOUCH = false;\n", " L_DISABLE_3D = false;\n", " </script>\n", " \n", " <style>html, body {width: 100%;height: 100%;margin: 0;padding: 0;}</style>\n", " <style>#map {position:absolute;top:0;bottom:0;right:0;left:0;}</style>\n", " <script src="https://cdn.jsdelivr.net/npm/leaflet@1.6.0/dist/leaflet.js"></script>\n", " <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>\n", " <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>\n", " <script src="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.js"></script>\n", " <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet@1.6.0/dist/leaflet.css"/>\n", " <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"/>\n", " <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"/>\n", " <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css"/>\n", " <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.css"/>\n", " <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/python-visualization/folium/folium/templates/leaflet.awesome.rotate.min.css"/>\n", " \n", " <meta name="viewport" content="width=device-width,\n", " initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />\n", " <style>\n", " #map_b930743f217ce9992076d85cca135c21 {\n", " position: relative;\n", " width: 100.0%;\n", " height: 100.0%;\n", " left: 0.0%;\n", " top: 0.0%;\n", " }\n", " </style>\n", " \n", "</head>\n", "<body> \n", " \n", " <div class="folium-map" id="map_b930743f217ce9992076d85cca135c21" ></div>\n", " \n", "</body>\n", "<script> \n", " \n", " var map_b930743f217ce9992076d85cca135c21 = L.map(\n", " "map_b930743f217ce9992076d85cca135c21",\n", " {\n", " center: [-15.7975, -47.8919],\n", " crs: L.CRS.EPSG3857,\n", " zoom: 4,\n", " zoomControl: true,\n", " preferCanvas: false,\n", " }\n", " );\n", "\n", " \n", "\n", " \n", " \n", " var tile_layer_70c66b3f2d3686ebf51e09843b23ac81 = L.tileLayer(\n", " "https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png",\n", " {"attribution": "\\u0026copy; \\u003ca href=\\"http://www.openstreetmap.org/copyright\\"\\u003eOpenStreetMap\\u003c/a\\u003e contributors \\u0026copy; \\u003ca href=\\"http://cartodb.com/attributions\\"\\u003eCartoDB\\u003c/a\\u003e, CartoDB \\u003ca href =\\"http://cartodb.com/attributions\\"\\u003eattributions\\u003c/a\\u003e", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var circle_marker_fc9a0ddc7d70017f5177192a12149119 = L.circleMarker(\n", " [-10.57, -37.45],\n", " {"bubblingMouseEvents": true, "color": "red", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "red", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_8e271d14de5167ce3f907a7b9af5f47d = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_fb2303a7b2344db2fd08c424655b7978 = $(`<div id="html_fb2303a7b2344db2fd08c424655b7978" style="width: 100.0%; height: 100.0%;"> - City: ARACAJU<br> - OODC legislation?: nan<br> - OODC implemented?: No</div>`)[0];\n", " popup_8e271d14de5167ce3f907a7b9af5f47d.setContent(html_fb2303a7b2344db2fd08c424655b7978);\n", " \n", "\n", " circle_marker_fc9a0ddc7d70017f5177192a12149119.bindPopup(popup_8e271d14de5167ce3f907a7b9af5f47d)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_1377d1e5644979d1d0b0537c61a39223 = L.circleMarker(\n", " [1.99, -61.33],\n", " {"bubblingMouseEvents": true, "color": "red", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "red", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_28ca0e1ce31208a77d3afd3a253940dc = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_dfe6cee1e9be09b778310a4c503d13b6 = $(`<div id="html_dfe6cee1e9be09b778310a4c503d13b6" style="width: 100.0%; height: 100.0%;"> - City: BOA VISTA<br> - OODC legislation?: nan<br> - OODC implemented?: No</div>`)[0];\n", " popup_28ca0e1ce31208a77d3afd3a253940dc.setContent(html_dfe6cee1e9be09b778310a4c503d13b6);\n", " \n", "\n", " circle_marker_1377d1e5644979d1d0b0537c61a39223.bindPopup(popup_28ca0e1ce31208a77d3afd3a253940dc)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_084fa019b13b96e850f470d035472954 = L.circleMarker(\n", " [-20.51, -54.54],\n", " {"bubblingMouseEvents": true, "color": "red", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "red", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_a4642fff7db3b73656fcf8dc65fa4f2b = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_bb3b6b8d992c37786c40bbd43cf33924 = $(`<div id="html_bb3b6b8d992c37786c40bbd43cf33924" style="width: 100.0%; height: 100.0%;"> - City: CAMPO GRANDE<br> - OODC legislation?: nan<br> - OODC implemented?: No</div>`)[0];\n", " popup_a4642fff7db3b73656fcf8dc65fa4f2b.setContent(html_bb3b6b8d992c37786c40bbd43cf33924);\n", " \n", "\n", " circle_marker_084fa019b13b96e850f470d035472954.bindPopup(popup_a4642fff7db3b73656fcf8dc65fa4f2b)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_778950b8f92e1258bc2179e779de4f03 = L.circleMarker(\n", " [1.41, -51.77],\n", " {"bubblingMouseEvents": true, "color": "red", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "red", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_02541f4a4d612c46055c0c35726fa4af = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_03fa6698543a5c7029a70887a940c1c8 = $(`<div id="html_03fa6698543a5c7029a70887a940c1c8" style="width: 100.0%; height: 100.0%;"> - City: MACAPA<br> - OODC legislation?: nan<br> - OODC implemented?: No</div>`)[0];\n", " popup_02541f4a4d612c46055c0c35726fa4af.setContent(html_03fa6698543a5c7029a70887a940c1c8);\n", " \n", "\n", " circle_marker_778950b8f92e1258bc2179e779de4f03.bindPopup(popup_02541f4a4d612c46055c0c35726fa4af)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_625339cc7a071cff621ccc2997a208ca = L.circleMarker(\n", " [-8.38, -37.86],\n", " {"bubblingMouseEvents": true, "color": "red", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "red", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_107bf80989efa45c78aaea7e2c9c9b22 = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_082bd81d307b9ce2b633ac9d8a0f9aab = $(`<div id="html_082bd81d307b9ce2b633ac9d8a0f9aab" style="width: 100.0%; height: 100.0%;"> - City: RECIFE<br> - OODC legislation?: nan<br> - OODC implemented?: No</div>`)[0];\n", " popup_107bf80989efa45c78aaea7e2c9c9b22.setContent(html_082bd81d307b9ce2b633ac9d8a0f9aab);\n", " \n", "\n", " circle_marker_625339cc7a071cff621ccc2997a208ca.bindPopup(popup_107bf80989efa45c78aaea7e2c9c9b22)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_b7d5f50c91612dce3c815d43676858d0 = L.circleMarker(\n", " [-8.77, -70.55],\n", " {"bubblingMouseEvents": true, "color": "red", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "red", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_c96980fb85aa0aab269307dc2c0ebab2 = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_a7e45ac546b0933047f66fb8d11682b6 = $(`<div id="html_a7e45ac546b0933047f66fb8d11682b6" style="width: 100.0%; height: 100.0%;"> - City: RIO BRANCO<br> - OODC legislation?: nan<br> - OODC implemented?: No</div>`)[0];\n", " popup_c96980fb85aa0aab269307dc2c0ebab2.setContent(html_a7e45ac546b0933047f66fb8d11682b6);\n", " \n", "\n", " circle_marker_b7d5f50c91612dce3c815d43676858d0.bindPopup(popup_c96980fb85aa0aab269307dc2c0ebab2)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_860e2d1606ae9f961dc6886efce4a5dd = L.circleMarker(\n", " [-5.42, -45.44],\n", " {"bubblingMouseEvents": true, "color": "red", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "red", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_bd96dfada9f889a6109b6f1460719341 = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_a821897a0ce4d0f0ce0550a137b96340 = $(`<div id="html_a821897a0ce4d0f0ce0550a137b96340" style="width: 100.0%; height: 100.0%;"> - City: SAO LUIS<br> - OODC legislation?: nan<br> - OODC implemented?: No</div>`)[0];\n", " popup_bd96dfada9f889a6109b6f1460719341.setContent(html_a821897a0ce4d0f0ce0550a137b96340);\n", " \n", "\n", " circle_marker_860e2d1606ae9f961dc6886efce4a5dd.bindPopup(popup_bd96dfada9f889a6109b6f1460719341)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_cc5fc69c876fc4c579e71fffc5b6d484 = L.circleMarker(\n", " [-18.1, -44.38],\n", " {"bubblingMouseEvents": true, "color": "red", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "red", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_6d194b2aeee29e7b043ba93387a99f15 = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_49078e86d00fe664a102d5f0eecbef8e = $(`<div id="html_49078e86d00fe664a102d5f0eecbef8e" style="width: 100.0%; height: 100.0%;"> - City: BELO HORIZONTE<br> - OODC legislation?: nan<br> - OODC implemented?: No</div>`)[0];\n", " popup_6d194b2aeee29e7b043ba93387a99f15.setContent(html_49078e86d00fe664a102d5f0eecbef8e);\n", " \n", "\n", " circle_marker_cc5fc69c876fc4c579e71fffc5b6d484.bindPopup(popup_6d194b2aeee29e7b043ba93387a99f15)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_9f5724d5c675efe5ac4c3b0a891357af = L.circleMarker(\n", " [-12.64, -55.42],\n", " {"bubblingMouseEvents": true, "color": "red", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "red", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_b152e34ee622c0aab39dc190f724d0be = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_ed10b56cad63b22a368c80b906ecc579 = $(`<div id="html_ed10b56cad63b22a368c80b906ecc579" style="width: 100.0%; height: 100.0%;"> - City: CUIABA<br> - OODC legislation?: nan<br> - OODC implemented?: No</div>`)[0];\n", " popup_b152e34ee622c0aab39dc190f724d0be.setContent(html_ed10b56cad63b22a368c80b906ecc579);\n", " \n", "\n", " circle_marker_9f5724d5c675efe5ac4c3b0a891357af.bindPopup(popup_b152e34ee622c0aab39dc190f724d0be)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_ec05e50dbf76d0fd35c02e759dc93ce1 = L.circleMarker(\n", " [-9.62, -36.82],\n", " {"bubblingMouseEvents": true, "color": "red", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "red", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_2b1d6c47621b28ecff4b2278b0bfde82 = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_9489c5c61a25c5fcfb248084ed81fd3d = $(`<div id="html_9489c5c61a25c5fcfb248084ed81fd3d" style="width: 100.0%; height: 100.0%;"> - City: MACEIO<br> - OODC legislation?: nan<br> - OODC implemented?: No</div>`)[0];\n", " popup_2b1d6c47621b28ecff4b2278b0bfde82.setContent(html_9489c5c61a25c5fcfb248084ed81fd3d);\n", " \n", "\n", " circle_marker_ec05e50dbf76d0fd35c02e759dc93ce1.bindPopup(popup_2b1d6c47621b28ecff4b2278b0bfde82)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_5f8b0a51e4cab24bac2ac62beb0fd889 = L.circleMarker(\n", " [-19.19, -40.34],\n", " {"bubblingMouseEvents": true, "color": "red", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "red", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_628257f748c405dec5ac0bd29d6c1ff3 = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_a19d31ecd3a9915c548c40479eb579e5 = $(`<div id="html_a19d31ecd3a9915c548c40479eb579e5" style="width: 100.0%; height: 100.0%;"> - City: VITORIA<br> - OODC legislation?: nan<br> - OODC implemented?: No</div>`)[0];\n", " popup_628257f748c405dec5ac0bd29d6c1ff3.setContent(html_a19d31ecd3a9915c548c40479eb579e5);\n", " \n", "\n", " circle_marker_5f8b0a51e4cab24bac2ac62beb0fd889.bindPopup(popup_628257f748c405dec5ac0bd29d6c1ff3)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_caaa42959a9314473d9bd74789330697 = L.circleMarker(\n", " [-3.79, -52.48],\n", " {"bubblingMouseEvents": true, "color": "green", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "green", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_828cb79d98d58e9ed0a0fc2d028d1acc = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_38cbc51e33c58ff799523452422bb876 = $(`<div id="html_38cbc51e33c58ff799523452422bb876" style="width: 100.0%; height: 100.0%;"> - City: BELEM<br> - OODC legislation?: 2008.0<br> - OODC implemented?: Yes</div>`)[0];\n", " popup_828cb79d98d58e9ed0a0fc2d028d1acc.setContent(html_38cbc51e33c58ff799523452422bb876);\n", " \n", "\n", " circle_marker_caaa42959a9314473d9bd74789330697.bindPopup(popup_828cb79d98d58e9ed0a0fc2d028d1acc)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_0da5c81d76fee3183eb3fe3d932094dd = L.circleMarker(\n", " [-5.2, -39.53],\n", " {"bubblingMouseEvents": true, "color": "green", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "green", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_26eed56119222a858838c7081ab9197d = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_b378cd701204989c80ec9f5557979d07 = $(`<div id="html_b378cd701204989c80ec9f5557979d07" style="width: 100.0%; height: 100.0%;"> - City: FORTALEZA<br> - OODC legislation?: 2009.0<br> - OODC implemented?: Yes</div>`)[0];\n", " popup_26eed56119222a858838c7081ab9197d.setContent(html_b378cd701204989c80ec9f5557979d07);\n", " \n", "\n", " circle_marker_0da5c81d76fee3183eb3fe3d932094dd.bindPopup(popup_26eed56119222a858838c7081ab9197d)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_2af415d5044609705c5f30b3d95a19ec = L.circleMarker(\n", " [-7.28, -36.72],\n", " {"bubblingMouseEvents": true, "color": "green", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "green", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_8dc55508b024d4c16159dcdc315a7450 = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_c23cc698ead8221daa2ba97320671b29 = $(`<div id="html_c23cc698ead8221daa2ba97320671b29" style="width: 100.0%; height: 100.0%;"> - City: JOAO PESSOA<br> - OODC legislation?: 2011.0<br> - OODC implemented?: Yes</div>`)[0];\n", " popup_8dc55508b024d4c16159dcdc315a7450.setContent(html_c23cc698ead8221daa2ba97320671b29);\n", " \n", "\n", " circle_marker_2af415d5044609705c5f30b3d95a19ec.bindPopup(popup_8dc55508b024d4c16159dcdc315a7450)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_2f183af80b26ff373163d30bd59ab6aa = L.circleMarker(\n", " [-5.81, -36.59],\n", " {"bubblingMouseEvents": true, "color": "green", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "green", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_751790e6e00c9ff5fc7e14da8191502d = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_5692a94b21803f27d620095540791d21 = $(`<div id="html_5692a94b21803f27d620095540791d21" style="width: 100.0%; height: 100.0%;"> - City: NATAL<br> - OODC legislation?: 2022.0<br> - OODC implemented?: Yes</div>`)[0];\n", " popup_751790e6e00c9ff5fc7e14da8191502d.setContent(html_5692a94b21803f27d620095540791d21);\n", " \n", "\n", " circle_marker_2f183af80b26ff373163d30bd59ab6aa.bindPopup(popup_751790e6e00c9ff5fc7e14da8191502d)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_3e5240fab6464cfb6857ad1f43cf3003 = L.circleMarker(\n", " [-22.25, -42.66],\n", " {"bubblingMouseEvents": true, "color": "green", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "green", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_0bacfc16008de0cf304300e7aabeb58e = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_1c25359aa261b044900eb3651d3d8718 = $(`<div id="html_1c25359aa261b044900eb3651d3d8718" style="width: 100.0%; height: 100.0%;"> - City: RIO DE JANEIRO<br> - OODC legislation?: 2011.0<br> - OODC implemented?: Yes</div>`)[0];\n", " popup_0bacfc16008de0cf304300e7aabeb58e.setContent(html_1c25359aa261b044900eb3651d3d8718);\n", " \n", "\n", " circle_marker_3e5240fab6464cfb6857ad1f43cf3003.bindPopup(popup_0bacfc16008de0cf304300e7aabeb58e)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_91fe6026e0b9c3eeafcb261ffa24ca38 = L.circleMarker(\n", " [-13.29, -41.71],\n", " {"bubblingMouseEvents": true, "color": "green", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "green", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_b67ff8ba4a5719be169d27731add853b = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_c7d333ca1b3ac3b4c5ce671ca451138b = $(`<div id="html_c7d333ca1b3ac3b4c5ce671ca451138b" style="width: 100.0%; height: 100.0%;"> - City: SALVADOR<br> - OODC legislation?: 2015.0<br> - OODC implemented?: Yes</div>`)[0];\n", " popup_b67ff8ba4a5719be169d27731add853b.setContent(html_c7d333ca1b3ac3b4c5ce671ca451138b);\n", " \n", "\n", " circle_marker_91fe6026e0b9c3eeafcb261ffa24ca38.bindPopup(popup_b67ff8ba4a5719be169d27731add853b)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_2b4bcb3a2a5e6d848d6378ee6214e367 = L.circleMarker(\n", " [-6.6, -42.28],\n", " {"bubblingMouseEvents": true, "color": "green", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "green", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_cc6f161eae9a64fec267371bbcc961ff = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_96a3b52a1bb5a9cab552d8e857895b62 = $(`<div id="html_96a3b52a1bb5a9cab552d8e857895b62" style="width: 100.0%; height: 100.0%;"> - City: TERESINA<br> - OODC legislation?: 2019.0<br> - OODC implemented?: Yes</div>`)[0];\n", " popup_cc6f161eae9a64fec267371bbcc961ff.setContent(html_96a3b52a1bb5a9cab552d8e857895b62);\n", " \n", "\n", " circle_marker_2b4bcb3a2a5e6d848d6378ee6214e367.bindPopup(popup_cc6f161eae9a64fec267371bbcc961ff)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_b57fa64bf2965bdec33f52885f24d8fd = L.circleMarker(\n", " [-15.83, -47.86],\n", " {"bubblingMouseEvents": true, "color": "green", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "green", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_d41801956ebc1ab81d9ef89e0d458f68 = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_a06aaea3d7696666723210640a8cf3fa = $(`<div id="html_a06aaea3d7696666723210640a8cf3fa" style="width: 100.0%; height: 100.0%;"> - City: BRASILIA<br> - OODC legislation?: 1996.0<br> - OODC implemented?: Yes</div>`)[0];\n", " popup_d41801956ebc1ab81d9ef89e0d458f68.setContent(html_a06aaea3d7696666723210640a8cf3fa);\n", " \n", "\n", " circle_marker_b57fa64bf2965bdec33f52885f24d8fd.bindPopup(popup_d41801956ebc1ab81d9ef89e0d458f68)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_83db038e7e75cea36c6e10b66cdd31ac = L.circleMarker(\n", " [-24.89, -51.55],\n", " {"bubblingMouseEvents": true, "color": "green", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "green", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_72e7bafb2bbed70bbc72d452a4efb510 = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_b66f9f787126d8739905f8419401f1b1 = $(`<div id="html_b66f9f787126d8739905f8419401f1b1" style="width: 100.0%; height: 100.0%;"> - City: CURITIBA<br> - OODC legislation?: 2020.0<br> - OODC implemented?: Yes</div>`)[0];\n", " popup_72e7bafb2bbed70bbc72d452a4efb510.setContent(html_b66f9f787126d8739905f8419401f1b1);\n", " \n", "\n", " circle_marker_83db038e7e75cea36c6e10b66cdd31ac.bindPopup(popup_72e7bafb2bbed70bbc72d452a4efb510)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_cf852790c561a33a4ea34b2c64e78fa0 = L.circleMarker(\n", " [-27.45, -50.95],\n", " {"bubblingMouseEvents": true, "color": "green", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "green", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_d895eed4d46e070599a37d5f153acc73 = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_1b2269bb0fd8954933b2cfcd805b383e = $(`<div id="html_1b2269bb0fd8954933b2cfcd805b383e" style="width: 100.0%; height: 100.0%;"> - City: FLORIANOPOLIS<br> - OODC legislation?: 2014.0<br> - OODC implemented?: Yes</div>`)[0];\n", " popup_d895eed4d46e070599a37d5f153acc73.setContent(html_1b2269bb0fd8954933b2cfcd805b383e);\n", " \n", "\n", " circle_marker_cf852790c561a33a4ea34b2c64e78fa0.bindPopup(popup_d895eed4d46e070599a37d5f153acc73)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_9fc65f4b2e09c7be9ced0d7823fd1fca = L.circleMarker(\n", " [-15.98, -49.86],\n", " {"bubblingMouseEvents": true, "color": "green", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "green", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_5e65ee3de6ffb7456755282f6d95db79 = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_dad11db76f044787e68c798906b1196c = $(`<div id="html_dad11db76f044787e68c798906b1196c" style="width: 100.0%; height: 100.0%;"> - City: GOIANIA<br> - OODC legislation?: 2008.0<br> - OODC implemented?: Yes</div>`)[0];\n", " popup_5e65ee3de6ffb7456755282f6d95db79.setContent(html_dad11db76f044787e68c798906b1196c);\n", " \n", "\n", " circle_marker_9fc65f4b2e09c7be9ced0d7823fd1fca.bindPopup(popup_5e65ee3de6ffb7456755282f6d95db79)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_552b75e26e76a4d5bb8812a39d0e4505 = L.circleMarker(\n", " [-3.47, -65.1],\n", " {"bubblingMouseEvents": true, "color": "green", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "green", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_96611fa22714fc1b8eca2606e1e1a4a2 = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_c8813b634448ab19b4d5a8f81efc69ee = $(`<div id="html_c8813b634448ab19b4d5a8f81efc69ee" style="width: 100.0%; height: 100.0%;"> - City: MANAUS<br> - OODC legislation?: 2014.0<br> - OODC implemented?: Yes</div>`)[0];\n", " popup_96611fa22714fc1b8eca2606e1e1a4a2.setContent(html_c8813b634448ab19b4d5a8f81efc69ee);\n", " \n", "\n", " circle_marker_552b75e26e76a4d5bb8812a39d0e4505.bindPopup(popup_96611fa22714fc1b8eca2606e1e1a4a2)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_d91432b45097431d09c8d01ff9300046 = L.circleMarker(\n", " [-9.46, -48.26],\n", " {"bubblingMouseEvents": true, "color": "green", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "green", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_189b1d8fbf653ca29fcae9bed8c90161 = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_dae6bf19e78882d421341473316e5bdf = $(`<div id="html_dae6bf19e78882d421341473316e5bdf" style="width: 100.0%; height: 100.0%;"> - City: PALMAS<br> - OODC legislation?: 2012.0<br> - OODC implemented?: Yes</div>`)[0];\n", " popup_189b1d8fbf653ca29fcae9bed8c90161.setContent(html_dae6bf19e78882d421341473316e5bdf);\n", " \n", "\n", " circle_marker_d91432b45097431d09c8d01ff9300046.bindPopup(popup_189b1d8fbf653ca29fcae9bed8c90161)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_2e73ef9d31df96302cd01a1aa175233d = L.circleMarker(\n", " [-30.17, -53.5],\n", " {"bubblingMouseEvents": true, "color": "green", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "green", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_4bac4cdf27d241ed1bcaec1e19ad04fe = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_bb97ec6c5284d1d61bdb0078742dce7b = $(`<div id="html_bb97ec6c5284d1d61bdb0078742dce7b" style="width: 100.0%; height: 100.0%;"> - City: PORTO ALEGRE<br> - OODC legislation?: 1994.0<br> - OODC implemented?: Yes</div>`)[0];\n", " popup_4bac4cdf27d241ed1bcaec1e19ad04fe.setContent(html_bb97ec6c5284d1d61bdb0078742dce7b);\n", " \n", "\n", " circle_marker_2e73ef9d31df96302cd01a1aa175233d.bindPopup(popup_4bac4cdf27d241ed1bcaec1e19ad04fe)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_606ca8b16daa43483d8fd622cb2e4e96 = L.circleMarker(\n", " [-10.83, -63.34],\n", " {"bubblingMouseEvents": true, "color": "green", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "green", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_50ff5252c4cd9792b7abefaae583fa96 = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_787fb1d0823fedca39834fa58aa4fcc4 = $(`<div id="html_787fb1d0823fedca39834fa58aa4fcc4" style="width: 100.0%; height: 100.0%;"> - City: PORTO VELHO<br> - OODC legislation?: 2010.0<br> - OODC implemented?: Yes</div>`)[0];\n", " popup_50ff5252c4cd9792b7abefaae583fa96.setContent(html_787fb1d0823fedca39834fa58aa4fcc4);\n", " \n", "\n", " circle_marker_606ca8b16daa43483d8fd622cb2e4e96.bindPopup(popup_50ff5252c4cd9792b7abefaae583fa96)\n", " ;\n", "\n", " \n", " \n", " \n", " var circle_marker_58a30941e3c843eec8c97790a91c7885 = L.circleMarker(\n", " [-22.19, -48.79],\n", " {"bubblingMouseEvents": true, "color": "green", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "green", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 5, "stroke": true, "weight": 3}\n", " ).addTo(map_b930743f217ce9992076d85cca135c21);\n", " \n", " \n", " var popup_849f0c4b28ddc0c2d4216bf9bdd67e65 = L.popup({"maxWidth": 300, "minWidth": 100});\n", "\n", " \n", " var html_ace1d65ee63965d1e1fc5cce645b24a9 = $(`<div id="html_ace1d65ee63965d1e1fc5cce645b24a9" style="width: 100.0%; height: 100.0%;"> - City: SAO PAULO<br> - OODC legislation?: 2003.0<br> - OODC implemented?: Yes</div>`)[0];\n", " popup_849f0c4b28ddc0c2d4216bf9bdd67e65.setContent(html_ace1d65ee63965d1e1fc5cce645b24a9);\n", " \n", "\n", " circle_marker_58a30941e3c843eec8c97790a91c7885.bindPopup(popup_849f0c4b28ddc0c2d4216bf9bdd67e65)\n", " ;\n", "\n", " \n", " \n", "</script>\" style=\"position:absolute;width:100%;height:100%;left:0;top:0;border:none !important;\" allowfullscreen webkitallowfullscreen mozallowfullscreen></iframe></div></div>" ], "text/plain": [ "<folium.folium.Map at 0x15423a130>" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "#PLOTTING THE MAP\n", "\n", "m = folium.Map(location=[-15.7975, -47.8919], tiles='Cartodb positron', zoom_start=4)\n", "heat_data = [[point.xy[1][0], point.xy[0][0]] for point in oodc_capitais.geometry]\n", "\n", "for i, oodc_capitais in oodc_capitais.iterrows():\n", " coords = oodc_capitais.geometry.coords[0][::-1]\n", " marker = folium.CircleMarker(\n", " location=coords,\n", " radius=5,\n", " color=oodc_capitais['marker_color'],\n", " popup=folium.Popup(\" - City: \" + str(oodc_capitais['CAPITAL']) + '
' + \" - OODC legislation?: \" + str(oodc_capitais['ANO_REG'])+ '
' + \" - OODC implemented?: \" + str(oodc_capitais['OODC_IMPLEMENT']),max_width=300,min_width=100)\n", " )\n", " m.add_child(marker)\n", " if i > 100:\n", " break\n", "\n", "#plugins.MarkerCluster(heat_data).add_to(m)\n", "#plugins.HeatMap(heat_data).add_to(m)\n", "\n", "m\n", "#\n", "\n", "#m.save('presentation/html/m.html')\n" ] } ], "metadata": { "kernelspec": { "display_name": "geo_3", "language": "python", "name": "geo_3" }, "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.9.12" } }, "nbformat": 4, "nbformat_minor": 5 }