我想在我网站的主页上嵌入谷歌地图。 我在我的Joomla上使用了以下代码!站点
mosmap msid='211583848080531580036.0004c74a22231f20dfa00'|lat='19.997023 '|lon='73.790102'|width='900'|height='650'|zoom='12'
如何让这段代码在非joomla网站上运行?
答案 0 :(得分:1)
Google地图允许您通过插入HTML代码段将地图嵌入到网页中。 有关将Google地图地图嵌入网页的详情,请访问https://support.google.com/maps/answer/72644
在您的情况下,HTML代码段将是这样的:
<iframe width="900" height="650" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.com/maps?q=19.997023,73.790102&ie=UTF8&t=m&ll=19.996902,73.790102&spn=0.104853,0.154324&z=12&output=embed"></iframe>
答案 1 :(得分:0)
从Google提供的Javascript教程开始..
https://developers.google.com/maps/documentation/javascript/tutorial