PTMagic/Monitor/wwwroot/assets/plugins/gmaps/lib/gmaps.styles.js

10 lines
301 B
JavaScript
Raw Normal View History

2018-05-22 10:11:50 +02:00
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);
};