Blog · Azure Maps · Python · Sedona

As amostras do Azure Maps, refeitas em PythonThe Azure Maps samples, re-done in Python

O repositório oficial Azure-Samples/AzureMapsCodeSamples (licença MIT) mostra o que o Web SDK do Azure Maps sabe desenhar. Aqui a pergunta é outra: o que cada amostra exige do tratamento de dados por trás do mapa, e como renderizar o resultado em Python em vez de no navegador.

The official Azure-Samples/AzureMapsCodeSamples repository (MIT licence) shows what the Azure Maps Web SDK can draw. The question here is different: what each sample demands from the data treatment behind the map, and how to render the result in Python instead of the browser.

Números honestos. O repositório tem hoje 286 amostras (não 284). Todas estão catalogadas abaixo, com link para o código original: eu não copiei o código delas. 29 amostras foram refeitas em Python por 14 portes (o mesmo desenho aparece em famílias de amostras parecidas); outras 79 ganharam uma receita de pipeline; 178 são só do navegador (controles, popups, animações, tiles, serviços REST) e não têm equivalente de tratamento de dados.

Honest numbers. The repository currently holds 286 samples (not 284). All of them are catalogued below with a link to the original code: I did not copy their code. 29 samples were re-done in Python through 14 ports (one drawing covers families of similar samples); another 79 got a pipeline recipe; 178 are browser-only (controls, popups, animations, tiles, REST services) with no data-treatment equivalent.

Como cada amostra vira pipelineHow each sample becomes a pipeline

A regra é separar o que é dado do que é interface. Coroplético, bolhas, calor, clusters, grades, buffers, uniões, simplificação e leitura de formatos são tratamento de dado: viram SQL do Sedona nas camadas Silver e Gold, e a figura sai do Python. Controles, popups e animações são interface do navegador.

The rule is to separate data from interface. Choropleth, bubbles, heat, clusters, grids, buffers, unions, simplification and file reading are data treatment: they become Sedona SQL in the Silver and Gold layers, and the figure comes from Python. Controls, popups and animations are browser interface.

Widget: os 14 portes em PythonWidget: the 14 ports in Python

Dados reais: dengue em São Paulo, semana epidemiológica 12 de 2025 (janela de 4 semanas), por município. Clique para ver o SQL do Sedona e o código Python de cada figura.

Real data: dengue in São Paulo, epidemiological week 12 of 2025 (4-week window), by municipality. Click to see the Sedona SQL and the Python code behind each figure.

Widget: catálogo das 286 amostrasWidget: the 286-sample catalogue

Busque, filtre por categoria e abra o detalhe: o que a amostra vira no pipeline e, quando existe, o porte em Python.

Search, filter by category and open the detail: what the sample becomes in the pipeline and, when there is one, the Python port.

O que fica de foraWhat is left out

Voltar para a arquitetura medalhão com Sedona e os GeoJSON para baixar.

Back to the Sedona medallion architecture and the GeoJSON downloads.