/** * @ngdoc service * @name Attr2MapOptions * @description * Converts tag attributes to options used by google api v3 objects */ /* global google */ (function() { 'use strict'; //i.e. "2015-08-12T06:12:40.858Z" var isoDateRE = /^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*)?)([zZ]|([+\-])(\d\d):?(\d\d))?$/; var Attr2MapOptions = function( $parse, $timeout, $log, $interpolate, NavigatorGeolocation, GeoCoder, camelCaseFilter, jsonizeFilter, escapeRegExp ) { var exprStartSymbol = $interpolate.startSymbol(); var exprEndSymbol = $interpolate.endSymbol(); /** * Returns the attributes of an element as hash * @memberof Attr2MapOptions * @param {HTMLElement} el html element * @returns {Hash} attributes */ var orgAttributes = function(el) { (el.length > 0) && (el = el[0]); var orgAttributes = {}; for (var i=0; i