root 2bb01ae691
All checks were successful
continuous-integration/drone/push Build is passing
🔁 Sync from production: settings and Docker updates
2025-05-15 06:30:43 +00:00

10 lines
301 B
JavaScript

GMaps.prototype.addStyle = function(options) {
var styledMapType = new google.maps.StyledMapType(options.styles, { name: options.styledMapName });
this.map.mapTypes.set(options.mapTypeId, styledMapType);
};
GMaps.prototype.setStyle = function(mapTypeId) {
this.map.setMapTypeId(mapTypeId);
};