Partial display if mapwebview is out of screen

0 views
Skip to first unread message

ChaF

unread,
Feb 24, 2009, 10:32:00 AM2/24/09
to iphone-map-view
Hi,

I have a problem with the map web view. If the map web view component
is out of screen while loading the map tiles, the part of the map web
view that is out of screen does not appear even when I scroll my
application screen in order the have all map web view into screen. Do
you experience such behaviour ?

Best regards,
Quentin

ChaF

unread,
Mar 5, 2009, 8:11:31 AM3/5/09
to iphone-map-view
Hi,

I found where the problem comes from.

Actually, as precised in UIScrollView reference documentation
" The scroll view itself does no drawing except for displaying
vertical and horizontal scroll indicators. The scroll view must know
the size of the content view so it knows when to stop scrolling; by
default, it “bounces” back when scrolling exceeds the bounds of the
content.

The object that manages the drawing of content displayed in a scroll
view should tile the content’s subviews so that no view exceeds the
size of the screen. As users scroll in the scroll view, this object
should add and remove subviews as necessary."

So, I override scrollViewDidScroll in order to refresh map view.

Regards,
Quentin
Reply all
Reply to author
Forward
0 new messages