Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| project:electronomy [2013/03/22 17:22] – [Code] bernara3 | project:electronomy [2013/08/15 22:23] (current) – tagged loleg | ||
|---|---|---|---|
| Line 32: | Line 32: | ||
| * List and link your actual and ideal data sources. | * List and link your actual and ideal data sources. | ||
| + | |||
| + | ===== Capture d' | ||
| + | |||
| + | ===== Captures ===== | ||
| + | |||
| + | {{: | ||
| + | {{: | ||
| + | |||
| ===== Code ===== | ===== Code ===== | ||
| + | |||
| + | Index.html : | ||
| <code html> | <code html> | ||
| Line 118: | Line 128: | ||
| </ | </ | ||
| - | Problèmes à regler centroid | + | GetCentroid.html |
| - | Manque plus que le for each | + | |
| + | <code html> | ||
| + | < | ||
| + | <script src=" | ||
| + | |||
| + | < | ||
| + | $(document).ready(function() { | ||
| + | var url = ' | ||
| + | |||
| + | // A completer par le npa de toutes les communes | ||
| + | var test = new Array(); | ||
| + | test[0] = 3960; | ||
| + | test[1] = 1920; | ||
| + | test[2] = 1950; | ||
| + | |||
| + | for (var i=0; | ||
| + | |||
| + | $.getJSON(url + '? | ||
| + | $.each(data.results, | ||
| + | var content = "NPA: " +val.nr+ "< | ||
| + | content += " | ||
| + | var coord = new Array(); | ||
| + | $.each(val.bbox, | ||
| + | coord[i] = j; | ||
| + | }); | ||
| + | |||
| + | // Avoir la longitude et latitude de la commune | ||
| + | content += coord[0]+6400+" | ||
| + | content += coord[1]+6400; | ||
| + | content += "< | ||
| + | $('# | ||
| + | }); | ||
| + | }); | ||
| + | } | ||
| + | }); | ||
| + | </ | ||
| + | < | ||
| + | <div id=" | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | * Problèmes à regler centroid | ||
| + | | ||
| ===== Team ===== | ===== Team ===== | ||
| Line 126: | Line 179: | ||
| * Anthony Bernardo | * Anthony Bernardo | ||
| * Romain Paccolat | * Romain Paccolat | ||
| + | |||
| + | ===== Data ===== | ||
| + | |||
| + | * {{: | ||
| ===== Links ===== | ===== Links ===== | ||
| Line 133: | Line 190: | ||
| * Tools you used ... | * Tools you used ... | ||
| | | ||
| - | {{tag> | + | {{tag> |