<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Agiraldoal on Medium]]></title>
        <description><![CDATA[Stories by Agiraldoal on Medium]]></description>
        <link>https://medium.com/@agiraldoal?source=rss-47238e61483------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*d2lFYubipBUDC_YQEbkCVQ.jpeg</url>
            <title>Stories by Agiraldoal on Medium</title>
            <link>https://medium.com/@agiraldoal?source=rss-47238e61483------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 14:55:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@agiraldoal/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to create a 3D geospatial dashboard with Python, Streamlit and Pydeck]]></title>
            <link>https://medium.com/@agiraldoal/how-to-create-a-3d-geospatial-dashboard-with-python-streamlit-and-pydeck-c1f2cc3c2cf4?source=rss-47238e61483------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1f2cc3c2cf4</guid>
            <category><![CDATA[medellin]]></category>
            <category><![CDATA[gis]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[pydeck]]></category>
            <category><![CDATA[streamlit]]></category>
            <dc:creator><![CDATA[Agiraldoal]]></dc:creator>
            <pubDate>Mon, 12 May 2025 03:56:50 GMT</pubDate>
            <atom:updated>2025-05-12T03:56:50.444Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*dip6-zJl1uaDqOMu.png" /><figcaption>📝 <em>This article is a translated version of my original post in Spanish. You can read it </em><a href="https://medium.com/@agiraldoal/c%C3%B3mo-crear-un-dashboard-geoespacial-3d-con-python-streamlit-y-pydeck-39812bb0e394"><em>here</em></a><em>.</em></figcaption></figure><p>Geospatial data visualization is no longer a privilege reserved for large platforms or proprietary tools. Today, with just a few Python scripts and open-source libraries like Streamlit and Pydeck, you can build interactive 3D dashboards that allow users to explore territories in a visual, impactful, and functional way.</p><p>In this article, I’ll walk you through how to create a 3D geospatial dashboard using vector data and interactive maps. The project uses a polygon layer representing the urban growth of Medellín — Colombia, based on an analysis of Sentinel satellite imagery (a topic I’ll cover in a future article). The result is a .geojson file — a lightweight, self-contained format ideal for geospatial apps due to its compatibility with multiple libraries.</p><p>Keep in mind: Streamlit’s free tier limits you to 1 GB of RAM, so optimizing data and performance is key to delivering a smooth user experience.</p><h3>🛠️ A Practical Project</h3><h4>1. Install Required Libraries</h4><p>I recommend using virtual environments to avoid package conflicts:</p><pre>pip install streamlit geopandas shapely pydeck plotly pandas numpy fiona pyogrio</pre><h4>2. Download Project Datasets</h4><p>Make sure you have these .geojson files available:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/0*T6lcPiPr7LUfYkM2.png" /></figure><p>📎 Source: <a href="https://github.com/Andrewco1/urban_grow_med">https://github.com/Andrewco1/urban_grow_med</a></p><h4>3. Import Required Libraries</h4><pre>import streamlit as st  <br>import geopandas as gpd  <br>import pandas as pd  <br>import pydeck as pdk  <br>import plotly.express as px  <br>import math</pre><ul><li>Streamlit: to build the web interface</li><li>GeoPandas: for working with vector geospatial data</li><li>Pandas: for tabular data manipulation</li><li>Pydeck: to render 3D geospatial visualizations</li><li>Plotly: for interactive charts</li><li>Math: used for calculations such as zoom estimation</li></ul><h4>4. Configure the Dashboard Layout and Title</h4><pre>st.set_page_config(layout=&quot;wide&quot;, page_title=&quot;Dashboard Urbano&quot;, page_icon=&quot;🌆&quot;)<br>st.title(&quot;🌆 Urban Growth Dashboard by Neighborhoods – MEDELLÍN, COLOMBIA&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/0*lZ1xct08HMNlDi7i.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*ei2zQZl4qSOLzl4v.png" /></figure><h4>5. Load Geospatial Data</h4><pre>@st.cache_data  <br>def load_data():  <br>    gdf_resultado = gpd.read_file(&quot;crecimiento_urbano_simplificado.geojson&quot;)  <br>    gdf_barrios = gpd.read_file(&quot;barrios_simplificado.geojson&quot;)  <br>    return gdf_resultado, gdf_barrios  <br><br>gdf, gdf_barrios = load_data()</pre><p>The @st.cache_data decorator helps cache the data so it doesn’t reload every time the user interacts. We load urban growth polygons and administrative boundaries for Medellín.</p><h4>6. Sidebar with Cascading Filters</h4><pre>st.sidebar.header(&quot;🔍 Filters&quot;)  <br>limites_disponibles = sorted(gdf[&quot;LIMITECOMU&quot;].dropna().unique())  <br>limites_seleccionados = st.sidebar.multiselect(&quot;Select commune(s)&quot;, options=limites_disponibles)  <br><br>gdf_comuna = gdf[gdf[&quot;LIMITECOMU&quot;].isin(limites_seleccionados)] if limites_seleccionados else gdf.copy()  <br>barrio_opciones = sorted(gdf_comuna[&quot;NOMBRE&quot;].dropna().unique())  <br>barrio_seleccionados = st.sidebar.multiselect(&quot;Select neighborhood(s)/rural area(s)&quot;, options=barrio_opciones)  <br><br>gdf_area = gdf_comuna[gdf_comuna[&quot;NOMBRE&quot;].isin(barrio_seleccionados)] if barrio_seleccionados else gdf_comuna.copy()  <br><br>min_area = float(gdf_area[&quot;area_cre_1&quot;].min()) if not gdf_area.empty else 0.0  <br>max_area = float(gdf_area[&quot;area_cre_1&quot;].max()) if not gdf_area.empty else 1.0</pre><p>This block creates a sidebar with multi-select filters for administrative areas and calculates the area range based on current data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/0*OF8-8zlVT_TPiWZ_.png" /></figure><h4>7. Area Range Slider Filter</h4><pre>area_range = st.sidebar.slider(  <br>    &quot;Filter by growth area (ha)&quot;,  <br>    min_value=min_area,  <br>    max_value=max_area,  <br>    value=(min_area, max_area)  <br>)  <br><br>gdf_filtrado = gdf_area[  <br>    (gdf_area[&quot;area_cre_1&quot;] &gt;= area_range[0]) &amp;  <br>    (gdf_area[&quot;area_cre_1&quot;] &lt;= area_range[1])  <br>]</pre><p>Creates a double-ended slider to filter polygons by area (in hectares). The result is stored in gdf_filtrado.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/0*nnjB4l_B2GjlFW5s.png" /></figure><h4>8. Create Custom Tooltips</h4><pre>gdf_filtrado[&quot;tooltip_text&quot;] = (  <br>    &quot;📍 &quot; + gdf_filtrado[&quot;NOMBRE&quot;] +  <br>    &quot;\n📐 Area: &quot; + gdf_filtrado[&quot;area_cre_1&quot;].round(2).astype(str) + &quot; ha&quot; +  <br>    &quot;\n📈 Growth %: &quot; + gdf_filtrado[&quot;porcentaje&quot;].round(2).astype(str) + &quot;%&quot;  <br>)</pre><p>This sets the custom tooltip that will show when hovering over a polygon.</p><h4>9. Calculate Zoom Level Based on Bounding Box</h4><pre>def calculate_zoom_level(bounds):  <br>    minx, miny, maxx, maxy = bounds  <br>    dx = abs(maxx - minx)  <br>    dy = abs(maxy - miny)  <br>    max_dim = max(dx, dy)  <br>    if max_dim == 0:  <br>        return 15  <br>    zoom = round(8 - math.log(max_dim) / math.log(2))  <br>    return min(max(zoom, 9), 16)</pre><p>Ensures the map adjusts its zoom level dynamically based on the selected area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/0*izI4zc_TrRl-IuKm.png" /></figure><h4>10. Render the 3D Map with Pydeck</h4><pre>if gdf_filtrado.empty:  <br>    st.warning(&quot;⚠️ No data matches the selected filters.&quot;)  <br>else:  <br>    layer_crecimiento = pdk.Layer(  <br>        &quot;GeoJsonLayer&quot;,  <br>        data=gdf_filtrado,  <br>        get_fill_color=&#39;[0, 200, 255, 160]&#39;,  <br>        get_line_color=&#39;[0, 0, 0]&#39;,  <br>        get_elevation=&quot;area_creci / 50&quot;,  <br>        elevation_scale=1,  <br>        extruded=True,  <br>        pickable=True,  <br>        auto_highlight=True,  <br>    )  <br><br>    layer_barrios = pdk.Layer(  <br>        &quot;GeoJsonLayer&quot;,  <br>        data=gdf_barrios,  <br>        get_fill_color=&#39;[100, 100, 100, 40]&#39;,  <br>        get_line_color=&#39;[200, 200, 200]&#39;,  <br>        line_width_min_pixels=1,  <br>        pickable=False  <br>    )  <br><br>    bounds = gdf_filtrado.total_bounds  <br>    lat_center = (bounds[1] + bounds[3]) / 2  <br>    lon_center = (bounds[0] + bounds[2]) / 2  <br>    zoom_level = calculate_zoom_level(bounds)  <br><br>    view_state = pdk.ViewState(  <br>        latitude=lat_center,  <br>        longitude=lon_center,  <br>        zoom=zoom_level,  <br>        pitch=45,  <br>    )  <br><br>    r = pdk.Deck(  <br>        layers=[layer_barrios, layer_crecimiento],  <br>        initial_view_state=view_state,  <br>        tooltip={&quot;text&quot;: &quot;{tooltip_text}&quot;},  <br>        map_style=&#39;mapbox://styles/mapbox/dark-v10&#39;  <br>    )  <br><br>    st.pydeck_chart(r)</pre><ul><li>layer_crecimiento: represents the main urban growth data</li><li>layer_barrios: serves as a visual base layer without interactivity</li><li>We use calculate_zoom_level to center the map and adapt to filtered data</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*JWxNR6e3s-hF1HkF.png" /></figure><p>➕ Final Notes and Credits</p><pre>st.markdown(&quot;------&quot;)</pre><p>Use this to leave final notes, disclaimers, data source acknowledgments, or technical observations.</p><p>🚀 Deploying with GitHub + Streamlit</p><ul><li>Upload your project to GitHub (app.py, .geojson files, requirements.txt)</li><li>Log into <a href="https://streamlit.io/">https://streamlit.io</a> using your GitHub account</li><li>Deploy the app by selecting the appropriate branch (main/master)</li><li>You’ll receive a live link like:<br><a href="https://your-repo-youruser.streamlit.app/">https://your-repo-youruser.streamlit.app</a></li></ul><p>💻 Full project available on GitHub:<br>👉 <a href="https://github.com/Andrewco1/urban_grow_med">https://github.com/Andrewco1/urban_grow_med</a></p><p>This is my first Medium article, so I’m thrilled you made it this far.<br>If you enjoyed it or have feedback, I’d love to hear your thoughts.<br>Thanks for reading — and cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1f2cc3c2cf4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cómo crear un dashboard geoespacial 3D con Python, Streamlit y Pydeck]]></title>
            <link>https://medium.com/@agiraldoal/c%C3%B3mo-crear-un-dashboard-geoespacial-3d-con-python-streamlit-y-pydeck-39812bb0e394?source=rss-47238e61483------2</link>
            <guid isPermaLink="false">https://medium.com/p/39812bb0e394</guid>
            <category><![CDATA[pydeck]]></category>
            <category><![CDATA[programing]]></category>
            <category><![CDATA[streamlit-app-deployment]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[gis]]></category>
            <dc:creator><![CDATA[Agiraldoal]]></dc:creator>
            <pubDate>Sat, 10 May 2025 04:46:17 GMT</pubDate>
            <atom:updated>2025-05-10T17:05:28.399Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jQXmPX2wsL2UdkoGHmNidw.png" /></figure><p>La visualización de datos geográficos ya no es un privilegio de grandes plataformas ni depende de herramientas propietarias. Hoy, con unos cuantos scripts en Python y bibliotecas open-source como Streamlit y Pydeck, puedes construir dashboards 3D interactivos que permiten explorar el territorio de forma visual, impactante y funcional.</p><p>En este artículo, te mostraré paso a paso cómo crear un dashboard geoespacial en 3D utilizando datos vectoriales y mapas interactivos. Como base, trabajaremos con una capa de polígonos que representa el crecimiento urbano de Medellín — Colombia, generada a partir del análisis de imágenes satelitales Sentinel (tema que profundizaré en otro artículo). El resultado es un archivo .geojson, un formato ideal para aplicaciones geográficas por su ligereza, estructura autocontenida y compatibilidad con múltiples librerías.</p><p>Además, Streamlit en su versión gratuita impone un límite de 1 GB de RAM, por lo que optimizar los datos y el rendimiento es clave para asegurar una experiencia relativamente fluida.</p><h3>Proyecto practico.</h3><h4>Instalar librerías.</h4><p>Recomiendo usar entornos virtuales para evitar conflictos entre paquetes.</p><pre>pip install streamlit geopandas shapely pydeck plotly pandas numpy fiona pyogrio</pre><h4>Descargar bases de datos del proyecto.</h4><p>Ten a la mano estos archivos geojson:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*8ZVXtI2DncYc_872PekcaA.png" /><figcaption>Fuente: <a href="https://github.com/Andrewco1/urban_grow_med">https://github.com/Andrewco1/urban_grow_med</a></figcaption></figure><h4>Importar librerías.</h4><pre>import streamlit as st<br>import geopandas as gpd<br>import pandas as pd<br>import pydeck as pdk<br>import plotly.express as px<br>import math</pre><ul><li>Streamlit: para crear la interfaz web de nuestra futura app.</li><li>GeoPandas: manejo de datos espaciales vectoriales.</li><li>Pandas: manipulación de datos tabulares.</li><li>Pydeck: visualización 3D de datos geoespaciales.</li><li>Plotly: gráficos interactivos para resumir los datos más relevantes.</li><li>Math: cálculos matemáticos como logaritmos para estimar el zoom en el mapa.</li></ul><h4>Título, icono y ancho completo del dashboard.</h4><pre>st.set_page_config(layout=&quot;wide&quot;, page_title=&quot;Dashboard Urbano&quot;, page_icon=&quot;🌆&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*lymYCcu2hH4kEVqe4w60pg.png" /></figure><h4>Título para el Dashboard.</h4><pre>st.title(&quot;🌆 Dashboard de Crecimiento Urbano por Barrios y Veredas MEDELLÍN - COLOMBIA&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*4Sb0exenKSa2ENUIA3FcEg.png" /></figure><h4>Carga de datos geoespaciales.</h4><pre># --- Cargar datos ---<br>@st.cache_data<br><br>def load_data():<br>    gdf_resultado = gpd.read_file(&quot;crecimiento_urbano_simplificado.geojson&quot;)<br>    gdf_barrios = gpd.read_file(&quot;barrios_simplificado.geojson&quot;)<br>    return gdf_resultado, gdf_barrios<br><br>gdf, gdf_barrios = load_data()</pre><p><strong>@st.cache_data</strong> este decorador nos es útil para almacenar caché para que no se tengan que cargar estos datos con cada interacción del usuario, recuerda que debemos optimizar.</p><p><strong>def load_data():</strong> cargamos la capa de polígonos de crecimiento urbano, de límites de barrio y vereda de la ciudad de Medellín — Colombia.</p><h4>Sidebar con filtros encadenados.</h4><pre>st.sidebar.header(&quot;🔍 Filtros&quot;)<br><br>limites_disponibles = sorted(gdf[&quot;LIMITECOMU&quot;].dropna().unique())<br>limites_seleccionados = st.sidebar.multiselect(&quot;Selecciona comuna(s)&quot;, options=limites_disponibles)<br><br>gdf_comuna = gdf[gdf[&quot;LIMITECOMU&quot;].isin(limites_seleccionados)] if limites_seleccionados else gdf.copy()<br>barrio_opciones = sorted(gdf_comuna[&quot;NOMBRE&quot;].dropna().unique())<br>barrio_seleccionados = st.sidebar.multiselect(&quot;Selecciona barrio(s)/vereda(s)&quot;, options=barrio_opciones)<br><br>gdf_area = gdf_comuna[gdf_comuna[&quot;NOMBRE&quot;].isin(barrio_seleccionados)] if barrio_seleccionados else gdf_comuna.copy()<br><br>min_area = float(gdf_area[&quot;area_cre_1&quot;].min()) if not gdf_area.empty else 0.0<br>max_area = float(gdf_area[&quot;area_cre_1&quot;].max()) if not gdf_area.empty else 1.0</pre><p>Con <strong>st.sidebar.header</strong> colocamos un encabezado en la barra lateral llamado “filtros”, Extrae los nombres únicos de las comunas (LIMITECOMU) del GeoDataFrame gdf, eliminamos valores nulos con dropna() y ordenamos alfabéticamente.</p><p><strong>st.sidebar.multiselect</strong> crea un filtro múltiple el cual queda cargado en “limites_seleccionados”</p><p>De igual forma procedemos con los filtros [“NOMBRE”] (refiere a los límites territoriales) y finalmente calculamos el mínimo y máximo del área transformada (area_cre_1).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*QUnHU_27uCFaStgs1r7nAg.png" /></figure><h4>Filtro control deslizante doble.</h4><pre>area_range = st.sidebar.slider(<br>    &quot;Filtrar por área de crecimiento (ha)&quot;,<br>    min_value=min_area,<br>    max_value=max_area,<br>    value=(min_area, max_area)<br>)<br><br>gdf_filtrado = gdf_area[<br>    (gdf_area[&quot;area_cre_1&quot;] &gt;= area_range[0]) &amp;<br>    (gdf_area[&quot;area_cre_1&quot;] &lt;= area_range[1])<br>]</pre><p><strong>st.sidebar.slider </strong>crea un control deslizante doble (rango) donde el usuario puede elegir un intervalo de área en hectáreas (ha).</p><p>min_area y max_area son los valores mínimo y máximo de área presentes en los datos actuales (gdf_area).</p><p>El resultado (area_range) es una tupla con los valores seleccionados: (valor_mínimo, valor_máximo).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/1*bm75OMUirQ78Jixjtc68YA.png" /></figure><h4>Creación de tooltips personalizados</h4><pre>gdf_filtrado[&quot;tooltip_text&quot;] = (<br>    &quot;📍 &quot; + gdf_filtrado[&quot;NOMBRE&quot;] +<br>    &quot;\n📐 Área: &quot; + gdf_filtrado[&quot;area_cre_1&quot;].round(2).astype(str) + &quot; ha&quot; +<br>    &quot;\n📈 % crecimiento: &quot; + gdf_filtrado[&quot;porcentaje&quot;].round(2).astype(str) + &quot;%&quot;<br>)</pre><p>Esto es importante para crear el texto que vamos a visualizar luego cuando pasemos el cursor sobre uno de los polígonos y nos de información y estadísticas sobre el mismo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*ONapnU8GXyItkgtRJGQYhw.png" /></figure><h4>Calculo de zoom para la visualización del mapa</h4><pre>def calculate_zoom_level(bounds):<br>    minx, miny, maxx, maxy = bounds<br>    dx = abs(maxx - minx)<br>    dy = abs(maxy - miny)<br>    max_dim = max(dx, dy)<br>    if max_dim == 0:<br>        return 15<br>    zoom = round(8 - math.log(max_dim) / math.log(2))<br>    return min(max(zoom, 9), 16)<br></pre><p>Como vas a aplicar filtros, esto va a generar que el mapa refresque tu set de datos, por lo cual debes asegurarte de que el level del zoom sea el correcto. En general lo que hace es un bounding box, a partir de las coordenadas mínimas y máximas a mostrar, con lo cual <strong>max_dim</strong> representará que tan amplio es el área.</p><h4>Mapa 3D con Pydeck</h4><pre>if gdf_filtrado.empty:<br>    st.warning(&quot;⚠️ No hay datos que coincidan con los filtros seleccionados.&quot;)<br>else:<br>    layer_crecimiento = pdk.Layer(<br>        &quot;GeoJsonLayer&quot;,<br>        data=gdf_filtrado,<br>        get_fill_color=&#39;[0, 200, 255, 160]&#39;,<br>        get_line_color=&#39;[0, 0, 0]&#39;,<br>        get_elevation=&quot;area_creci / 50&quot;,<br>        elevation_scale=1,<br>        extruded=True,<br>        pickable=True,<br>        auto_highlight=True,<br>    )<br><br>    layer_barrios = pdk.Layer(<br>        &quot;GeoJsonLayer&quot;,<br>        data=gdf_barrios,<br>        get_fill_color=&#39;[100, 100, 100, 40]&#39;,<br>        get_line_color=&#39;[200, 200, 200]&#39;,<br>        line_width_min_pixels=1,<br>        pickable=False<br>    )<br><br>    bounds = gdf_filtrado.total_bounds<br>    lat_center = (bounds[1] + bounds[3]) / 2<br>    lon_center = (bounds[0] + bounds[2]) / 2<br>    zoom_level = calculate_zoom_level(bounds)<br><br>    view_state = pdk.ViewState(<br>        latitude=lat_center,<br>        longitude=lon_center,<br>        zoom=zoom_level,<br>        pitch=45,<br>    )<br><br>    r = pdk.Deck(<br>        layers=[layer_barrios, layer_crecimiento],<br>        initial_view_state=view_state,<br>        tooltip={&quot;text&quot;: &quot;{tooltip_text}&quot;},<br>        map_style=&#39;mapbox://styles/mapbox/dark-v10&#39;<br>    )<br><br>    st.pydeck_chart(r)</pre><p>En <strong>layer_crecimiento </strong>indicamos que trabajaremos con geometrías vectoriales<strong> “</strong>GeoJsonLayer”, configuramos el color de relleno con formato RGBA, la altura se calcula a partir de la columna “area_creci”, dividida por 50 (esto puede cambiar según los datos) para mantener proporción y le damos interactividad con pickable y auto_highlight.</p><p>En <strong>layer_barrios</strong> solo queremos la visualización de esta capa como referencia, pero sin interactuar con ella, definimos line_width_min_pixels para darle un grosor de al menos un píxel sin importar el nivel de zoom, pickable=False para que no sea interactiva.</p><p>Usamos <strong>calculate_zoom_level</strong> para calcular el centro geográfico para centrar el mapa y el área a mostrar.</p><p>Finalmente en <strong>(r)</strong> renderizamos el mapa con los layers, el texto que se muestra al pasar el ratón sobre un campo, elegimos el estilo de Mapbox para generarlo en streamlit con <strong>st.pydeck_chart(r).</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*6nTdEU500eLOmwhC1Bl5aQ.png" /></figure><h4>Créditos personales o comentarios adicionales</h4><pre>st.markdown(&quot;------&quot;)</pre><p>Usa <strong>st.markdown()</strong> para agregar comentarios finales a tu aplicación. Puedes incluir un disclaimer para aclarar responsabilidades legales, advertencias sobre el uso de los datos, agradecimientos o créditos a colaboradores, e incluso información técnica adicional o tus propias apreciaciones sobre el proyecto.</p><h4>GitHub y Streamlit</h4><ul><li>Sube tu proyecto a github con tu app.py principal, las bases de datos y tu lista de librerías necesarias requirements.txt</li><li>Crea una cuent en Streamlit e inicia sesión con tu cuenta de GitHub</li><li>Publica tu app seleccionando la Rama (main o master) de tu proyecto.</li><li>despliega la app, tadará un momento, pero cuando esté listo, te dará un link como este:</li></ul><pre>https://nombre-repo-nombreusuario.streamlit.app</pre><p>Si quieres revisar el proyecto completo lo encuentras en mi GitHub: <a href="https://github.com/Andrewco1/urban_grow_med">https://github.com/Andrewco1/urban_grow_med</a></p><p>Este es mi primer artículo en Medium, así que me alegra mucho que hayas llegado hasta el final. Si te gustó o tienes sugerencias, me encantaría leer tu comentario. ¡Gracias por leer y un saludo!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39812bb0e394" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>