I put a marker symbol in the map every time when the user click there, then, I enable the popup for a specific layer. When I click the map, It shows both marker and infowindow. It should not show the infowindow because is enabled for a layer (point, polygon...) not for basemap.
At basemap only should appear the marker, and if the click coincides with the layer too, they will appear this two elements..
Why this is happening? What is the solution?