@wemap/routers 11.0.0-alpha.14 → 11.0.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- package/src/wemap-multi/WemapMultiRouter.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -1644,7 +1644,7 @@ class WemapMultiRouter {
|
|
|
1644
1644
|
}
|
|
1645
1645
|
let ioMapItinerary;
|
|
1646
1646
|
const mapWithStart = ioMapsToTest.find((map) => map.isPointInside(start));
|
|
1647
|
-
const wemapOsmRouterOptions = !options || !("useStairs" in options)
|
|
1647
|
+
const wemapOsmRouterOptions = !options || !("useStairs" in options) || options.useStairs ? WemapOsmRouterOptions.DEFAULT : WemapOsmRouterOptions.WITHOUT_STAIRS;
|
|
1648
1648
|
if (mapWithStart && mapWithStart.isPointInside(end)) {
|
|
1649
1649
|
try {
|
|
1650
1650
|
ioMapItinerary = mapWithStart.getItineraryInsideMap(start, end, wemapOsmRouterOptions);
|