-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix/input scale in UI #146
Conversation
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.
problem
mapcanvas is flickered like following movie:
2023-09-04.22.24.39.mov
codes
- comments (this is not blocker to merge)
from this commitment, flickered issue looks not occurs |
@Kanahiro Okay I solved comments |
scale.py
Outdated
return iface.mapCanvas().scale() | ||
|
||
|
||
def set_map_extent_from_webmercator(scale: float): |
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.
This is not an abstraction.
I mean in the comment:
def set_map_extent_from_webmercator(scale: float): | |
def set_map_extent_from(scale: float, crs: QgsCoordinateReferenceSystem): |
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.
Oh right !
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.
@Kanahiro
Sorry I misunderstood your comment.
When other crs is defined, approach is different.
-
if EPSG:3877 :
map extent is calculated as in
set_map_extent_from_webmercator function -
other projections :
do onlyiface.mapCanvas().zoomScale(scale)
https://github.com/MIERUNE/qgis-plugin-for-plugx/pull/146/files#diff-de91a3ce09f7dfdcba68f804df42972a7548fb2157542bd39dad4e6b18bf03dcR310
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.
Okay, I'll push my codes.
@bordoray
|
Actually it flicker, only after set a scale on plugX UI |
@Kanahiro How it is? |
@bordoray 2023-09-19.9.26.03.mov |
@Kanahiro Sorry I misunderstood.
I thought flickering is not blocker to merge and we will solve in separate issue, but I think understood now, that we have to solve flickering issue to merge, right? |
the flicker is a blocker for me because:
|
I have understood I mentioned "this is not blocker to merge" and you read this for the feature. |
Okay thanks for clarifying. |
@Kanahiro Looks EDIT : FYI this simple command launched in Python console made map flickered even without open plugin UI |
@Kanahiro Okay it should be fixed! |
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.
LGTM 👍 Thanks a lot.
Issue
close #144
テスト手順:Test