I am new to this, experimenting with different examples and learning through trial and error. Currently, when I click on the marker, the info window appears and the map zooms in on the marker's position.
infowindow.setContent(content);
map.setCenter(marker.getPosition());
map.setZoom(4);
Now I have two main goals:
- When the user closes the info window by clicking the close icon, I want the map's zoom level to reset to 2;
- I'm trying to figure out how to remove or reposition the arrow at the bottom of the info box.
You can view an example of the map here.
-Abhi
Edit1: Thanks to Ivan, I've found a solution to my first question! Now I need help with the second question. How can I remove the red highlighted arrow at the bottom of the info box in the image below? Is it possible to make the arrow point towards the left, directed at the marker?