I know that it is possible to add the CartoDB search box when you link to a visualization such as this. However, I have a map which is created at runtime, using the same method as here. Does anybody know, when a visualization is created at runtime, if there is any way to add the CartoDB search box?

1 Answer 1


It is possible. Here is a working example,


The key bit is instantiating the overlay and then adding it to the page, you do that with this part,

var v = cdb.vis.Overlay.create('search', map.viz, {})

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.