[OpenLayers-Users] Resymbolize without redownloading?

Arnd Wippermann arnd.wippermann at web.de
Fri Feb 1 09:21:01 PST 2013


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/f968c314/attachment.html>


More information about the Users mailing list