added google map link.

This commit is contained in:
didier.amyot committed 2014-07-11 15:00:26 -04:00
1 parent f423d23e9a
commit c298e19141
2 files changed
+8 -2

No files matched your search

@@ -83,8 +83,6 @@ root.controllers.controller('geojsonmapCtrl', ['$scope', '$routeParams', '$locat
if feature.properties and feature.properties.style if feature.properties and feature.properties.style
element.setStyle(feature.properties.style) element.setStyle(feature.properties.style)
$scope.initSingleDocument = ()-> $scope.initSingleDocument = ()->
url = getSingleDataUrl($routeParams) url = getSingleDataUrl($routeParams)
util.get(url).then (res) -> util.get(url).then (res) ->
@@ -98,6 +96,10 @@ root.controllers.controller('geojsonmapCtrl', ['$scope', '$routeParams', '$locat
style: geojson.properties.style or undefined style: geojson.properties.style or undefined
resetStyleOnMouseout: true resetStyleOnMouseout: true
$scope.getGoogleMapLink = () ->
c = $scope.center
return "https://www.google.ca/maps/@#{c.lat},#{c.lng},#{c.zoom}z"
$scope.initAllDocuments = () -> $scope.initAllDocuments = () ->
url = getAllDataUrl($routeParams) url = getAllDataUrl($routeParams)
util.get(url).then (res) -> util.get(url).then (res) ->
+4
View File
@@ -25,4 +25,8 @@
<div class="large-12 columns" style="text-align: center;" > <div class="large-12 columns" style="text-align: center;" >
<a ng-href="{{ getAggredatedUrl() }}">Aggregated representation</a> <a ng-href="{{ getAggredatedUrl() }}">Aggregated representation</a>
</div> </div>
<div class="large-12 columns" style="text-align: center;" >
<a ng-href="{{ getGoogleMapLink() }}" target="_blank">see region on google map</a>
</div> </div>
</div>