Google Embed Iframe shows full world map (not location) - google-maps

<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d26008.43855814021!2d-78.795673!3d35.428672!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xf25f9e0e1fa54ed!2sLillington+Veterinary+Hospital!5e0!3m2!1sen!2sus!4v1393359301118" width="450" height="200" frameborder="0" style="border:0"></iframe>
I am using the above code to embed a google maps preview on a website. But, the problem is, it is zooming all the way out to the entire world map when placing on website. When I click preview embed size (custom size) on google maps when creating the map, it shows perfectly.
Screenshot included of how it is showing up on website located here: https://productforums.google.com/forum/#!category-topic/maps/issues-and-troubleshooting/maps/mac/chrome/KaQPRdnK4ZU
Am I doing something wrong? I'm new to embedding google maps.

this seems to work:
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?t=m&hl=en-GB&gl=US&mapclient=embed&ie=UTF8&ll=35.432002,-78.795919&spn=0.04336,0.084543&z=14&iwloc=lyrftr:m,1091553228966483181,,&output=embed"></iframe><br /><small>View Larger Map</small>
See here: http://jsfiddle.net/5zpd9/
On the older version of Google Maps, has gives you the embed link when click the Chain Link icon:
Oh, and the newer version can be linked by pressing 'Share and Embed map':
Which will show the newer version using:
<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d26008.454059026204!2d-78.795912!3d35.428624!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xf25f9e0e1fa54ed!2sLillington+Veterinary+Hospital!5e0!3m2!1sen!2sus!4v1393365205127" width="600" height="450" frameborder="0" style="border:0"></iframe>
http://jsfiddle.net/5zpd9/1/

Related

Google Maps URL Structure For Zoom

Trying to change the zoom level of the map returned below. I am using it as a link in excel. Have looked around and thought this should work as I change the z=1 to z=2, etc.
http://maps.google.com/maps?z=1&t=h&q=2517 MCDEARMON ST,SACHSE,TX,75408
That is with the "old" google maps, it was never documented and no longer works. If you want a URL for an embedded google map, use the Embed API, it has a documented zoom parameter.
example 2 embedded maps, just changing the zoom parameter in the URL
<iframe width="600" height="450" frameborder="0" style="border:0"
src="https://www.google.com/maps/embed/v1/place?q=2517+MCDEARMON+ST,SACHSE,TX,75408&zoom=10&key=API_key" allowfullscreen></iframe>
<iframe width="600" height="450" frameborder="0" style="border:0"
src="https://www.google.com/maps/embed/v1/place?q=2517+MCDEARMON+ST,SACHSE,TX,75408&zoom=1&key=API_key" allowfullscreen></iframe><script src="http://www.google-analytics.com/urchin.js" type="text/javascript">

How to open google map link in iframe

i have a google map url how can i open this in iframe
url: http://maps.google.ca/maps?q=14735+32A+AVE+Surrey+V4P+1Z8+bc&spn=0.012065,0.040770&iwloc=A&hl=en
and i am using this iframe to open/embed the map in iframe
<iframe src="http://maps.google.ca/maps?q=14735+32A+AVE+Surrey+V4P+1Z8+bc&spn=0.012065,0.040770&iwloc=A&hl=en" width="600" height="450" frameborder="0" style="border:0"></iframe>
Its not showing me anything. Please help
Open the link in a web browser.
click on the "gear" in the lower right corner (on the "new" Google Maps).
Choose "Share or embed map"
Click on the "Embed Map" tab
Choose a size
Copy the provided iframe code use it on your page. It will look like this:
<iframe src="https://www.google.com/maps/embed?pb=!1m16!1m12!1m3!1d21056742.211671695!2d-97.15369!3d49.891235!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!2m1!1s14735+32A+AVE+Surrey+V4P+1Z8+bc!5e0!3m2!1sen!2sca!4v1424618801986" width="600" height="450" frameborder="0" style="border:0"></iframe>

Google maps default zoom changed?

I used to have a part of a web page for a venue display a map:
<iframe width="934" height="200" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/?q=loc:36.12829973975456,-115.16433477401732&ie=UTF8&ll=36.12829973975456,-115.16433477401732&output=embed"></iframe>
Example of the complete page is here:
http://www.nationalvip.com/venue/4a9248d6f964a520091d20e3/xs-nightclub
This used to render to a pretty decent default street view. Somehow now I get the whole globe displayed and wrapped around. Any guesses as to what can be going on? Is there an easy fix for this?
Not sure what happened to your link, but the following should work
<iframe width="934" height="200" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.com/maps/place/36%C2%B007'41.9%22N+115%C2%B009'51.6%22W/#36.128279,-115.164285,39m/data=!3m1!1e3!4m2!3m1!1s0x0:0x0?hl=en-US"></iframe>
It is a satellite view, not a Google Street View, but Street View may not be available for those coordinates.

How to eliminate the popup window in Google Maps new code?

How do I get an embedded Google Map not to show the pop-up window above the location marker on the map?
One used to change "iwloc=A" to "iwloc=near", but "iwloc does not appear in the code Google gave me.
Here is the code:
<iframe width="760" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?client=safari&oe=UTF-8&q=1324+Portesuello+Ave,+Santa+Barbara,+CA&ie=UTF8&hq=&hnear=1324+Portesuello+Ave,+Santa+Barbara,+California+93105&gl=us&t=m&ll=34.415053,-119.726944&spn=0.033988,0.065145&z=14&output=embed"></iframe><br /><small>View Larger Map</small>

google maps image not loading?

So, on the following page, the first broken image you see should be one linking to google maps. If I open up chrome's inspect tool, and right click on the src attribute to open it up in a new tab, it works fine, but it renders as a broken image on the page for some reason. any ideas?
http://test.teslaprime.com/courses/25/test_course1
Just follow these instructions of google self: http://maps.google.com/help/maps/getmaps/plot-one.html
In your case you need to add the following code to your html:
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?daddr=19+Chalda+Ct+San+Rafael+CA+94903&ie=UTF8&t=h&ll=38.006014,-122.521711&spn=0.006295,0.007989&output=embed"></iframe><br /><small>View Larger Map</small>