Re: [OpenLayers-Users] Unable to Rollback changes on WFS update failure

2010-07-23 Thread Adrian Popa
Hello, It seems to me that you're not checking the problem where you're supposed to. onCommit returns the reply from the server, so it's the server's job to accept or reject the changes. If the server rejects the changes, you can do just this.layer.refresh({force: true}); and you will get the

[OpenLayers-Users] Help with changing the color of drawn features ?

2010-07-23 Thread koveras vehcna
Hello everyone, I am currently teaching myself OpenLayers and managed to draw Polygons, dots and lines so far. -Along with styling- What I have a hard time figuring out is, is there a way to select the color we want to draw these figures in ? I mean, I have set an HTML Option menu that has some

Re: [OpenLayers-Users] Capturing mouse events

2010-07-23 Thread Piero Campa
Well, regarding the mouse 'clicks' you should take a look at the source of this example: http://openlayers.org/dev/examples/click-handler.html It's something about defining a class OpenLayers.Control.Click inheriting from OpenLayers.Control, then defining the click Handlers. Whether you'd like

Re: [OpenLayers-Users] Help with changing the color of drawn features ?

2010-07-23 Thread Piero Campa
Hi Koveras, have you tried: var myFeatures = new OpenLayers.Layer.Vector(myVectors, { styleMap: myStyleMap, strategies: [myStrategy], protocol: etc. } Then: var myStyleMap = new OpenLayers.StyleMap({

Re: [OpenLayers-Users] Help with changing the color of drawn features ?

2010-07-23 Thread koveras vehcna
Hello Piero, many thanks for your reply. I implemented the code you gave me -only applied the styles so far, leaving the strategy for the defaults- however, the HTML part can't reach the function since it is wrenched in the init() part that sets up the map. And when I move the vector and the

Re: [OpenLayers-Users] Help with changing the color of drawn features ?

2010-07-23 Thread koveras vehcna
I suppose going into the jQuery might turn things around. I'll see if I can do it that way. Again many thanks :) -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Help-with-changing-the-color-of-drawn-features-tp5328663p5328793.html Sent from the OpenLayers Users mailing

[OpenLayers-Users] mailing lish

2010-07-23 Thread sri harsha
hi ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users

[OpenLayers-Users] wfs

2010-07-23 Thread sri harsha
how to get shape file in openlayers -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/wfs-tp5328877p5328877.html Sent from the OpenLayers Users mailing list archive at Nabble.com. ___ Users mailing list Users@openlayers.org

Re: [OpenLayers-Users] wfs

2010-07-23 Thread Bart van den Eijnden
Through something as Mapserver or Geoserver. Bart -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bart...@osgis.nl On Jul 23, 2010, at 11:22 AM, sri harsha wrote: how to get shape file in openlayers --

Re: [OpenLayers-Users] wfs

2010-07-23 Thread Piero Campa
You can get them as raster via WMS (if you have a web map service...), or as vector features via OpenLayers.Layer.Vector or OpenLayers.Layer.WFS. I used to get the PNG raster of my shapefile like this (I have GeoServer as WMS): var myShapeFile = new OpenLayers.Layer.WMS('Name',

Re: [OpenLayers-Users] wfs

2010-07-23 Thread sri harsha
Hi Piero, Thanks for giving response. Actually i'm using TerraGate SFS Manager. I have a couple shape files. I need to get those shape files(wfs) on to the map using openlayers. so, how can i do this using TerraGate SFS Manager?? On Fri, Jul 23, 2010 at 2:58 PM, Piero Campa [via OSGeo.org]

[OpenLayers-Users] force and manage labels with sld

2010-07-23 Thread Jan Burdziej
Hi, Does anyone know if it's possible to enforce labelling all polygon objects using SLD, even if the labels overlap? (sth like Place overlapping labels option in ArcGIS). Does OpenLayers support such things? Best regards, Jan ___ Users mailing list

Re: [OpenLayers-Users] wfs

2010-07-23 Thread Piero Campa
I can see (http://www.skylinesoft.com/SkylineGlobe/Corporate/Products/TerraGateSFSServices.aspx) that TerraGate SFS Manager provides WFS/WMS services, so it's just a matter of getting the WFS URL (or WMS URL), and the name of the shapefile as it is stored in TerraGate. If you want to retrieve

Re: [OpenLayers-Users] Capturing mouse events

2010-07-23 Thread Mike Leahy
Thanks Piero, The first link is definitely a good example to rely on for most typical click events (with the left/default mouse button). But it still lacks the ability to catch a right click. I tried to mimic this in the html file I attached to my first message, but the 'rightclick' method

[OpenLayers-Users] Displaying images even at the edge of the screen

2010-07-23 Thread Tpi
Hello! I'm wondering if it's possible to make images display even if it is not in the middle of the screen. I display the image through a stylemap in a vector layer with a vector feature deciding the coordinates that it's drawn at (In addition to that, is there maybe a way that performs better

Re: [OpenLayers-Users] force and manage labels with sld

2010-07-23 Thread christopher.schmidt
On Jul 23, 2010, at 5:44 AM, ext Jan Burdziej wrote: Hi, Does anyone know if it's possible to enforce labelling all polygon objects using SLD, even if the labels overlap? (sth like Place overlapping labels option in ArcGIS). Does OpenLayers support such things? OpenLayers has no label

Re: [OpenLayers-Users] Manually 'select' feature

2010-07-23 Thread Alex Brandsen
Thanks for replying! getFeatureById() and OpenLayers.Layer.Vector.selectedFeatures both return feature(s), I don't see how I can use these functions to select features? Alex. On Thu, Jul 22, 2010 at 2:56 PM, emmexx emm...@tiscalinet.it wrote: Il 22/07/2010 15:24, Alex Brandsen scrisse: Hi

[OpenLayers-Users] features vanish on zoom

2010-07-23 Thread ulao
I do something like: var obj = new OpenLayers.Geometry.LineString(points); var polygonFeature = new OpenLayers.Feature.Vector( obj ); It shows up find but goes away on zoom and does not come back, even on the same zoom level. Do You have to redraw them? -- View this message in context:

Re: [OpenLayers-Users] features vanish on zoom

2010-07-23 Thread christopher.schmidt
On Jul 23, 2010, at 2:27 PM, ext ulao wrote: I do something like: var obj = new OpenLayers.Geometry.LineString(points); var polygonFeature = new OpenLayers.Feature.Vector( obj ); It shows up find but goes away on zoom and does not come back, even on the same zoom level. Do You have to

Re: [OpenLayers-Users] features vanish on zoom

2010-07-23 Thread ulao
no I use addFeatures(polygonFeature) -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/features-vanish-on-zoom-tp5330701p5330748.html Sent from the OpenLayers Users mailing list archive at Nabble.com. ___ Users mailing list

Re: [OpenLayers-Users] Zoom to dinamic WMS Layer

2010-07-23 Thread Arnd Wippermann
Hi, OpenLayers have no possibilties to get the extent from the WMS. You can try to get the extent by WMS GetFeatureInfo (if you have a point, that indicates the state) or by WFS using the stateId for filter the WFS GetFeature. and then map.zoomToExtent(Bounds); Arnd -Ursprüngliche

Re: [OpenLayers-Users] Manually 'select' feature

2010-07-23 Thread Arnd Wippermann
Hi, you can use the OpenLayers.Control.SelectFeature. There is a function select with a feature to select as argument. ctrlSelectFeatures = new OpenLayers.Control.SelectFeature(...); function radioSelectFeature(idx) { var vlyr = map.layers[1]; try{