define(["modules/maps/module"],function(a){"use strict";a.registerFactory("SmartMapStyle",["$q","$http","uiGmapGoogleMapApi",function(a,b,c){function d(a){var b=f[a];return b.cache||(b.cache=e(b)),b.cache}function e(d){var e=a.defer();return a.all([c,b.get(d.url)]).then(function(a){var b=a[1].data,c=new google.maps.StyledMapType(b,{name:d.name});e.resolve(c)},function(a){console.error(a),e.reject(a)}),e.promise}var f={colorful:{name:"Colorful",url:"api/maps/colorful.json"},greyscale:{name:"greyscale",url:"api/maps/greyscale.json"},metro:{name:"metro",url:"api/maps/metro.json"},"mono-color":{name:"mono-color",url:"api/maps/mono-color.json"},monochrome:{name:"monochrome",url:"api/maps/monochrome.json"},nightvision:{name:"Nightvision",url:"api/maps/nightvision.json"},"nightvision-highlight":{name:"nightvision-highlight",url:"api/maps/nightvision-highlight.json"},"old-paper":{name:"Old Paper",url:"api/maps/old-paper.json"}};return{getMapType:d,styles:f}}])});