Add the legacy frontend themes, scripts, and plugin assets required by the main SPOTA interfaces.
10 lines
291 B
JavaScript
10 lines
291 B
JavaScript
GMaps.prototype.addStyle = function(options) {
|
|
var styledMapType = new google.maps.StyledMapType(options.styles, options.styledMapName);
|
|
|
|
this.map.mapTypes.set(options.mapTypeId, styledMapType);
|
|
};
|
|
|
|
GMaps.prototype.setStyle = function(mapTypeId) {
|
|
this.map.setMapTypeId(mapTypeId);
|
|
};
|