Skip to content

Commit 0fb19c9

Browse files
fbonzonkarussell
authored andcommitted
Improve usage of "use_miles" URL parameter (graphhopper#813)
1 parent 8318162 commit 0fb19c9

File tree

3 files changed

+67
-58
lines changed

3 files changed

+67
-58
lines changed

web/src/main/webapp/js/main-template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ $(document).ready(function (e) {
156156
}
157157
metaVersionInfo = messages.extractMetaVersionInfo(json);
158158

159-
mapLayer.initMap(bounds, setStartCoord, setIntermediateCoord, setEndCoord, urlParams.layer);
159+
mapLayer.initMap(bounds, setStartCoord, setIntermediateCoord, setEndCoord, urlParams.layer, urlParams.use_miles);
160160

161161
// execute query
162162
initFromParams(urlParams, true);
@@ -173,7 +173,7 @@ $(document).ready(function (e) {
173173
"maxLat": 90
174174
};
175175
nominatim.setBounds(bounds);
176-
mapLayer.initMap(bounds, setStartCoord, setIntermediateCoord, setEndCoord);
176+
mapLayer.initMap(bounds, setStartCoord, setIntermediateCoord, setEndCoord, urlParams.layer, urlParams.use_miles);
177177
});
178178

179179
$(window).resize(function () {

0 commit comments

Comments
 (0)