Re: [OpenLayers-Users] control.SelectFeature

2010-04-27 Thread sunny74
Hi Sarah, Thanks for your reply. I tried using http://dev.openlayers.org/releases/OpenLayers-2.9/examples/getfeature-wfs.html http://dev.openlayers.org/releases/OpenLayers-2.9/examples/getfeature-wfs.html but it doesn't work. How ever when I create a WFS atop a WMS and then do getfeature on

[OpenLayers-Users] Value of mousePosition control wrong

2010-04-27 Thread Jimmy Aumard
Hello, I have overwrite the TileCache class for show my own tiles (no geographic data) but I don't know how the control position give me wrong value I have configure my map like this: var _size = new OpenLayers.Size(300, 300); map = new OpenLayers.Map( 'map', { tileSize : _size,

Re: [OpenLayers-Users] unselect did not work

2010-04-27 Thread Sarah Schuessler
Hi Arnd, thanks for your answer! Please read below. Hi, i'm not sure, why you need a layer for your selected feature. Why not use the selectFeatureControl on the wfs layer. I use my Control.SelectFeature with my wfs layer(wfs2)- or don`t I use the

[OpenLayers-Users] Custom cotrol design problem

2010-04-27 Thread David Alda Fernandez de Lezea
Hi list, I've developed a simple control for my GIS viewer. It's a status bar in which I set some messages and the mouse position, with some options to change the display projection. It works OK, but the thing is that I want to avoid some controls to work when I'm over the status bar, for

Re: [OpenLayers-Users] control.SelectFeature

2010-04-27 Thread Sarah Schuessler
Hi, I think you cannot use a circle instead of a box. But you can change your code to do a GeFeature-request with a filter, so you can request your features around a circle area. To question 1: I had same occurrence with the fast disappearing box- but I think that has to do with event and

Re: [OpenLayers-Users] control.SelectFeature

2010-04-27 Thread bartvde
I've got some code lying around to do circle selection with the GetFeature control. If anybody is interested I can open up a ticket with a patch. Some handlers have a persist option which indicate whether or not the drawn geometry should persist (not be cleared after drawing), however the box

Re: [OpenLayers-Users] control.SelectFeature

2010-04-27 Thread sunny74
Hi Bart, I am interested in the circle selection with the GetFeature control. Pls open the ticket with the instruction on how to use the patch. Further I have one query regarding filter. 1)For getting the feature details within a selected area I think I need to use WITHIN FILTER? yes or no

Re: [OpenLayers-Users] control.SelectFeature

2010-04-27 Thread Sarah Schuessler
Hi, for question 1 and 2: yes. For question 3 you can use buffer. best regards Sarah Von: sunny74 sb@hotmail.com An: users@openlayers.org Gesendet: Dienstag, den 27. April 2010, 11:16:33 Uhr Betreff: Re: [OpenLayers-Users] control.SelectFeature Hi Bart,

Re: [OpenLayers-Users] control.SelectFeature

