diff options
Diffstat (limited to 'resources/data.js')
-rw-r--r-- | resources/data.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/resources/data.js b/resources/data.js new file mode 100644 index 0000000..85a77c2 --- /dev/null +++ b/resources/data.js @@ -0,0 +1,9 @@ +function getVillages(area, zoom) { + var poly = "12.3 -12.3 12.4 -12.3 12.48 -12.25 12.35 -12.19"; + var query = 'data=[out:json];(node(poly:"' + poly + '");<;);out;'; + + converter = new op2geojson(); + converter.fetch("http://overpass-api.de/api/interpreter", query, zoom, function(data) { + + }); +} |