Validating Google Maps
I am playing with adding a GoogleMap to a website I am developing. Starting with maps.google.com/ using their API v2. From what I have read so far there documentation needs help (or I need more background) and their examples are buggie ie "&" where & should be etc.
But given that I have gotten it to work. My example is http://www.knob.com/ATG/Calendar/venture.html
In a javascript function in the header the line that is causing problems is:
As written the code works with all browsers I checked. The Goole Maps function openWindowHtml() gets 2 values; a point on the map and a string of HTML code which is the content of the balloon created.
The problem is that I can't figure out how to get the line to validate (CSE or W3C). The error is "[nsgmls] end tag for element "B" which is not open" pointing at the "</b>" sitting between the last char. If I change the closing tag to "/>" then it validates but what is displayed is "... Street/>"
Suggestions? Is it just a poorly formed function? poorly implemented? or did I miss something?
For context the map displays in a popup window if you start with /ATG/Calendar.html and click on the address. Forgive the foo picture.
But given that I have gotten it to work. My example is http://www.knob.com/ATG/Calendar/venture.html
In a javascript function in the header the line that is causing problems is:
- Code: Select all
map.openInfoWindowHtml(map.getCenter(), "<img src='../jpg/Finian.jpg' width='64' height='80' alt='picture of Peter'><b>This is a picture of 951 Greene Street</b>");
As written the code works with all browsers I checked. The Goole Maps function openWindowHtml() gets 2 values; a point on the map and a string of HTML code which is the content of the balloon created.
The problem is that I can't figure out how to get the line to validate (CSE or W3C). The error is "[nsgmls] end tag for element "B" which is not open" pointing at the "</b>" sitting between the last char. If I change the closing tag to "/>" then it validates but what is displayed is "... Street/>"
Suggestions? Is it just a poorly formed function? poorly implemented? or did I miss something?
For context the map displays in a popup window if you start with /ATG/Calendar.html and click on the address. Forgive the foo picture.