Skip to content
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

Height/width of the map cannot be changed. #192

Closed
nexttrack07 opened this issue Jul 10, 2024 · 4 comments · Fixed by #239
Closed

Height/width of the map cannot be changed. #192

nexttrack07 opened this issue Jul 10, 2024 · 4 comments · Fixed by #239
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@nexttrack07
Copy link
Collaborator

Is there a way to recenter the map programmatically? Or refresh the map? For example, if the provided height changes the map doesn't update. We have several use cases where we need to dynamically change the height of the map.

@nexttrack07 nexttrack07 added triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Jul 10, 2024
@illuminati1911
Copy link
Contributor

illuminati1911 commented Jul 11, 2024

Hi @nexttrack07

Is there a way to recenter the map programmatically? Or refresh the map? For example, if the provided height changes the map doesn't update. We have several use cases where we need to dynamically change the height of the map.

There is no recenter function. Not even in the native SDKs. Not sure if it will help you, but you can move the camera to your location by using moveCamera function of the MapViewController

By "height of the map" are you talking about the zoom level?

@illuminati1911 illuminati1911 self-assigned this Jul 11, 2024
@nexttrack07
Copy link
Collaborator Author

Hey Thanks for the response. In the NavigationView component, we specify the width and height. I want to be able to update the height and it should reflect in UI. For example, the height is initially stored in state to 500, then I want to change it to 300 and it should update.

@illuminati1911
Copy link
Contributor

illuminati1911 commented Jul 16, 2024

@nexttrack07 Thanks for reporting this. In regards to the height/width it seems to be a bug in the SDK. I'll change the title to match this.

@illuminati1911 illuminati1911 added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p2 Moderately-important priority. Fix may not be included in next release. and removed type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. triage me I really want to be triaged. labels Jul 16, 2024
@illuminati1911 illuminati1911 changed the title Request for Recenter function on navigationViewController Height/width of the map cannot be changed. Jul 26, 2024
@jokerttu
Copy link
Contributor

Hi @nexttrack07
Please check PR #239, this PR improves how layout is handled on native Android and iOS code, allowing developers to have better control on NavigationView size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants