Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boolean config option to choose between points vs. polygons for map search results #22

Open
camdendotlol opened this issue Jan 6, 2025 · 0 comments
Assignees

Comments

@camdendotlol
Copy link
Contributor

camdendotlol commented Jan 6, 2025

As mentioned in performant-software/core-data-cloud#338, most projects will probably want to show points in the map search (as distinct from the single-place view) even if they're using polygonal data because showing tons of polygons on the map would be very busy.

However, some projects may still want to show polygons in the search view. Core Data Places should expose a setting in config.json to allow developers to toggle between the two modes. This setting would be forwarded to the new prop from performant-software/react-components#317.

When the setting is disabled, we should save bandwidth/performance by excluding the geometry field from the results using Typesense's exclude_fields param. For future flexibility, we should also add an item to config.json that allows the user to add more fields to the exclusion list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant