自定义Google地图的外观" mapType"控制 [英] Customize look of the Google Maps "mapType" controls
问题描述
是否可以在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屋!