To provide a little bit of context, I plan to use the zoom value to calculate changes in the radius from the center of the map to the top border. The radius provides me the ability to measure the area of a circle around my center point that would increase or decrease as the user zooms in or out.
The script I found is:
This is my first question: My map element has an id of “MapA”, as I mentioned above, but what is my “mapObject”?
Second question: whatever the mapObject that I plug into my script, if I add “MapA” in the “ID Attribute” at the bottom of the HTML element, can I expect to see the correct zoom value in my console log upon adding something like console.log() directly after the mapObject.getZoom()?