html - How to embed google map with short url -


i have table of short google urls different places like,

id|url ------ 1|http://goo.gl/maps/7nps 2|http://goo.gl/maps/wzlpp 

depends on param in url need show embedded map of place in browser.

so, embed second map use iframe html script google gives me:

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/?ie=utf8&amp;t=h&amp;ll=40.408791,-3.692586&amp;spn=0.002859,0.00456&amp;z=17&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/?ie=utf8&amp;t=h&amp;ll=40.408791,-3.692586&amp;spn=0.002859,0.00456&amp;z=17&amp;source=embed" style="color:#0000ff;text-align:left">view larger map</a></small> 

and works, uses long url: http://maps.google.com/?ie=utf8&t=h&ll=40.408791,-3.692586&spn=0.002859,0.00456&z=17&output=embed

when try replace shorter link, doesn't work:

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://goo.gl/maps/wzlpp"></iframe><br /> 

how possible use short link there?

when take @ developer console, this:

load denied x-frame-options: https://maps.google.com/?ie=utf8&ll=48.858151,2.293611&spn=0.00648,0.021973&t=h&z=16 not permit cross-origin framing. 

so problem same origin policy. not possible use short link in case.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -