2

How does the computer recognize that those few lines inside a JavaScript file is actually html and not JavaScript codes? It doesn't. It's not javascript or html to the function, it's data. When it is (finally) rendered by the browser, it is "recognized" as html. rather than writing part of the program in python and part in JavaScript, have ...


1

Review the MDN doc on anchor tag and then verify that your add marker uses valid attributes. (Hint typo!). Perhaps clicking on the red do in the top right of the inspector will give more info. IMO close the "What's new" tab down below, since that is blocking the view of the console.


1

Answer: showInfo expects marker and content as arguments, in that order. I was passing them in the wrong order. When you get an error like that, you have to go back and check every little thing!


1

As I understand it, each marker has its own listener. So you can't create a listener for a marker you still haven't created. That's the reason in configure you create a new listener for the map AFTER you have created the map. Now with each marker you create you make a listener for a click in this marker too that "listens" for a click as long as the marker ...


Only top voted, non community-wiki answers of a minimum length are eligible