Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

set language for google maps iframe

Tags:

I have changed the language for the google maps to Hebrew in the language setting but I would like to use the <iframe> code for my website. However, I can only seem to get this in English. How do I set it for Hebrew? The URL has hl=he but I can't seem to get it to work for the <iframe> code. My code is:

<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d27130.99130966173!2d35.186535!3d31.787558!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x1502d64c6e5bf91d%3A0x2f55a98e4e4ab5e9!2z15vXoNek15kg16DXqdeo15nXnSAxNQ!5e0!3m2!1siw!2s!4v1395222081666" width="600" height="450" frameborder="0" style="border:0"></iframe>

Thanks

like image 806
LTech Avatar asked Mar 19 '14 11:03

LTech


People also ask

Can you iframe Google Maps?

Once you have your Google Map created, ensure that the map you'd like to embed appears in the current map display. Click "Share" at the right of the page. In the box that pops up, click "Embed" Copy the entire HTML "<iframe> code string and paste it into the HTML code of your web page.


2 Answers

You need to add language parameter of API call for embed map. For Hebrew language, src of <iframe> should be like:

src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d27130.99130966173!2d35.186535!3d31.787558!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x1502d64c6e5bf91d%3A0x2f55a98e4e4ab5e9!2z15vXoNek15kg16DXqdeo15nXnSAxNQ!5e0!3m2!1siw!2s!4v1395222081666&language=iw" 
  • More info at Google Maps Embed API

  • More info about Google Maps API language support:

https://developers.google.com/maps/faq#languagesupport

like image 57
alpakyol Avatar answered Jan 15 '23 05:01

alpakyol


idk if this is really functional for other countrys but when im building a mock, and i found a google map iframe, and my client is by Example: US but im Mx the:

<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3063.7150513838938!2d-84.19918628432937!3d39.83580597943695!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x884081e28cd77f07%3A0xf7f318d105021243!2sBuckeye+Harley-Davidson!5e0!3m2!**1ses!2smx**!4v1556548028269!5m2!**1ses!2smx**"  allowfullscreen></iframe>

i just update this info in the Url, 1sen!2sus, then the iframe is shown in english.

i hope this can helps to you to.

like image 23
e0tzEnTanga Avatar answered Jan 15 '23 07:01

e0tzEnTanga