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

Map not rendered #44

Closed
vd3d opened this issue Jun 5, 2020 · 4 comments
Closed

Map not rendered #44

vd3d opened this issue Jun 5, 2020 · 4 comments

Comments

@vd3d
Copy link

vd3d commented Jun 5, 2020

Hi,

I have a special case... sorry ;-)

I show a bootstrap modal, this one contains the Google map component.
Just after the modal is shown, I have 2 possibles actions:

  1. I center the map to my current lon/lat
  await _modal.Show();
  await _modal.Map.Center();
  1. I try to render a direction
  await _modal.Show();
  await _modal.Map.DrawDirections();

Case (1), everything goes fine.

Case (2), the map is not always rendered, sometimes 50% of the map is visible only!
Also, it does not zoom around the direction path.

But, noticed that if I force a redraw of the directions (see on the picture, I have a button), it works perfectly then :-P

Do you have any idea of the issue? ( I don't ) :-P

Thx

image

@valentasm1
Copy link
Collaborator

Could you try add Task.Delay(1000) in some locations. Just to be sure if it help. Not to use as main solution. Also could you post a bit more code to help reproduce issue

@vd3d
Copy link
Author

vd3d commented Jun 5, 2020

Thanks,

It does not help, but if I remove the "fade" effect from the modal, it seems to works !

@valentasm1
Copy link
Collaborator

Sooo it mean no problem then?
Maybe doing smth on OfterRenderAsync could help.

@vd3d
Copy link
Author

vd3d commented Jun 5, 2020

Indeed, playing with AfterRenderAsync made the trick, thanks ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants