Reputation: 7990
I have a MapPanel and want to show a marker on the map. The map needs to wait on some data before rendering.
I'm loading som coordinates, and when they are loaded, I want the map to (re)render itself.
How is that possible?
Thanks a lot!
Upvotes: 0
Views: 673
Reputation: 4134
I'm not sure if you'd like the map to rerender itself completely. I think it would be enough for you to calculate the new bounds of your map, in order to fit all the markers on the map that you are loading.
In order to do this, see: Google Map API v3 — set bounds and center
Upvotes: 1