提交 | 用户 | 时间 | ||
58d006 | 1 | GMaps.prototype.addStyle = function(options) { |
A | 2 | var styledMapType = new google.maps.StyledMapType(options.styles, { name: options.styledMapName }); |
3 | ||
4 | this.map.mapTypes.set(options.mapTypeId, styledMapType); | |
5 | }; | |
6 | ||
7 | GMaps.prototype.setStyle = function(mapTypeId) { | |
8 | this.map.setMapTypeId(mapTypeId); | |
9 | }; |