Refresh overlayMapTypes (i.e. force call getTile for visible tiles)

1,912 views
Skip to first unread message

Lewis Diamond

unread,
Feb 10, 2012, 4:59:35 PM2/10/12
to Google Maps JavaScript API v3
Hi all,
I have a custom overlayMapType which will add markers from inside the
getTile function. However, this custom map type can be modified to
render different subsets of the markers. In this case, I have to clear
all the markers from the map and then add only the relevant ones.
However, after removing all the markers, I have no mean to trigger a
refresh on the map (i.e. have the map call getTile on my overlay for
every visible tiles).

Does anyone know how to force the refresh of overlay tiles?

Thanks,
Lewis

Martin™

unread,
Feb 10, 2012, 11:07:38 PM2/10/12
to Google Maps JavaScript API v3
Reply all
Reply to author
Forward
0 new messages