[OpenLayers-Users] wfs markers without the redraw?

Brenningmeyer, Todd tbrenningmeyer at maryville.edu
Wed Aug 13 16:09:22 EDT 2008


Chris and Eric,
Thanks for your help.  It works and does not refresh the points when I zoom in!  I used the following and the points drew without a problem.
Thanks again,
Todd
 
           gmlLayer = new OpenLayers.Layer.GML( "villages",[
                http://localhost/cgi-bin/mapserv.exe?map=../htdocs/amap/sites_wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=villages&outputformat=gml2]
                );


________________________________

From: Eric Lemoine [mailto:eric.c2c at gmail.com]
Sent: Wed 8/13/2008 9:10 AM
To: Christopher Schmidt
Cc: Brenningmeyer, Todd; users at openlayers.org
Subject: Re: [OpenLayers-Users] wfs markers without the redraw?



On Wed, Aug 13, 2008 at 2:58 PM, Christopher Schmidt
<crschmidt at metacarta.com> wrote:
> In OpenLayers, the options object, when passed, will override all the
> layer's internal settings for any named properties. Specifically, in
> this case, the 'map' property passed in will override the 'map' property
> on the layer -- meaning that now 'layer.map' is not an OpenLayers.Map,
> but instead a string. When map.getSize is called by the renderer later
> on, it will fail, because strings don't have a getSize method.

Oh, good catch Chris!

--
Eric

No virus found in this incoming message.
Checked by AVG - http://www.avg.com <http://www.avg.com/> 
Version: 8.0.138 / Virus Database: 270.6.2/1609 - Release Date: 8/13/2008 6:43 AM





More information about the Users mailing list