laptop and a wrench

Bug

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

Zuletzt veröffentlicht: November 7, 2019 ArcGIS API for JavaScript
Bug-ID-Nummer BUG-000126072
EingereichtOctober 16, 2019
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS API for JavaScript
Gefunden in Version4.13
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
StatusNon-Reproducible

Zusätzliche Informationen

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.

Workaround

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

}

Schritte zur Reproduzierung

Bug-ID: BUG-000126072

Software:

  • ArcGIS API for JavaScript

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln