Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap and iFrame google map

I've used a Bootstrap template ("Stylish Portfolio" - http://startbootstrap.com/stylish-portfolio ) to make a simple portfolio page for a friend of mine.

I should say, that I enjoy to do coding in my spare time, and I am as such not a professional in any way, so I apologize for my newbieness! :-)

Anyway, can't figure out how to change the location of the iframe google map which is embedded in the template's html. As default it is set to locate Twitters HQ. But that's not really what I want.

I need it to just show Philadelphia on the map, but I simply cant get it to work! To be more specific, this is the exact view the map need to provide: https://www.google.com/maps/place/Philadelphia,+PA/@40.002498,-75.1180329,11z/data=!3m1!4b1!4m2!3m1!1s0x89c6b7d8d4b54beb:0x89f514d88c3e58c1

When I look at the html code for the map, I have this:

    <!-- Map -->
<div id="contact" class="map">
    <iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=Twitter,+Inc.,+Market+Street,+San+Francisco,+CA&amp;aq=0&amp;oq=twitter&amp;sll=28.659344,-81.187888&amp;sspn=0.128789,0.264187&amp;ie=UTF8&amp;hq=Twitter,+Inc.,+Market+Street,+San+Francisco,+CA&amp;t=m&amp;z=15&amp;iwloc=A&amp;output=embed"></iframe>
    <br />
    <small>
        <a href="https://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=Twitter,+Inc.,+Market+Street,+San+Francisco,+CA&amp;aq=0&amp;oq=twitter&amp;sll=28.659344,-81.187888&amp;sspn=0.128789,0.264187&amp;ie=UTF8&amp;hq=Twitter,+Inc.,+Market+Street,+San+Francisco,+CA&amp;t=m&amp;z=15&amp;iwloc=A"></a>
    </small>
    </iframe>
</div>
<!-- /Map -->

That's all. I really could use some assistance here since what I first thought was coordinates, aren't in fact that. But I have no idea how to change the location of the map! Or the small box with the current Twitter information.

Anybody who has any experience with this?

like image 957
Daniel J. Bertelsen Avatar asked May 04 '26 01:05

Daniel J. Bertelsen


1 Answers

Change iframe with this one,

<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d195601.04562769792!2d-75.11803295!3d40.002497999999996!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sen!2s!4v1401521095201" width="100%" height="100%" frameborder="0" style="border:0"></iframe>
like image 159
integral Avatar answered May 05 '26 16:05

integral