[OpenLayers-Dev] Re: vector layer with highest zIndex not overlaying other vector layers

Xurxo Mendez xmendez at udc.es
Mon Oct 4 04:42:49 EDT 2010


Hi,

In my sandbox you can find an example of how to use WFS transactional trying
to minimize the ammount of data transmitted between client and server. It's
quite based in the mentioned Andreas' example, it's just another resource
oriented slightly different.
What it does, as explained there, is to load first only a WMS layer, and
feature data will only be retrieved when clicking on them. It can be easily
adapted to your needs if you want to load more than one feature at a time
(the example is WFS-T-oriented). You can find it here:

http://dev.openlayers.org/sandbox/sonxurxo/wfs-t/examples/wfs-transaction-optimized.html


Best regards,

Xurxo Méndez Pérez

http://www.sonxurxo.com


2010/10/3 Andreas Hocevar <ahocevar at opengeo.org>

> Hi,
>
> from what you describe, your use case screams for rendering features on the
> server and maintaining only a layer of selected features (using the
> GetFeature control) on the client. For this, however, you would need a WMS
> or something similar that can render your features on the server.
>
> You may want to have a look at http://ol-performance.appspot.com/,
> especially the "Combine OGC Services Wisely" section which shows alternative
> ways of feature selection.
>
> Also, don't expect too much performance improvements from the Cluster
> strategy. It will speed up rendering and panning for sure, but the real
> bottleneck is parsing the features as they arrive from the server. The
> cluster strategy is a great way to improve the perception of otherwise
> overcrowded maps, but it is not an all-purpose cure for performance issues.
>
> Regards,
> Andreas.
>
> On Oct 3, 2010, at 15:57 , crb wrote:
>
> >
> > Hi Andreas.  Thanks for the reply (and for the reply to my other post of
> the
> > same day).
> >
> > The reason for the extra layer for the selected features is because we
> want
> > to show selected features at all scales, but the vector layer for our
> > "locations" layer has too many features to display at all scales:  it
> drags
> > IE to a crawl, rendering it unusable.  So for our "main", location
> features
> > layer, we display only at the 10th zoom level and we display only the
> > features within the maps current extent (requiring a callback to the
> server
> > every time the extent changes) and we use a cluster strategy for it.
>  This
> > helps with the locations layer (sort of -- I'll be posting again shortly
> in
> > another thread regarding problems we're having with the cluster strategy)
> > but so that the user can always see all the features that they've
> selected,
> > we need a 2nd vector layer (or equivalent) to display only selected
> features
> > at all scales.
> >
> > Even given that, we've decided to hold off adding a 2nd selected features
> > layer for to make sure we can get the cluster strategy working the way we
> > need it first.  We'll likely revisit this, but we have to resolve our
> other
> > issue first...
> > --
> > View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/vector-layer-with-highest-zIndex-not-overlaying-other-vector-layers-tp5592538p5596175.html
> > Sent from the OpenLayers Dev mailing list archive at Nabble.com.
> > _______________________________________________
> > Dev mailing list
> > Dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>
>
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
>
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20101004/0208b33f/attachment-0001.html


More information about the Dev mailing list