work with, working on...

This commit is contained in:
didier.amyot committed 2014-05-09 12:54:28 -04:00
1 parent 741ec3f40c
commit a72347d1e3
7 files changed
+28 -10

No files matched your search

+5 -1
View File
@@ -32,7 +32,11 @@ directive = () ->
$scope.hasIndex = $scope.hasIndexDown or $scope.hasIndexUp or $scope.has2DIndex
$scope.getGeoJsonUrl = () ->
r = $routeParams
return "#" + "/#{r.server}/#{r.database}/#{r.collection}/idx/#{r.idx}/geojson/#{$scope.keyName}"
e = window.encodeURIComponent
url = "#/#{r.server}/#{r.database}/#{r.collection}/idx/#{r.idx}"
if r.query
url = "#{url}/query/#{e(r.query)}"
return "#{url}/geojson/#{$scope.keyName}"
]
return directive