X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/783b5e3729228908d7404ae7404af1023501a906..0f3309291e0b67db10630cecf1fb6b1d6798e795:/vendor/assets/iD/iD/mapillary-js/mapillary.js diff --git a/vendor/assets/iD/iD/mapillary-js/mapillary.js b/vendor/assets/iD/iD/mapillary-js/mapillary.js index 1ee35a82a..6c1304e37 100644 --- a/vendor/assets/iD/iD/mapillary-js/mapillary.js +++ b/vendor/assets/iD/iD/mapillary-js/mapillary.js @@ -48413,8 +48413,11 @@ var PanService = /** @class */ (function () { return; } var panNodes$ = this._stateService.currentNode$.pipe(operators_1.switchMap(function (current) { + if (!current.merged) { + return rxjs_1.of([]); + } var current$ = rxjs_1.of(current); - var bounds = _this._graphCalculator.boundingBoxCorners(current.computedLatLon, 20); + var bounds = _this._graphCalculator.boundingBoxCorners(current.latLon, 20); var adjacent$ = _this._graphService .cacheBoundingBox$(bounds[0], bounds[1]).pipe(operators_1.catchError(function (error) { console.error("Failed to cache periphery bounding box (" + current.key + ")", error); @@ -49920,12 +49923,30 @@ var Viewer = /** @class */ (function (_super) { * * Clear the filter by setting it to null or empty array. * + * Commonly used filter properties (see the {@link Node} class + * documentation for a full list of properties that can be used + * in a filter) and common use cases: + * + * ``` + * fullPano // Show only full 360 panoramas or not + * organizationKey // Show images from one or several organizations + * sequenceKey // Show images from one or several sequences + * userKey // Show images from one or several users + * capturedAt // Show images from a certain time interval + * ``` + * * @param {FilterExpression} filter - The filter expression. * @returns {Promise} Promise that resolves after filter is applied. * * @example * ``` * viewer.setFilter(["==", "sequenceKey", ""]); + * + * // Other examples + * // viewer.setFilter(["==", "organizationKey", ""]); + * // viewer.setFilter(["in", "userKey", "", ""]); + * // viewer.setFilter(["==", "fullPano", true]); + * // viewer.setFilter([">=", "capturedAt", ]); * ``` */ Viewer.prototype.setFilter = function (filter) {