I am trying to get a Google map image with the following code:
<img src="http://maps.googleapis.com/maps/api/staticmap?center=#{profile.latitude},#{profile.longitude}&zoom=14&size=400x400&sensor=false"/>
but I get an exception in my browser that says:
Error analysis /content/profile.xhtml:
Trace error [line: 48] The reference to the zoom object must end with the symbol ';' delimiter.
How to avoid interpreting & in URLs as XML?
source share