/** * @ngdoc service * @name Attr2Options * @description * Converts tag attributes to options used by google api v3 objects, map, marker, polygon, circle, etc. */ /*jshint -W030*/ ngMap.service('Attr2Options', ['$parse', 'NavigatorGeolocation', 'GeoCoder', function($parse, NavigatorGeolocation, GeoCoder) { var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g; var MOZ_HACK_REGEXP = /^moz([A-Z])/; var orgAttributes = function(el) { (el.length > 0) && (el = el[0]); var orgAttributes = {}; for (var i=0; i