自定义Google地图的外观" mapType"控制 [英] Customize look of the Google Maps "mapType" controls

查看:106
本文介绍了自定义Google地图的外观" mapType"控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Google地图中设计mapType控件的外观(右上角的地图,卫星,混合)? (使用API​​的V2)。或者有没有办法创建自己的元素,并让他们控制mapType?

Is it possible to style the look of the mapType controls (top right "Map", "Satellite", "Hybrid") in Google maps? (using V2 of the API). Or is there a way to create your own elements and have them control the mapType??

推荐答案

是的,它既可以改变当前控件的外观,也可以定义新控件:

Yes, it it possible both to change the look of the current controls and to define new ones:

寻找您需要的功能: http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GMapType

和一些示例:
创建自定义控件: http: //code.google.com/apis/maps/documentation/javascript/v2/controls.html#Custom_Controls
修改控件外观:
http://code.google.com/apis/maps/documentation/javascript/v2/controls.html #Control_Modification

这篇关于自定义Google地图的外观" mapType"控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