开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