laptop and a wrench

不具合

The Search widget result does not always have an appropriate extent to zoom to for the size of the searched location.

最後に公開された状態: November 7, 2019 ArcGIS API for JavaScript
不具合 ID 番号 BUG-000126072
送信されましたOctober 16, 2019
最終更新日June 5, 2024
適用対象ArcGIS API for JavaScript
見つかったバージョン4.13
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
ステータスNon-Reproducible

参考情報

This is not a bug with ArcGIS API for JavaScript, rather the documentation is updated to include a better explanation of how this works. By default, the Search widget sets the view on the Search result. The level of detail (LOD) at the center of the view depends on the data source, with higher quality data sources returning extents closer to the feature obtained from the search.

対処法

let pt = new Point({

                    latitude: event.result.feature.geometry.latitude,

                    longitude: event.result.feature.geometry.longitude

});

 

if (view.zoom < 14) {

       view.goTo({

                        target: pt,

zoom: 14

}

再現の手順

不具合 ID: BUG-000126072

ソフトウェア:

  • ArcGIS API for JavaScript

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動