New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change Store/Group location by clicking on map #391 #441
Conversation
Codecov Report
@@ Coverage Diff @@
## master #441 +/- ##
==========================================
- Coverage 98.5% 98.37% -0.13%
==========================================
Files 217 217
Lines 3008 3020 +12
==========================================
+ Hits 2963 2971 +8
- Misses 45 49 +4
Continue to review full report at Codecov.
|
@@ -70,6 +70,10 @@ angular.module("app", [ | |||
.run(AppLocalizeRun) | |||
.config(AppMaterial) | |||
.config(AppHTTPErrorHandler) | |||
.config(( $mdGestureProvider ) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not quite sure if tinkering with the mdGestureProvider is a good idea - but otherwise clicks are not working on mobile maps. Any good ideas?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there documentation on this? I found https://github.com/angular/code.material.angularjs.org/blob/master/HEAD/partials/api/material.core.gestures/service/$mdGestureProvider.html
I guess the touch event is intercepted by $mdGesture and does not reach leaflet. But is there another event emitted that could be used by leaflet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I found angular/material#1300 (comment) - so apperently this destorys certain swipe features of angular material, but I think having a working map is more important. Will not only be interesting for this issue, but also for clickable popups etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, we can think about this more when we need md-swipe.
Ooooh amazing! 😃 |
longitude: e.leafletEvent.latlng.lng | ||
}; | ||
$scope.mapController.marker = { | ||
p: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Repeated code, maybe move it into a function?
} | ||
}); | ||
|
||
$scope.mapController = this; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary? this
is already bound to $scope.$ctrl
.
ff1a24d
to
e4b2cd3
Compare
Closes #391