From c298e19141a0d296793617c2d2487b48c71c1b18 Mon Sep 17 00:00:00 2001 From: "didier.amyot" Date: Fri, 11 Jul 2014 15:00:26 -0400 Subject: [PATCH] added google map link. --- client/coffee/controllers/geojsonmapCtrl.coffee | 6 ++++-- client/partials/geojsonmap.html | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/client/coffee/controllers/geojsonmapCtrl.coffee b/client/coffee/controllers/geojsonmapCtrl.coffee index e43fcaa..8665dc9 100644 --- a/client/coffee/controllers/geojsonmapCtrl.coffee +++ b/client/coffee/controllers/geojsonmapCtrl.coffee @@ -82,8 +82,6 @@ root.controllers.controller('geojsonmapCtrl', ['$scope', '$routeParams', '$locat $scope.setStyleOnFeature = (feature, element) -> if feature.properties and feature.properties.style element.setStyle(feature.properties.style) - - $scope.initSingleDocument = ()-> url = getSingleDataUrl($routeParams) @@ -98,6 +96,10 @@ root.controllers.controller('geojsonmapCtrl', ['$scope', '$routeParams', '$locat style: geojson.properties.style or undefined resetStyleOnMouseout: true + $scope.getGoogleMapLink = () -> + c = $scope.center + return "https://www.google.ca/maps/@#{c.lat},#{c.lng},#{c.zoom}z" + $scope.initAllDocuments = () -> url = getAllDataUrl($routeParams) util.get(url).then (res) -> diff --git a/client/partials/geojsonmap.html b/client/partials/geojsonmap.html index b988067..a6e59e0 100644 --- a/client/partials/geojsonmap.html +++ b/client/partials/geojsonmap.html @@ -25,4 +25,8 @@
Aggregated representation
+
+ see region on google map +
+