update leaflet-routing

This commit is contained in:
Norbert Renner 2014-05-14 11:40:52 +02:00
parent 7936afdd66
commit f1cae03a80
10 changed files with 245 additions and 40 deletions

View file

@ -141,7 +141,7 @@ var routing, data;
var coords = routing.toGeoJSON().coordinates;
var data = [];
for (var i = 0; i < coords.length; i++) {
data.push(coords[i][1] + ' ' + coords[i][0]);
data.push(coords[i][0] + ' ' + coords[i][1]);
}
data = 'LINESTRING(' + data.join(',') + ')';
$.post('http://mintur.ut.no/lib/ajax/post_geom.php?api_key=' + apiKey + '&tp_id=' + id, {coords: data}, function(data) {