Re: [OpenLayers-Users] set extractAttributes to true for WFS layer

2010-04-28 Thread David Fawcett
Joanne, I would first verify that your server is sending the WFS attributes. Use FireBug to look at the WFS request and response. If you are not getting attributes as part of your response, you may need to tweak the settings on your WFS server. If you are using MapServer, this recent post might

Re: [OpenLayers-Users] Vector rotation issues with 2.9

2010-04-28 Thread John Allen
Hey list. I just started building an application using OpenLayers. Just wanted to publicly say: thanks for OpenLayers. It's a really sharp, cool, well designed lib. Once again: thanks for OpenLayers! John ___ Users mailing list Users@openlayers.org http:

Re: [OpenLayers-Users] Vector rotation issues with 2.9

2010-04-28 Thread Lennox Antoine
Same here, works for me. Thanks Andreas. Lennox On Wed, Apr 28, 2010 at 4:20 AM, pedro hernandez < pedrohernandez...@gmail.com> wrote: > In my case it works. Thanks a lot Andreas!!! > > > On Tue, Apr 27, 2010 at 9:43 PM, Andreas Hocevar wrote: > >> Hi, >> >> On Apr 27, 2010, at 15:56 , Lennox An

[OpenLayers-Users] set extractAttributes to true for WFS layer

2010-04-28 Thread myOpenLayersUName
Hello all, I've read the docs and a bunch of forum postings; and I have googled. All to no avail. So, I'll try adding my own post even though this is so simple I can't imagine why I can't find any answers. I have added a WFS layer to my OpenLayers map. I have set the extractAttributes property

Re: [OpenLayers-Users] Vector rotation issues with 2.9

2010-04-28 Thread Andreas Hocevar
Hi, thanks for the simplified examples. I took the html and tested it against my patched local build, and it worked. Looking at line 601 of the OpenLayers.js of your 2.9fix version shows me that your OpenLayers.js is not patched. Regards, Andreas. On Apr 28, 2010, at 17:19 , John McGuire wrote

Re: [OpenLayers-Users] scaleline in lon/lat projection

2010-04-28 Thread Andreas Hocevar
On Apr 28, 2010, at 16:46 , Jan wrote: > Strange. Now it works, but only with OSM layer (which is in Spherical > Mercator) and it does not work when I use WGS-based layer (e.g. > "http://labs.metacarta.com/wms/vmap0";) - in this case scaleline changes > between 1000 and 1 km when I drag a

[OpenLayers-Users] Vector rotation issues with 2.9

2010-04-28 Thread John McGuire
I have tried this fix, and it doesn't seem to work for me, unfortuantely. Simpler examples pages are below http://sco-server6.meas.ncsu.edu/webtest/workspace/cronos/map/ol_cronos_map_min.php?ol=2.8 http://sco-server6.meas.ncsu.edu/webtest/workspace/cronos/map/ol_cronos_map_min.php?ol=2.9 http://sc

[OpenLayers-Users] Smart Switching of Layers

2010-04-28 Thread NORMAN MANN
HI all,   I am new to GIS and specifically openlayers.   I have a fairly simple WMS app built on openlayers. However due to performance I would like to make things seem as if they are performing faster. At the moment we have a tiled layer, and a single none tiled layer. The single layer is loaded

Re: [OpenLayers-Users] IE 8 error with return !!(document.namespaces); (VML.js) in 2.9 version

2010-04-28 Thread christopher.schmidt
On Apr 28, 2010, at 9:55 AM, ext Andreas Hocevar wrote: > Hi, > > On Apr 28, 2010, at 15:52 , Jimmy Aumard wrote: > >> Thanks Andreas >> >> If I put my function in it's work but before I use : >> >> $(document).ready(function() { >> init(); >>}); >> >> I have the error with that. >

Re: [OpenLayers-Users] scaleline in lon/lat projection

2010-04-28 Thread Jan
Strange. Now it works, but only with OSM layer (which is in Spherical Mercator) and it does not work when I use WGS-based layer (e.g. " http://labs.metacarta.com/wms/vmap0";) - in this case scaleline changes between 1000 and 1 km when I drag a map towards poles. Regards, Jan Burdziej 2010/4/

Re: [OpenLayers-Users] unselect did not work

2010-04-28 Thread Sarah Schuessler
Hi Arnd, thanks for your explanation about styleMap and wms-wfs layer for select control. I thought I could use that with original wfs layer instead of having a wfs.fromwmslayer. I solved my issue with adding a new default and select Style to my wfs layer and remove lines with selectLayer.addFe

Re: [OpenLayers-Users] IE 8 error with return !!(document.namespaces); (VML.js) in 2.9 version

2010-04-28 Thread Andreas Hocevar
Hi, On Apr 28, 2010, at 15:52 , Jimmy Aumard wrote: > Thanks Andreas > > If I put my function in it's work but before I use : > > $(document).ready(function() { > init(); > }); > > I have the error with that. > > It's not the same (just for my own personal skills)? I don't know ab

Re: [OpenLayers-Users] IE 8 error with return !!(document.namespaces); (VML.js) in 2.9 version

