[OpenLayers-Users] Map and Dojo Progressbar stops rendering
Zer
hcan at hotmail.com
Sun Jun 1 17:38:48 EDT 2008
Hi,
I add a lot of features into a vector layer. Since it takes a few seconds to
add all the features (using vectorLayer.addFeatures(features)), it appears
to the user that the browser hangs. May plan was to load the features one by
one instead (using vectorLayer.addFeatures(features[i]) inside a loop). So
that the users can see that something is going on. Inside the loop I also
update a Dojo ProgressBar. However, the ProgressBar never gets updated and
the vector features do not render one by one. Instead, it still looks like
the browser hangs until all features show up in the map at the same time,
and the ProgressBars shows 100%. But... if I add an alert() inside the loop,
the ProgressBar works as expected and the features show up one by one every
time I dismiss the alert. Does anyone have a solution to this behaviour?
Thanks,
-Z-
--
View this message in context: http://www.nabble.com/Map-and-Dojo-Progressbar-stops-rendering-tp15838930p15838930.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list