laptop and a wrench

Erro

Adding an extent filter to LocatorSearchSource fails to filter the results and suggestions of the Search widget to the specified extent.

Última Publicação: December 28, 2020 ArcGIS API for JavaScript
Número de ID do Erro BUG-000135766
EnviadoNovember 30, 2020
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS API for JavaScript
Versão encontrada4.17
Sistema OperacionalN/A
Versão do Sistema OperacionalN/A
StatusWill Not Be Addressed

Informações Adicionais

The test-app shows the filter property is being incorrectly set, and the spatial reference is incorrect for the extent used. Refer to this working app which demonstrates how the property is supposed to be used, https://codepen.io/noash/pen/WNGpGXz?editors=1000

Solução Provisória

Set the withinViewEnabled property of the LocatorSearchSource to true to constrain the search results to the view's extent: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#withinViewEnabled

Example: https://codepen.io/laurenb14/pen/gOwLQBL

Etapas para Reproduzir

ID do Erro: BUG-000135766

Software:

  • ArcGIS API for JavaScript

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download