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.
O que fica de foraWhat is left out
- Interação em tempo real (zoom, hover, arrastar): as figuras são estáticas. Para interação, gere tiles ou GeoJSON da camada Gold e sirva a um cliente.
- Mapas-base: as figuras usam só as geometrias, sem tiles de fundo.
- Serviços REST do Azure Maps (busca, rotas, clima): são fontes de dados para a Bronze, não renderização.
- Real-time interaction (zoom, hover, drag): the figures are static. For interaction, produce tiles or GeoJSON from the Gold layer and serve them to a client.
- Base maps: the figures use geometries only, with no background tiles.
- Azure Maps REST services (search, routing, weather): they are data sources for Bronze, not rendering.
Voltar para a arquitetura medalhão com Sedona e os GeoJSON para baixar.
Back to the Sedona medallion architecture and the GeoJSON downloads.