Administrator
2022-09-14 58d006e05dcf2a20d0ec5367dd03d66a61db6849
提交 | 用户 | 时间
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 };