Html 如何使谷歌地图 iframe 的“风格”看起来很新
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16811413/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to make the "style" of a google maps iframe look new
提问by Pedro Vieira
I have the following iframe with google maps:
As you can see, google maps looks older here: square buttons and controls.
What I'd like to have is something like this:
A much better looking google maps. Round buttons and controls...
How do I create something like this? I've been trying to work around this, but without any success.
Thanks!
我有以下带有谷歌地图的 iframe:
如您所见,谷歌地图在这里看起来更旧:方形按钮和控件。
我想要的是这样的东西:
一个更好看的谷歌地图。圆形按钮和控件......
我如何创建这样的东西?我一直在努力解决这个问题,但没有任何成功。
谢谢!
回答by David
<!-- Embed Google Maps Start -->
<iframe width="550" height="500" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?q=mesco,heuvelstraat 95,tilburg, nederland&layer=tc&t=m&z=18&source=embed&output=svembed"></iframe>
<!-- Embed Google Maps End -->
<!--Parameters:
---------------------
q= enter full address here or latitude+longitude e.g. (street name, city, county/state, country)
layer= (t = traffic | c = streetview | tc = both) - show map layer type
t= (m = normal map | k = satellite | h = hybrid | p = terrain) - Sets the kind of map shown
z= (1 - 23) - map zoom level. 23 value indicates fully zoomed in. (default is 18)
width= (value) - height of gmaps
height= (value) - width of gmaps-->
回答by Alfonso Jiménez
Maybe you should consider using Google Maps Javascript API. It is not hard for basic use and it shows the controls the way you want.
也许您应该考虑使用 Google Maps Javascript API。基本使用并不难,它以您想要的方式显示控件。
Examples: https://developers.google.com/maps/documentation/javascript/examples/?hl=en
示例:https: //developers.google.com/maps/documentation/javascript/examples/?hl=en