xenium
asked on
How to change the size of a google maps frame
hi,
I'd like to download a google maps in high resolution, to do this i need to adjust a frame to make it bigger than the screen whilst scaling up the contents. I can then use a frame grabber program to download the contents. Below is an example map of a small region of spain, is there a way to adjust the HTML code here to do this?
Thanks!
I'd like to download a google maps in high resolution, to do this i need to adjust a frame to make it bigger than the screen whilst scaling up the contents. I can then use a frame grabber program to download the contents. Below is an example map of a small region of spain, is there a way to adjust the HTML code here to do this?
Thanks!
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=d&source=s_d&saddr=Logro%C3%B1o,+Spain&daddr=santa+engracia,+spain+to:Anto%C3%B1anzas,+Spain+to:Arnedillo,+Spain+to:Gr%C3%A1valos,+Spain&hl=en&geocode=FQDuhwIdR7Ha_ymxkLMwQataDTFwiBaKkVKC-Q%3BFciuhQId5NLc_ynxCwl8nrBaDTGXWyMd0J_EkQ%3BFUgyhAId0Fzd_ynRxblwebhaDTF9FdqwB9jv1Q%3BFTcYhAIdvtXd_ym9uJfSXsdaDTGoHRLzOmfV5A%3BFfeFggIdX3zh_ykNy91QMO5aDTEHOw95wWe4uw&aq=0&oq=logro&sll=42.285498,-2.224122&sspn=0.418067,0.617294&mra=ps&ie=UTF8&ll=42.285498,-2.224122&spn=0.418067,0.617294&t=m&output=embed"></iframe><br /><small><a href="https://maps.google.com/maps?f=d&source=embed&saddr=Logro%C3%B1o,+Spain&daddr=santa+engracia,+spain+to:Anto%C3%B1anzas,+Spain+to:Arnedillo,+Spain+to:Gr%C3%A1valos,+Spain&hl=en&geocode=FQDuhwIdR7Ha_ymxkLMwQataDTFwiBaKkVKC-Q%3BFciuhQId5NLc_ynxCwl8nrBaDTGXWyMd0J_EkQ%3BFUgyhAId0Fzd_ynRxblwebhaDTF9FdqwB9jv1Q%3BFTcYhAIdvtXd_ym9uJfSXsdaDTGoHRLzOmfV5A%3BFfeFggIdX3zh_ykNy91QMO5aDTEHOw95wWe4uw&aq=0&oq=logro&sll=42.285498,-2.224122&sspn=0.418067,0.617294&mra=ps&ie=UTF8&ll=42.285498,-2.224122&spn=0.418067,0.617294&t=m" style="color:#0000FF;text-align:left">View Larger Map</a></small>
Not sure I'm following you but just change the width and height of the iframe.
ASKER
yeah that's what i thought but that just uncrops the map - i want to keep the same map boundary but have higher res
Append the iframe url with
&z=15
Adjust the number to whatever zoom level you want.
&z=15
Adjust the number to whatever zoom level you want.
I am not sure you can control the resolution. If you can then the properties to do it will be buried somewhere in the API. So I suggest you explore the API or look around the Google support documentation.
I don't think you can do anything with markup. At the very least it will require some scripting. If you want, I I add the javascript topic to the Question.
Cd&
I don't think you can do anything with markup. At the very least it will require some scripting. If you want, I I add the javascript topic to the Question.
Cd&
ASKER
hi Gary thanks, where exactly do i append this can you show on the example code given?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks a lot. Do you know what is the scale, or how I could calculate the correct scaling to capture the original bordering? In this example when scaling the iframe width x10, then by trial & error z=13 seems to do it.
It's really a case of trial and error.