Here's the solution for your specific case:

<img 
src="http://maps.googleapis.com/maps/api/staticmap?center=Rhijnspoor+259+2901+LB+Capelle+aan+den+IJssel+Nederland&zoom=13&size=600x300&maptype=roadmap&sensor=false";
alt="Map" />


On Mon, Aug 6, 2012 at 6:10 PM, Alec Taylor <alec.tayl...@gmail.com> wrote:
> Quick question, is there a reason you are using a simple iframe rather
> than using the API properly?
>
> https://developers.google.com/maps/documentation/staticmaps/
>
> On Mon, Aug 6, 2012 at 5:58 PM, Annet <anneve...@googlemail.com> wrote:
>> In a view I have the following iframe
>>
>> <iframe width="624" height="356" frameborder="0" scrolling="no"
>> marginheight="0" marginwidth="0"
>> src="http://maps.google.nl/maps?f=q&amp;source=s_q&amp;hl=nl&amp;q={{=session.address.street}}+{{=session.address.houseNumber}}{{if
>> session.address.houseNumberExtension:}}+{{=session.address.houseNumberExtension}}{{pass}}+{{=session.address.postalCode}}+{{=session.address.locality}}+Nederland&amp;aq=&amp;ie=UTF8&amp;hq=&amp;hnear={{=session.address.street}}+{{=session.address.houseNumber}},+{{=session.address.locality}},+Nederland;t=m&amp;z=12&amp;iwloc=near&A&amp;output=embed"></iframe>
>>
>> It should be rendered like this:
>>
>> <iframe width="624" height="356" frameborder="0" scrolling="no"
>> marginheight="0" marginwidth="0"
>> src="http://maps.google.nl/maps?f=q&amp;source=s_q&amp;hl=nl&amp;q=Rhijnspoor+259+2901+LB+Capelle+aan+den+IJssel+Nederland&amp;aq=&amp;ie=UTF8&amp;hq=&amp;hnear=Rhijnspoor+259,+Capelle+aan+den+IJssel,+Nederland&amp;t=m&amp;z=12&amp;output=embed";></iframe>
>>
>> However, this is what web2py renders:
>>
>> <iframe width="624" height="356" frameborder="0" scrolling="no"
>> marginheight="0" marginwidth="0"
>> src="http://maps.google.nl/maps?f=q&source=s_q&hl=nl&q=Rhijnspoor+259+2901+LB+Capelle+aan+den+IJssel+Nederland&amp;aq=&ie=UTF8&hq=&hnear=Rhijnspoor+259,+Capelle+aan+den+IJssel,+Nederland&t=m&z=12&;output=embed";></iframe>
>>
>> So, web2py removes all the amp; from the code, why?
>>
>> Kind regards,
>>
>> Annet.
>>
>> --
>>
>>
>>

-- 



Reply via email to