fixed bug.

This commit is contained in:
didier.amyot committed 2014-07-18 11:09:19 -04:00
1 parent f68c301371
commit e3e3ffb453
1 file changed
+6 -1
@@ -58,7 +58,7 @@ transformListOfGeoJsonToGeometryCollection = (resData, routeParams) ->
return ret return ret
root.controllers.controller('geojsonmapCtrl', ['$scope', '$routeParams', '$location', 'util', ($scope, $routeParams, $location, util) -> root.controllers.controller('geojsonmapCtrl', ['$scope', '$routeParams', '$location', '$rootScope', 'util', ($scope, $routeParams, $location, $rootScope, util) ->
$scope.geojson = {} $scope.geojson = {}
$scope.geojsonData = {} $scope.geojsonData = {}
$scope.idx = Number($routeParams.idx) $scope.idx = Number($routeParams.idx)
@@ -96,6 +96,11 @@ root.controllers.controller('geojsonmapCtrl', ['$scope', '$routeParams', '$locat
$scope.setStyleOnFeature = (feature, element) -> $scope.setStyleOnFeature = (feature, element) ->
if feature.properties and feature.properties.style if feature.properties and feature.properties.style
element.setStyle(feature.properties.style) element.setStyle(feature.properties.style)
element.on
click: (e) ->
$rootScope.$broadcast("leafletDirectiveMap.geojsonClick", feature, e)
$scope.initSingleDocument = ()-> $scope.initSingleDocument = ()->
url = getSingleDataUrl($routeParams) url = getSingleDataUrl($routeParams)