Users are presented with points to click on. When a point is clicked, a menu displays text information. I have successfully placed the points, but when attempting to retrieve specific data from the database upon clicking a point, it does not show the marker-specific information.
for (pointer of pointers) {
title.textContent = "No description available.";
if (item.objDescription) {
title.textContent = item.objDescription;
}
div.appendChild(title);
menu.appendChild(div);
}
}
Where did I make a mistake? I want the points to display only their own text and not all texts retrieved from the database.
EDIT :
The problem title has been updated to better reflect the desired solution.