[OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Adorian Ardelean
Hi, I have a very simple question: is it possible to modify features in a layer populated from a GeoJSON file? I am asking just about modifying feature on map without the saving part. I did add the modifyFeature control, but I cannot select and modify any of the polygons in this layer ( var

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Jan van der Ven
Hi, Only one select control can be active at the same time. Selections are made in the layer that is on top of the Z-order. Kind regards, Jan _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adorian Ardelean Sent: Thursday, December 04, 2008 09:47 To:

Re: [OpenLayers-Users] [OpenLayers-Dev] New PSC Member: Eric Lemoine

2008-12-04 Thread Ivan Grcic
Just to say congrats and thanks to Eric, for what hes done and for what he'll do in future, its nice to have him around :) Tnx for the whole team also, ure great guys! Regards, On Wed, Dec 3, 2008 at 3:51 PM, Tim Schaub [EMAIL PROTECTED] wrote: Hey- Glad to have you on board Eric - and the

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Jan van der Ven
Dear Adorian, This is the code I have to activate a modifyFeature on a geojson layer. I have a lot of those, so I activate it on a layer by name: modifyControl = new OpenLayers.Control.ModifyFeature(map.getLayersByName(stateNames[modifyContro lIndex])[0]);

Re: [OpenLayers-Users] how select the right feature between 2 superimposed ?

2008-12-04 Thread Sébastien Geindre
Do you think there is a way to select the layer after the event is thrown ? Imagine, you click the mouse on a feature, in fact on 2 features - superimposed -, the UI shows you the both features, and you could select onedraw the attributes of the selected one but for that, we need have

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Adorian Ardelean
Dear Jan, I have tried to declare the control also as in your example. It did not work either. In the meantime, I have localized the problem although I do not have a solution to it yet. Turns out that if I remove style declaration the modify tool works. With this the modifyFeature does not

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Adorian Ardelean
Hi again, I have eliminated also the context for style as a source of problem for the modifyFeature control not working. So it seems that just by specifying a styleMap as option when declaring the vector layer makes the modifyFeature control not functional. var template = { fillOpacity: 0.6,

Re: [OpenLayers-Users] Prototype using TinyOWS for WFS-T - in OL Gallery ?

2008-12-04 Thread Alexandre Dube
Christopher Schmidt wrote: The key questions about any page that gets associated with an OpenLayers wiki page, gallery page, etc. is (in my mind): What does this give to users? I don't see that the current BGDA demo provides a lot to users: It doens't seem to provide a particularly

[OpenLayers-Users] [OpenLayers-Dev] Dynamic-Panel

2008-12-04 Thread Dipl. Inf. Carsten Eider
Hi list, within my geo-editor i want to set-up a panel/toolbar whose buttons depend on the number of selected features. I am using a panel to add the buttons, but there is no method to remove the buttons or better all butoons. Destroying the panel kills my buttons, which i want to be

Re: [OpenLayers-Users] [OpenLayers-Dev] New PSC Member: Eric Lemoine

2008-12-04 Thread Alexandre Dube
In each Eric's e-mail/comment/response, we read professionalism, kindness and a will to help the others. In brief, he's a great and nice guy who deserves our thanks. Congratulation Eric ! Erik Uzureau wrote: The OpenLayers Project Steering Committee is proud to announce our newest and

[OpenLayers-Users] using SLD with more than once sld:LineSymbolizer

2008-12-04 Thread Ignacio Talavera
Hi, I'm trying to highlight a FeatureCollection by applying a SLD FeatureTypeSytle.So I wirte an SLD file with two sld:LineSymbolizer elements sld:LineSymbolizer sld:Stroke sld:CssParameter name=stroke ogc:Literalyellow/ogc:Literal /sld:CssParameter sld:CssParameter name=stroke-width

Re: [OpenLayers-Users] using SLD with more than once sld:LineSymbolizer

2008-12-04 Thread Ivan Grcic
Little more info would help...are you talking about WMS layer? that you're serving trough GeoServer or similar? or its about WFS, vector layeR? On Thu, Dec 4, 2008 at 3:12 PM, Ignacio Talavera [EMAIL PROTECTED] wrote: Hi, I'm trying to highlight a FeatureCollection by applying a SLD

Re: [OpenLayers-Users] using SLD with more than once sld:LineSymbolizer

2008-12-04 Thread Ignacio Talavera
Oops sorry :), I'm loading a GML layer from an xml, map.addLayer(new OpenLayers.Layer.GML(layerName, gmlUrl, {styleMap: new OpenLayers.StyleMap(sld.namedLayers[layerStyle].userStyles[0])} )); I attached the GML and SLD file :D. thanks On Thu, Dec 4, 2008 at 12:20 PM, Ivan Grcic [EMAIL

Re: [OpenLayers-Users] ***** SPAM ***** problem to obtain the field value

2008-12-04 Thread bartvde
Hi, you might want to have a look at: http://trac.openlayers.org/ticket/1812 After applying the patch you can do something like: function setHTML(response) { var format = new OpenLayers.Format.WMSGetFeatureInfo(); var features = format.read(response.responseXML ||

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Eric Lemoine
Hello Try: new OpenLayers.StyleMap({ default: yourStyle }); Hope this helps, Eric 2008/12/4, Adorian Ardelean [EMAIL PROTECTED]: Hi again, I have eliminated also the context for style as a source of problem for the modifyFeature control not working. So it seems that just by specifying

Re: [OpenLayers-Users] New PSC Member: Eric Lemoine

2008-12-04 Thread Eric Lemoine
Thank you all for your encouragements. I'll show this thread to my girlfriend :-) Eric 2008/12/4, Alexandre Dube [EMAIL PROTECTED]: In each Eric's e-mail/comment/response, we read professionalism, kindness and a will to help the others. In brief, he's a great and nice guy who deserves our

Re: [OpenLayers-Users] wfs-t modify problem

2008-12-04 Thread Andreas Hocevar
Hi, On Thu, Nov 20, 2008 at 7:06 PM, Indika Tantrigoda [EMAIL PROTECTED] wrote: Hello to all, In my wfs-t modification request the tag is as follows wfs:Update typeName =features which I am guessing is causing a problem. Should typeName = features:cities or typeName=topp:cities be present

[OpenLayers-Users] OpenLayers and JQuery

2008-12-04 Thread Norman Barker
Hi, I would like to use OpenLayers and JQuery together. I noted the jquery and prototype library conflicts and have added $j = jQuery.noConflict(); to make the $ function available to OpenLayers. However on loading the page I get (with firebug) str.indexOf is not a function [Break on this

Re: [OpenLayers-Users] New PSC Member: Eric Lemoine

2008-12-04 Thread Indika Tantrigoda
I've been using OpenLayers for about 6 months I guess, and I've learned a lot through Eric's comments and responses. Thanks and Congratulations Eric. Regards, Indika 2008/12/4 Eric Lemoine [EMAIL PROTECTED] Thank you all for your encouragements. I'll show this thread to my girlfriend :-)

Re: [OpenLayers-Users] using SLD with more than once sld:LineSymbolizer

2008-12-04 Thread Ivan Grcic
Hola, i dont think its possible use multi symbolizer for vectors in openlayers. Or you have to draw twice ure lines, each time with other line symbolizer (im not sure what will be result of that, and i think dash-array is not supported-someone correct me if im wrong) or just use WMS - where you

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Alexandre Dube
Hi, Maybe this can helps. var oStyle = new OpenLayers.Style({ pointRadius: ${radius}, fillOpacity: 0.4, strokeColor: #00, strokeWidth: 2 }, { context: { radius: function(feature) { return

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Robert Sanson
This works for me: var crop_style = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']); crop_style.strokeWidth = 3; crop_style.strokeColor = #ff; crop_style.fillOpacity = 0.25; crop_style.pointRadius = 2;

Re: [OpenLayers-Users] OpenLayers and JQuery

2008-12-04 Thread Amos Hayes
That's odd Norman. I'm using the latest OpenLayers and JQuery together on the same page without issue and without doing anything special to avoid conflict. The basic features of OpenLayers that I'm using work fine, and I'm able to use the $() function as is. I am loading the Google and

[OpenLayers-Users] Querying multiple layers

2008-12-04 Thread ajohnson
I have a map with multiple layers (view at http://ecotropolis.com/maps/NorthAmericaWatershed.html) and I want to be able to click on a feature of any of the maps and retrieve data from the WMS (I'm using Geoserver). I initially got it working using the following line in getFullRequestString:

Re: [OpenLayers-Users] OpenLayers and JQuery

2008-12-04 Thread Norman Barker
Amos, thanks for the tip, building the single file version of OpenLayers rather than using lib/OpenLayers.js solved the problem and I am working again! After building the single file version of OpenLayers I was able to remove the jquery noConflicts function and everything works fine. thanks,

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Adorian Ardelean
Hi Alexandre, No. This is very similar to what I had initially except adding select style to stylemap. At click on feature, the select style is applied, but no edit of vertex is possible (no drag-able circles appear on vertexes). So I can make the layer editable by adding rule, but unfortunately

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Eric Lemoine
On Thu, Dec 4, 2008 at 11:25 PM, Adorian Ardelean [EMAIL PROTECTED] wrote: Hi Alexandre, No. This is very similar to what I had initially except adding select style to stylemap. At click on feature, the select style is applied, but no edit of vertex is possible (no drag-able circles appear on

Re: [OpenLayers-Users] Change mouse pointer for Zoombox control

2008-12-04 Thread Subha Ramakrishnan
Hi , I did try out the changes made in the patch. Now, when i select the zoombox control, the mouse pointer changes to a zoombox cursor. But i am still facing the same problem.Once, i zoom in to an area using the control, the mouse pointer reverts back to the default pointer. Should i