Trying to validate the following HTML with the W3C validator will throw 3 errors (as of 2013-10-30):
<!DOCTYPE html>
<head><title>asdf</title></head>
<img src="http://maps.googleapis.com/maps/api/staticmap?zoom=13&size=279x183&markers=50.916780,5.347420&sensor=false" alt="map">
The 3 errors are all the same:
& did not start a character reference. (& probably should have been escaped as &.)
Unfortunately, conforming to the W3C here will lead to the static maps image not being rendered. Try to embed an img
tag with the following URL as the value for its src
attribute:
<img src="http://maps.googleapis.com/maps/api/staticmap?zoom=13&size=279x183&markers=50.916780,5.347420&sensor=false">
This returns an error by Google stating:
The Google Maps API server rejected your request. Invalid request. Missing the 'size' parameter.
Why does the Google Static Maps API not support valid URLs with &
in query string?
&
characters in theimg
src attribute. – Hesychast