TransWikia.com

Search Function Carto VL

Geographic Information Systems Asked on July 28, 2021

I’m new to Carto VL and html, and could use some help. I’m currently building a map using Carto VL and want to implement a search feature that allows users to type in a location and have the map zoom to that location. How can I go about doing this?

One Answer

CARTO does not have an out of the box search box. On the one hand, you could build one using Airship input component in combination of CARTO's Data Services API (you will need to work a lot if you select this option), or even better, a proper open source geocode. The result should be a geojson or geometry which you can center and zoom in on it. On the other, you can use something already build such as Mapbox GL geocoder.

Answered by ramiroaznar on July 28, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP