[OpenLayers-Users] Resymbolize without redownloading?

Jay L. jlaura at asu.edu
Fri Feb 1 10:22:03 PST 2013


wonderful!  thanks

On Fri, Feb 1, 2013 at 10:21 AM, Arnd Wippermann <arnd.wippermann at web.de>wrote:

> **
> yes, it is possible, try
>
> layer.redraw();
>
> Arnd
>
>  ------------------------------
> *Von:* openlayers-users-bounces at lists.osgeo.org [mailto:
> openlayers-users-bounces at lists.osgeo.org] *Im Auftrag von *Jay L.
> *Gesendet:* Freitag, 1. Februar 2013 17:11
> *An:* openlayers-users at lists.osgeo.org
> *Betreff:* [OpenLayers-Users] Resymbolize without redownloading?
>
> Posted on gis.stackexchange, but figured I should ask here as well.
>
> Thanks,
> Jay
>
>  GeoJSON served via GeoServer to OpenLayers.
>
> Simple question - Is it possible to apply a new styleMap without
> redownloading the data from the server?
>
> I am currently using the following, but am redownloading.
>
> layer.styleMap = new_style
> layer.refresh({force:true})
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130201/8a8625f5/attachment.html>


More information about the Users mailing list