﻿{"id":13918,"date":"2025-05-29T10:00:00","date_gmt":"2025-05-29T08:00:00","guid":{"rendered":"https:\/\/www.sigterritoires.fr\/?p=13918"},"modified":"2025-05-19T23:13:53","modified_gmt":"2025-05-19T21:13:53","slug":"leafletdesign-responsivo","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/pt\/leafletdesign-responsivo\/","title":{"rendered":"Leaflet:design responsivo"},"content":{"rendered":"\n<p>No final do curso introdut\u00f3rio de Leaflet, o miniprojeto final se parecia com o mapa a seguir:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_pc.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"329\" data-attachment-id=\"13898\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/leaflet-et-responsive\/carte_leaflet_sur_pc\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_pc.jpg?fit=1678%2C862&amp;ssl=1\" data-orig-size=\"1678,862\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"carte_leaflet_sur_pc\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_pc.jpg?fit=640%2C329&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_pc.jpg?resize=640%2C329&#038;ssl=1\" alt=\"\" class=\"wp-image-13898\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_pc.jpg?resize=1024%2C526&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_pc.jpg?resize=300%2C154&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_pc.jpg?resize=768%2C395&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_pc.jpg?resize=1536%2C789&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_pc.jpg?w=1678&amp;ssl=1 1678w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_pc.jpg?w=1280&amp;ssl=1 1280w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<p>Com um mapa que exibe dados geojson, um mini-mapa e um t\u00edtulo. Essa captura de tela foi feita em um PC e parece boa.<\/p>\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Contenu <\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/pt\/leafletdesign-responsivo\/#1Certifique-se_de_que_o_mapa_ocupe_toda_a_tela_sem_transbordar\" >1.Certifique-se de que o mapa ocupe toda a tela sem transbordar<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/pt\/leafletdesign-responsivo\/#2Tornar_o_cabecalho_responsivo\" >2.Tornar o cabe\u00e7alho responsivo<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/pt\/leafletdesign-responsivo\/#3Evitar_que_o_mapa_se_esconda_atras_do_cabecalho\" >3.Evitar que o mapa se esconda atr\u00e1s do cabe\u00e7alho<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/pt\/leafletdesign-responsivo\/#4Certifique-se_de_que_o_mapa_seja_redimensionado_corretamente\" >4.Certifique-se de que o mapa seja redimensionado corretamente<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/pt\/leafletdesign-responsivo\/#O_mini-mapa\" >O mini-mapa<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/pt\/leafletdesign-responsivo\/#Solucao_1_Oculte_o_MiniMap_em_telas_pequenas_consulta_de_midia_CSS\" >Solu\u00e7\u00e3o 1: Oculte o MiniMap em telas pequenas (consulta de m\u00eddia CSS)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/pt\/leafletdesign-responsivo\/#Solucao_2_forcar_o_MiniMap_a_se_dobrar_automaticamente_em_dispositivos_moveis\" >Solu\u00e7\u00e3o 2: for\u00e7ar o MiniMap a se dobrar automaticamente em dispositivos m\u00f3veis<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/pt\/leafletdesign-responsivo\/#Solucao_3_Reduzir_seu_tamanho_em_telas_pequenas\" >Solu\u00e7\u00e3o 3: Reduzir seu tamanho em telas pequenas<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/pt\/leafletdesign-responsivo\/#Recomendacao\" >Recomenda\u00e7\u00e3o<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/pt\/leafletdesign-responsivo\/#Resultado_final\" >Resultado final<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n\n<p>Mas como seria em um telefone celular?<\/p>\n\n\n\n<p>Aqui est\u00e1 a resposta:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_mobile.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"461\" height=\"1024\" data-attachment-id=\"13899\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/leaflet-et-responsive\/carte_leaflet_sur_mobile\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_mobile.jpg?fit=1080%2C2400&amp;ssl=1\" data-orig-size=\"1080,2400\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"carte_leaflet_sur_mobile\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_mobile.jpg?fit=461%2C1024&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_mobile.jpg?resize=461%2C1024&#038;ssl=1\" alt=\"\" class=\"wp-image-13899\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_mobile.jpg?resize=461%2C1024&amp;ssl=1 461w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_mobile.jpg?resize=135%2C300&amp;ssl=1 135w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_mobile.jpg?resize=768%2C1707&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_mobile.jpg?resize=691%2C1536&amp;ssl=1 691w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_mobile.jpg?resize=922%2C2048&amp;ssl=1 922w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_mobile.jpg?w=1080&amp;ssl=1 1080w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><\/a><\/figure>\n\n\n\n<p>N\u00e3o parece t\u00e3o bom!<\/p>\n\n\n\n<p>Como todo o gerenciamento da p\u00e1gina \u00e9 realizado localmente, mesmo que o mapa seja fornecido por meio de um servidor que adapta as p\u00e1ginas a diferentes tamanhos de tela (celulares, tablets, computadores), apenas o quadro do mapa ser\u00e1 adaptado e n\u00e3o o seu conte\u00fado.<\/p>\n\n\n\n<p>Portanto, essa adapta\u00e7\u00e3o deve ser feita no c\u00f3digo do Leaflet da p\u00e1gina.<\/p>\n\n\n\n<p>Para fazer isso, precisamos agir em quatro \u00e1reas principais:<\/p>\n\n\n\n<p>Traduzido com a vers\u00e3o gratuita do tradutor &#8211; DeepL.com<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1Certifique-se_de_que_o_mapa_ocupe_toda_a_tela_sem_transbordar\"><\/span>1.Certifique-se de que o mapa ocupe toda a tela sem transbordar<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>map { height: 100vh; }<\/code><\/pre>\n\n\n\n<p>Mas tenha cuidado, pois esse estilo pode ocultar a barra superior (cabe\u00e7alho) no celular. Aqui est\u00e1 uma abordagem melhor:<\/p>\n\n\n\n<p><strong>Solu\u00e7\u00e3o recomendada :<\/strong><\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<pre class=\"wp-block-code\"><code>html, body {\n  margin: 0;\n  padding: 0;\n  height: 100%;\n}\n\n#map {\n  position: absolute;\n  top: 70px; \/* Hauteur de ton header *\/\n  bottom: 0;\n  left: 0;\n  right: 0;\n}<\/code><\/pre>\n<\/div><\/div>\n<\/div><\/div>\n\n\n\n<p>A parte superior precisar\u00e1 ser ajustada para a altura real do cabe\u00e7alho.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2Tornar_o_cabecalho_responsivo\"><\/span>2.Tornar o cabe\u00e7alho responsivo<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\"><\/ol>\n\n\n\n<p>Adicione ao CSS :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>header {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  gap: 10px;\n  flex-wrap: wrap;\n  position: absolute;\n  z-index: 1000;\n  top: 10px;\n  left: 50%;\n  transform: translateX(-50%);\n  background: rgba(255, 255, 255, 0.9);\n  padding: 10px 20px;\n  border-radius: 8px;\n  box-shadow: 0 2px 6px rgba(0,0,0,0.2);\n  max-width: 90%;\n}\n\n.logo {\n  height: 40px; \/* Ajustable selon ta pr\u00e9f\u00e9rence *\/\n  max-width: 100%;\n}\n\n.title-group {\n  display: flex;\n  flex-direction: column;\n}\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3Evitar_que_o_mapa_se_esconda_atras_do_cabecalho\"><\/span>3.Evitar que o mapa se esconda atr\u00e1s do cabe\u00e7alho<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Certifique-se de que o cabe\u00e7alho seja absoluto e esteja acima do mapa, por exemplo (z-index: 1000), e que o mapa comece logo abaixo do cabe\u00e7alho.<\/p>\n\n\n\n<p>Se voc\u00ea preferir um cabe\u00e7alho fixo acima e o mapa ocupar o restante do espa\u00e7o:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>body, html {\n&nbsp; margin: 0;\n&nbsp; padding: 0;\n&nbsp; height: 100%;\n&nbsp; display: flex;\n&nbsp; flex-direction: column;\n}\nheader {\n&nbsp; flex: 0 0 auto;\n}\n#map {\n&nbsp; flex: 1 1 auto;\n}<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4Certifique-se_de_que_o_mapa_seja_redimensionado_corretamente\"><\/span>4.Certifique-se de que o mapa seja redimensionado corretamente<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Adicione ao folheto :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>window.addEventListener('resize', function () {\n&nbsp; map.invalidateSize();\n});<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"O_mini-mapa\"><\/span>O mini-mapa<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>Um problema comum \u00e9 que o MiniMap do Leaflet pode se tornar estranho em telas pequenas. Aqui est\u00e3o tr\u00eas solu\u00e7\u00f5es complementares que voc\u00ea pode implementar.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Solucao_1_Oculte_o_MiniMap_em_telas_pequenas_consulta_de_midia_CSS\"><\/span>Solu\u00e7\u00e3o 1: Oculte o MiniMap em telas pequenas (consulta de m\u00eddia CSS)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Adicione este bloco CSS ao &lt;style> :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@media screen and (max-width: 600px) {\n&nbsp; .leaflet-control-minimap {\n&nbsp;&nbsp;&nbsp; display: none !important;\n&nbsp; }\n}<\/code><\/pre>\n\n\n\n<p>Isso oculta o MiniMap completamente se a largura da tela for inferior a 600 pixels (voc\u00ea pode ajustar esse limite).<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Solucao_2_forcar_o_MiniMap_a_se_dobrar_automaticamente_em_dispositivos_moveis\"><\/span>Solu\u00e7\u00e3o 2: for\u00e7ar o MiniMap a se dobrar automaticamente em dispositivos m\u00f3veis<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Altere as op\u00e7\u00f5es no c\u00f3digo JS:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const miniMap = new L.Control.MiniMap(baseLayerMini, {\n&nbsp; toggleDisplay: true,\n&nbsp; minimized: window.innerWidth &lt; 600&nbsp; \/\/ r\u00e9duite par d\u00e9faut si petit \u00e9cran\n}).addTo(map);<\/code><\/pre>\n\n\n\n<p>Isso faz com que ele seja minimizado por padr\u00e3o em dispositivos m\u00f3veis, mas o usu\u00e1rio pode abri-lo.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Solucao_3_Reduzir_seu_tamanho_em_telas_pequenas\"><\/span>Solu\u00e7\u00e3o 3: Reduzir seu tamanho em telas pequenas<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Se voc\u00ea preferir deix\u00e1-lo vis\u00edvel, mas menor, adicione isso ao CSS:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@media screen and (max-width: 600px) {\n&nbsp; .leaflet-control-minimap {\n&nbsp;&nbsp;&nbsp; width: 100px !important;\n&nbsp;&nbsp;&nbsp; height: 100px !important;\n&nbsp; }\n&nbsp; .leaflet-control-minimap .leaflet-container {\n&nbsp;&nbsp;&nbsp; width: 100px !important;\n&nbsp;&nbsp;&nbsp; height: 100px !important;\n&nbsp; }\n}<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Recomendacao\"><\/span>Recomenda\u00e7\u00e3o<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Para uma experi\u00eancia de usu\u00e1rio fluida, a solu\u00e7\u00e3o 1 (ocultar) ou 2 (dobrar automaticamente) geralmente \u00e9 prefer\u00edvel em dispositivos m\u00f3veis, pois as telas s\u00e3o muito pequenas para exibir dois mapas de forma eficaz.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Resultado_final\"><\/span>Resultado final<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>Se a renderiza\u00e7\u00e3o no PC permanecer inalterada, com essas modifica\u00e7\u00f5es a renderiza\u00e7\u00e3o no celular ser\u00e1 a seguinte:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_responsive_sur_mobile.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"461\" height=\"1024\" data-attachment-id=\"13900\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/leaflet-et-responsive\/carte_leaflet_responsive_sur_mobile\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_responsive_sur_mobile.jpg?fit=1080%2C2400&amp;ssl=1\" data-orig-size=\"1080,2400\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"carte_leaflet_responsive_sur_mobile\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_responsive_sur_mobile.jpg?fit=461%2C1024&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_responsive_sur_mobile.jpg?resize=461%2C1024&#038;ssl=1\" alt=\"\" class=\"wp-image-13900\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_responsive_sur_mobile.jpg?resize=461%2C1024&amp;ssl=1 461w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_responsive_sur_mobile.jpg?resize=135%2C300&amp;ssl=1 135w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_responsive_sur_mobile.jpg?resize=768%2C1707&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_responsive_sur_mobile.jpg?resize=691%2C1536&amp;ssl=1 691w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_responsive_sur_mobile.jpg?resize=922%2C2048&amp;ssl=1 922w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_responsive_sur_mobile.jpg?w=1080&amp;ssl=1 1080w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>No final do curso introdut\u00f3rio de Leaflet, o miniprojeto final se parecia com o mapa a seguir: Com um mapa que exibe dados geojson, um mini-mapa e um t\u00edtulo. Essa captura de tela foi feita em&hellip;<\/p>\n","protected":false},"author":1,"featured_media":13899,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"give_campaign_id":0,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3021],"tags":[2937,3196],"class_list":["post-13918","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webmapping-pt","tag-leaflet-pt","tag-responsive-pt"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/05\/carte_leaflet_sur_mobile.jpg?fit=1080%2C2400&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p6XU0A-3Cu","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/13918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/comments?post=13918"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/13918\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media\/13899"}],"wp:attachment":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media?parent=13918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=13918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=13918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}