I used to use a hack I found online to add a search box to a cartoDB map, which I created using cartodb.createLayer and it used to work, but now it stopped working, the search box does not appear (no error message). Is there another way to do it?
.on('done', function(layer) { //hack from https://gist.github.com/javisantana/4e50d53e4eeb7fbdab0e var v = cdb.vis.Overlay.create('search', map.viz, {}) $('#map').append(v.render().el); })Full code is here: https://github.com/childcaremap/NYCdaycare/blob/gh-pages/dev/scoremap.html
Thanks!
أكثر...
.on('done', function(layer) { //hack from https://gist.github.com/javisantana/4e50d53e4eeb7fbdab0e var v = cdb.vis.Overlay.create('search', map.viz, {}) $('#map').append(v.render().el); })Full code is here: https://github.com/childcaremap/NYCdaycare/blob/gh-pages/dev/scoremap.html
Thanks!
أكثر...