Sencha rerender MapPanel
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!
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
精彩评论