[OpenLayers-Users] Map and Dojo Progressbar stops rendering
Eric Lemoine
eric.c2c at gmail.com
Mon Jun 2 01:35:50 EDT 2008
Hi. Are you sure addFeatures is the one to blame? Given that you don't
see the progress bar progressing i'd tend to think that adding the
features to the layer is fast. Where do you get the features from? Are
they de-serialized before being added to the layer (for example using
an OpenLayers.Format object)? If so, have you checked that the
deserialization is not the source of slowness? Eric
2008/6/1, Zer <hcan at hotmail.com>:
>
> 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.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
More information about the Users
mailing list