2010-04-28 Thread Jimmy Aumard
Thanks Andreas If I put my function in it's work but before I use : $(document).ready(function() { init(); }); I have the error with that. It's not the same (just for my own personal skills)? Cheers, Jim. ___ Users mailing list Users@openl

Re: [OpenLayers-Users] Show polygon vectors as points

2010-04-28 Thread acangi
Hello, I'm also looking for a way to render a polygon as a marker. I found an example in the sandboxes : http://dev.openlayers.org/sandbox/topp/almanac/examples/vector-rendering-externalGraphics.html (the red marker is representing a polygon). I'm trying to do the same locally (using OL 2.9 a

Re: [OpenLayers-Users] IE 8 error with return !!(document.namespaces); (VML.js) in 2.9 version

2010-04-28 Thread Andreas Hocevar
Hi, make sure that you don't create vector layers before the document is loaded. The easiest way to do this is to start building your map in the document's onload handler. This is what all OpenLayers examples do. Regards, Andreas. On Apr 28, 2010, at 15:30 , Jimmy Aumard wrote: > Hello, > >

[OpenLayers-Users] IE 8 error with return !!(document.namespaces); (VML.js) in 2.9 version

2010-04-28 Thread Jimmy Aumard
Hello, I use OpenLayers 2.9 and I have an error on IE 8 with return !!(document.namespaces); (VML.js, l 84, c 9) The first load it's work correctly but if I reload the page I have always this error Thanks Jim -- Aumard Jimmy Développeur KINAXIA c/o CICA / PacaEst 2229 Route des Crêtes F-06560

Re: [OpenLayers-Users] scaleline in lon/lat projection

2010-04-28 Thread Bart van den Eijnden
Add your control after the call to zoomToMaxExtent. Best regards, Bart On Apr 28, 2010, at 2:34 PM, Jan wrote: > var map, scalebar; > > function init(){ > > map = new OpenLayers.Map('map'); > var layer = new OpenLayers.Layer.WMS( > > "Op

Re: [OpenLayers-Users] scaleline in lon/lat projection

2010-04-28 Thread Jan
Hi, I tried a simple example: var map, scalebar; function init(){ map = new OpenLayers.Map('map'); var layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0";, {layers: 'bas

Re: [OpenLayers-Users] scaleline in lon/lat projection

2010-04-28 Thread Andreas Hocevar
Hi, in OpenLayers 2.9, you can instantiate the ScaleLine control with the geodesic option set to true: new OpenLayers.Control.ScaleLine({ geodesic: true; }); This will give you an accurate scale line for the current map viewport. Regards, Andreas. On Apr 28, 2010, at 13:33 , Jan wrote: >

Re: [OpenLayers-Users] scaleline in lon/lat projection

2010-04-28 Thread Bart van den Eijnden
Hi Jan, please use OpenLayers 2.9 where the ScaleLine control has a geodesic option which you will need to set to true, see: http://trac.openlayers.org/ticket/1890 http://trac.openlayers.org/changeset/10110 Best regards, Bart On Apr 28, 2010, at 1:33 PM, Jan wrote: > Hi all, > It seems that

[OpenLayers-Users] scaleline in lon/lat projection

2010-04-28 Thread Jan
Hi all, It seems that in lon/lat projections (e.g. EPSG 4326) the scale line is right only for the Equator (0 lat). If you look at the map, e.g.: http://dev.openlayers.org/addins/scalebar/trunk/examples/scalebar.html the scaleline stays constant even if you pan map from N to S. It seems that Poland

Re: [OpenLayers-Users] Displaying Vector Layers through WFS

2010-04-28 Thread Odeneho
Can anybody help with configuring proxyhost on windows 2003 server in order to display wfs layers. I cannot find /usr/lib/cgi-bin/ directory on my server to place proxy.cgi script. Thanks. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Displaying-Vector-Layers-through-W

Re: [OpenLayers-Users] Can't get WKT from OpenLayers.Geometry.Collection?

2010-04-28 Thread Tobias Sauerwein
Hi Eric, I uploaded the patch: http://trac.openlayers.org/ticket/2240 The API changed in a way, that for GEOMETRYCOLLECTION WKT strings no array is returned anymore, but an object of OpenLayers.Feature.Vector which contains an OpenLayers.Geometry.Collection geometry. Thanks for reviewing! Tobia

Re: [OpenLayers-Users] Vector rotation issues with 2.9

2010-04-28 Thread pedro hernandez
In my case it works. Thanks a lot Andreas!!! On Tue, Apr 27, 2010 at 9:43 PM, Andreas Hocevar wrote: > Hi, > > On Apr 27, 2010, at 15:56 , Lennox Antoine wrote: > > > I tried 2.9 and I ran into similar issues as well. I finally got around > to stripping it down, so here are two simple examples sh

Re: [OpenLayers-Users] An interesting little artifact

2010-04-28 Thread Eric Lemoine
On Wed, Apr 28, 2010 at 8:33 AM, Pierre Giraud wrote: > I don't totally agree with you Eric. > I looks like Jeff's problem is that the mouse position div is not cleared > when the map is destroyed. > I think that it's OpenLayers' job to clear the div. It's probably as simple > as giving div's inne