You could have the addKmlLayer call getKmlLayer. In this way you could remove the need for `this_` in `addKmlToMapForUrl`.

```
this.addKmlToMap = function(map, data, layerOptions, index) { 
  addKmlLayer(map, data, layerOptions, index);
};

this.addKmlToMapForUrl = function(map, url, layerOptions, index) {
  $http.get(url).success(function(data) {
    addKmlLayer(map, data, layerOptions, index);
  });
};
```