-
Notifications
You must be signed in to change notification settings - Fork 1
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
locate substation with zoom #119
Conversation
c614a9d
to
d23227c
Compare
Signed-off-by: jamal-khey <myjamal89@gmail.com>
d23227c
to
dc5f44b
Compare
Maybe we need to check if the current zoom level is greater than the default zoom level defined in the code, and then consider the current zoom level. Otherwise, we should use the default one. |
Signed-off-by: jamal-khey <myjamal89@gmail.com>
1891533
to
26fd64b
Compare
Done , i keep the max between previous and new zoom level |
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.
tested, code OK
Quality Gate passedIssues Measures |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce?
What is the current behavior?
centering the view on a substation did not trigger any zoom action on the substation. The camera may have remained at a default zoom level , making it difficult for users to focus on the specific substation they were trying to locate i a dense network
What is the new behavior (if this is a feature change)?
now when the location locating a substation, the camera automatically zooms in on the substation. This provides immediate visual feedback and helps users quickly identify the substation's location on the map.
Does this PR introduce a breaking change or deprecate an API?
What changes might users need to make in their application due to this PR? (migration steps)
a new optional props is available
locateSubStationZoomLevel
wich allow to define zoom level.if not defined this props has a default value to 12