[OpenLayers-Users] wfs markers without the redraw?

Brenningmeyer, Todd tbrenningmeyer at maryville.edu
Wed Aug 13 00:11:24 EDT 2008


Thanks Eric.  I got the getfeature request to work as a URL but the script fails in openlayers in SetMap at "this.renderer.setSize(this.map.getSize());"  GetSize is undefined when I use GML rather than WFS.  Do you have any ideas how to set the getsize or why it would fail here under GML but not with WFS?  The syntax I'm using is:
           gmlLayer = new OpenLayers.Layer.GML( "villages",
                "http://localhost/cgi-bin/mapserv.exe",{
                map:"../htdocs/amap/sites_wfs.map",
                typename: "villages",
               outputformat: "gml2"});
If you have any ideas please let me know and thanks again for your help.  
Todd

________________________________

From: Eric Lemoine [mailto:eric.c2c at gmail.com]
Sent: Tue 8/12/2008 3:31 PM
To: Brenningmeyer, Todd; users at openlayers.org
Subject: Re: [OpenLayers-Users] wfs markers without the redraw?



Hi. You can use OpenLayers.Layer.GML but you'll need to have the
appropriate params in the url to make the request an actual GetFeature
request. Eric

2008/8/12, Brenningmeyer, Todd <tbrenningmeyer at maryville.edu>:
> Hi,
>
> I've been trying to sort out exactly how to display my point data and really
> appreciate the help on the use of stylemaps vs. slds etc.  I have a related
> but slightly different question that I've been trying to sort out via the
> online help and list serve archives etc. but am not getting very far.  I
> have a series of sites in postGIS and am currently displaying these as wfs
> data.  The data loads somewhat slowly but the issue is that it refreshes or
> redraws each time the user zooms in or out.  In my last attempt I converted
> the wfs data to markers but it still refreshes during each zoom and
> sometimes during the pan.  Is there a way to avoid the redraw using wfs?
> What is the best solution for serving about 200+ points?  Do I need to load
> the markers from a textfile to avoid the redraw or is there a very simple
> solution that I've probably overlooked?  I've seen several questions about
> speed of wfs for 300+ features but I'm still not clear on the difference in
> the use and creation of markers vs. vector points.  If both are created
> directly from postgis will they be forced to refresh or redraw in the same
> way during a zoom?
>
> Thanks again for your help
>
> Todd
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>





More information about the Users mailing list