This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Inicia o mapa com o Leaflet | |
| var map = L.map('map', {center: [0,0], zoom: 2}); | |
| // Adiciona camada base (tiles do OpenStreetMap) | |
| L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map); | |
| // Camadas do CartoDB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Inicia o mapa com o Leaflet | |
| var map = L.map('map', {center: [0,0], zoom: 2}); | |
| // Adiciona camada base (tiles do OpenStreetMap) | |
| L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map); | |
| // Camadas do CartoDB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Parsing this spreadsheet: https://spreadsheets.google.com/pub?key=0Ah0xU81penP1dFNLWk5YMW41dkcwa1JNQXk3YUJoOXc&hl=en&output=html | |
| $url = 'http://spreadsheets.google.com/feeds/list/0Ah0xU81penP1dFNLWk5YMW41dkcwa1JNQXk3YUJoOXc/od6/public/values?alt=json'; | |
| $file= file_get_contents($url); | |
| $json = json_decode($file); | |
| $rows = $json->{'feed'}->{'entry'}; | |
| foreach($rows as $row) { | |
| echo '<p>'; |