2010-04-27 Thread Sarah Schuessler
Hi, I did not use a filter yet. But I think you can find some examples at example page of OL (http://dev.openlayers.org/releases/OpenLayers-2.9/examples/filter.html for example). There is no filter named buffer. You can make a GetFeature request with param buffer(distance). DWITHIN is using

[OpenLayers-Users] OpenLayers, OSM on Android and Iphone problems

2010-04-27 Thread Atl
Hey Im currently using OpenLayers and OSM as maps in my application, i have found different hacks and codes that gives me partial touch support or only working good on iphone. Found: http://mab.edina.ac.uk/geomobile-test/osm.html that seems buggy on android (htc desire) but works better on

Re: [OpenLayers-Users] OpenLayers Optimization - many vectors

2010-04-27 Thread Paw3l
As one person has told me I have managed to solve this problem by using Geoserver and render my vectors by this tool. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/OpenLayers-Optimization-many-vectors-tp4950514p4968440.html Sent from the OpenLayers Users mailing list

[OpenLayers-Users] Spatial Filter parameter for WFS GetFeature

2010-04-27 Thread sunny74
Dear Friends, I am trying to apply spatial filter to my GEtfeature requests on WFS layer atop a WMS. If I look at the spatial filter documentation http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Filter/Spatial-js.html

Re: [OpenLayers-Users] Spatial Filter parameter for WFS GetFeature

2010-04-27 Thread bartvde
Hi, you need to specify filterType. The control will take care of providing the values. So: var control = new OpenLayers.Control.GetFeature({ .. filterType: OpenLayers.Filter.Spatial.INTERSECTS .. }); Best regards, Bart Dear Friends, I am trying to apply spatial filter to my

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

2010-04-27 Thread pedro hernandez
Something similar happens to me when I tried 2.9 version. I'm using Vector Layer with one vector of Geometry Points. If I use circle in graphicName of Style Map it puts in a good position but If I instead I use triangle with rotation propierty it puts in a bad postion. In my case this happens

Re: [OpenLayers-Users] Spatial Filter parameter for WFS GetFeature

2010-04-27 Thread sunny74
Hi Bart, I tried both the Intersects as well as the WITHIN Filter with the filtertype as suggested by you. In both cases I get the same result i.e Intersects does not give me only the intersecting features and Within does not give me only the features completely within the selection. It could

Re: [OpenLayers-Users] Spatial Filter parameter for WFS GetFeature

2010-04-27 Thread bartvde
The control fills in the value as I said before. Please install Firebug and check the request generated by OpenLayers and sent to your WFS. Bart Hi Bart, I tried both the Intersects as well as the WITHIN Filter with the filtertype as suggested by you. In both cases I get the same result

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

2010-04-27 Thread Lennox Antoine
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 showing it : 2.8 : http://vizure.net/temp/ol/rotation_2_8.html 2.9 : http://vizure.net/temp/ol/rotation_2_9.html Both are exactly the same, except for which version of

[OpenLayers-Users] Displaying Vector Layers through WFS

2010-04-27 Thread Odeneho
Hi, I am trying to display vector layers from my WFS created in geoserver in openlayers application. However, the WMSs display without errors but when I try to display the vectors via the code below as overlays nothing display in the map window. I tried a KML example from file but to no avail;

Re: [OpenLayers-Users] unselect did not work

2010-04-27 Thread Arnd Wippermann
Hi Sarah, the example shows how to retrieve features from a wms layer. But you have a vector layer (wfs layer). So you can link the SelectFeatureControl to that layer. ctrlSelectFeatureOptions = { clickout: true, toggle: true, multiple: false, hover: false, toggleKey: ctrlKey, multipleKey:

[OpenLayers-Users] Symbolizing a polygon layer

2010-04-27 Thread Eric Keefauver
Hello, New to openlayers and need some advice: I need to symbolize a polygon layer that consists of 5 polygons. Each polygon will be symbolized based on a time value that is pulled from a postgresql database. What is the best method of changing the fillcolor of each polygon in the layer based on

Re: [OpenLayers-Users] Layer.Grid.destroy() and Google Chrome

2010-04-27 Thread Eric Lemoine
On Mon, Mar 8, 2010 at 7:02 PM, Armin Burger armin.bur...@gmx.net wrote: Hi all I'm currently trying to test OpenLayers for an application with a catalogue search interface. The layer which is queried is based on PostGIS and retrieved from OL as WMS layer based on Mapserver/MapScript. The

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

2010-04-27 Thread Andreas Hocevar
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 showing it : 2.8 : http://vizure.net/temp/ol/rotation_2_8.html 2.9 :

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

2010-04-27 Thread Eric Lemoine
On Thu, Apr 22, 2010 at 1:30 PM, Tobias Sauerwein tobias.sauerw...@camptocamp.com wrote: Hi! I am trying to get a WKT string from a OpenLayers.Geometry.Collection, but only null is returned. I found this ticket [1], but which is 8 months old. Is this method still not implemented yet for

Re: [OpenLayers-Users] How to print map area with openlayers

2010-04-27 Thread guillaumev
Hi, I now have my vector layers being displayed properly in the image and the result looks ok, but I still have one small problem: when I move the map, the generated image remains the same. I need to do a zoom out and zoom in to have the generated image reinitialized to the right position.

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

2010-04-27 Thread Christophe Geiser
Thanks a lot for this answer Yes, I gave it a try with the getCentroid() method, but what I do not get is how to constrain a rule so as to display a centroid instead of a polygon, without adding the centroid (as a new feature) to the layer. If this is not possible, I think the best option would be

[OpenLayers-Users] An interesting little artifact

2010-04-27 Thread Jeff Dege
When I display an OpenLayers map, with a MousePosition control in an external div, when I destroy the map, the external div is not cleared. The div into which the map is displayed is cleared, and I see the background color it had before the map was opened, but the external div into which the