Hi everyone, i have this error while i try to build my code: “Uncaught ReferenceError: tt is not defined”.
I state that this code run in my another project. Someone can help me? The code is:
function getQuery(){
var btn = $("#search");
btn.click(function(){
var query = $("#query").val();
var map =
tt.services.fuzzySearch({
key: "---my key---",
query: query
})
.go()
.then(function(response) {
map = tt.map({
key: "---my key---",
container: 'map-div',
center: response.results[0].position,
zoom: 12
});
});
});
}
getQuery();