2 Replies Latest reply: Dec 11, 2012 10:40 AM by 969977 RSS

    Portlet google maps iframe creation

    969977
      Hi, I'm trying to generate a custom map for a web application based on portlets, for what I've seen so far, google maps offers and i frame which takes some coordinates and draws them on the map. I want to do it according to some variables i have stored but i cna't manage to include them in the href nor in the iframe it just prints the whole reference to the variable i.e #{EntregaListaBean.entregaActual.longitud}.
      Does anybody know what's my error? what can i do to generate it dynamically?

      Heres the code:

      <h:outputLabel value="Etapa actual" id="ol3"
      style="font-weight:bold;"/>
      <h:outputText value="#{EntregaListaBean.entregaActual.etapa}" id="ot4"/>
      <a href="https://maps.google.com/maps?q=#{EntregaListaBean.entregaActual.latitud",#{EntregaListaBean.entregaActual.longitud"&t=w&z=17" target="_blank">Ver posicion actual
      <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?q=# {EntregaListaBean.entregaActual.latitud},#{EntregaListaBean.entregaActual.longitud}&amp;ie=UTF8&amp;t=w&amp;z=14&amp;ll=#{EntregaListaBean.entregaActual.latitud},-#{EntregaListaBean.entregaActual.longitud}&amp;output=embed"></iframe>
      <small><a href="http://maps.google.com/maps?q=#{EntregaListaBean.entregaActual.latitud,#{EntregaListaBean.entregaActual.longitud&amp;ie=UTF8&amp;t=w&amp;z=14&amp;ll=#{EntregaListaBean.entregaActual.latitud},#{EntregaListaBean.entregaActual.}&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>