added google map link.
This commit is contained in:
1 parent
f423d23e9a
commit
c298e19141
2 files changed
+8
-2
No files matched your search
@@ -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) ->
|
||||
|
||||
Reference in new issue
Block a user