Merge pull request #134 from emiltin/frontend_url_format
frontend now uses ? instead of & to separete query params in urls
This commit is contained in:
		
						commit
						20fa2f8738
					
				| @ -139,7 +139,7 @@ function showResultsRoute(response) { | ||||
| 		routelink += '\');" value="Get Link"></div>'; | ||||
| 
 | ||||
| 		//Link for the GPX Download 
 | ||||
| 		var gpxLink = '(<a href="'+HOST_ROUTING_URL+'&start='+from.lat.toFixed(6)+','+from.lon.toFixed(6)+'&dest='+to.lat.toFixed(6)+','+to.lon.toFixed(6)+'&z='+this.map.getZoom(); | ||||
| 		var gpxLink = '(<a href="'+HOST_ROUTING_URL+'?start='+from.lat.toFixed(6)+','+from.lon.toFixed(6)+'&dest='+to.lat.toFixed(6)+','+to.lon.toFixed(6)+'&z='+this.map.getZoom(); | ||||
| 		for(i = 0; i < viaPointsVector.length; i++) { | ||||
| 				gpxLink += "&via=" + viaPointsVector[i][0] + "," + viaPointsVector[i][1]; | ||||
| 		} | ||||
|  | ||||
| @ -240,7 +240,7 @@ function computeViaRoute(pixel, isTemporary, skipViaPointsIndex) { | ||||
| 	var coordinate = map.getLonLatFromPixel(pixel); | ||||
| 	var via = coordinate.transform(EPSG_900913, EPSG_4326); | ||||
| 	var viaNodeInserted = false; | ||||
| 	var newURL = HOST_ROUTING_URL + "&start="+from.lat + ',' + from.lon + '&dest=' + to.lat + ',' + to.lon; | ||||
| 	var newURL = HOST_ROUTING_URL + "?start="+from.lat + ',' + from.lon + '&dest=' + to.lat + ',' + to.lon; | ||||
| 	newURL += '&geomformat=cmp'; | ||||
| 	for(var i = 0; i < viaPointsVector.length; i++) { | ||||
| 		if(i == nearestSegmentIndex) { //insert new via node here
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user