Discussion Forums  >  Self Hosted Control Panels

Replies: 5    Views: 193

marcorlandi
I hate code!
Profile
Posts: 42
Reg: Dec 10, 2011
Bologna
3,320
07/18/12 05:26 PM (13 years ago)

Google Maps Iframe in Custom HTML page doesn't work

When I use an iframe to plot a google maps inside a table cell in a Custom HTML file it doesn't show me anything and points me quickly to the Google Maps app. Is there a bug? here's the html code: <tr> <td><iframe marginheight="0" marginwidth="0" src="https://maps.google.it/maps?f=q&amp;source=s_q&amp;hl=it&amp;geocode=&amp;q=como&amp;aq=&amp;sll=44.54659,11.134572&amp;sspn=0.012907,0.023518&amp;ie=UTF8&amp;hq=&amp;hnear=Como,+Lombardia&amp;t=m&amp;ll=45.822579,9.146461&amp;spn=0.047851,0.352249&amp;z=12&amp;output=embed" frameborder="0" height="200" scrolling="no" width="1027"></iframe><br> <small><a href="https://maps.google.it/maps?f=q&amp;source=embed&amp;hl=it&amp;geocode=&amp;q=como&amp;aq=&amp;sll=44.54659,11.134572&amp;sspn=0.012907,0.023518&amp;ie=UTF8&amp;hq=&amp;hnear=Como,+Lombardia&amp;t=m&amp;ll=45.822579,9.146461&amp;spn=0.047851,0.352249&amp;z=12" style="color: rgb(0, 0, 255); text-align: left;">Visualizzazione ingrandita della mappa</a></small></td> </tr>
 
Darkerst
I hate code!
Profile
Posts: 11
Reg: Jul 22, 2012
Heerlen
1,560
like
07/23/12 03:37 AM (13 years ago)
http://maps.googleapis.com/maps/api/staticmap?size=640x480&zoom=15&maptype=roadmap&markers=size:big|color:blue|label:G|ganzeweide+111+heerlen&sensor=true please try a static map via the api
 
marcorlandi
I hate code!
Profile
Posts: 42
Reg: Dec 10, 2011
Bologna
3,320
like
07/23/12 09:45 AM (13 years ago)
It works with static maps, it's a workaround that I used (a simple <img> tag with a link to the real google map, but it's not what I'm trying to achieve. Moreover I'd like to know why my iframe doesn't work, maybe it's only a little error in the code.....
 
Darkerst
I hate code!
Profile
Posts: 11
Reg: Jul 22, 2012
Heerlen
1,560
like
07/23/12 09:49 AM (13 years ago)
if i do the html code it works fine in a browser ! so what is the error?
 
marcorlandi
I hate code!
Profile
Posts: 42
Reg: Dec 10, 2011
Bologna
3,320
like
07/23/12 02:15 PM (13 years ago)
I know, that's the strange! Can you just test it in a HTML or custom text/HTML page in Bt-server? When I do this I have a black screen ad it pops up an advice that redirects me in Google Maps....
 
Darkerst
I hate code!
Profile
Posts: 11
Reg: Jul 22, 2012
Heerlen
1,560
like
07/23/12 02:18 PM (13 years ago)
hmmm i think the problem is the btserver and not the code
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.