laptop and a wrench

Bogue

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

Dernière publication: November 7, 2019 ArcGIS API for JavaScript
Numéro d’ID de bogue BUG-000126072
EnvoiOctober 16, 2019
Dernière modificationJune 5, 2024
S’applique àArcGIS API for JavaScript
Version trouvée4.13
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
StatutNon-Reproducible

Informations supplémentaires

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.

Solution de contournement

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

}

Étapes pour reproduire

ID de bogue: BUG-000126072

Logiciel:

  • ArcGIS API for JavaScript

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement