Re: [OpenLayers-Users] loadURL returns a pdf

2009-02-08 Thread Eric Lemoine
Alexandre, Have you looked at the MapFish print widgets? I'd recommend doing so :-) Eric 2009/2/6, Alexandre Dube ad...@mapgears.com: Thanks Bart, This looks great. I'll take some time today to look at all this. Alexandre bart...@osgis.nl wrote: Hi Alexandre, I've got a PHP

Re: [OpenLayers-Users] Browsing KML/Marker layer

2009-02-03 Thread Eric Lemoine
Hi In the loadend listener you can do the following to zoom to the smallest extent bounding the loaded features: map.zoomToExtent(gmlLayer.getDataExtent()); Cheers, Eric 2009/2/3, ppafin ppa...@gmail.com: Hi, I've been experimenting a lot with openlayers and I am able to produce markers

Re: [OpenLayers-Users] setVisibility VS visibility:false

2009-01-29 Thread Eric Lemoine
On Thu, Jan 29, 2009 at 9:00 PM, Alexandre Dube ad...@mapgears.com wrote: Hi list, Is there a difference between layer.setVisibility(false) and the {visibility:false} option directly specified in the layer ? Is one a better practice than the other ? You'll use setVisibility if you need to

Re: [OpenLayers-Users] Change layer after zooming?

2009-01-29 Thread Eric Lemoine
Hi One way to do that is to have two OpenLayers layers with disjoint resolution sets. To configure a layer with resolutions you pass its constructor a config object including a resolutions option referencing an array of resolutions. Hope this helps, Eric 2009/1/30, Ivo Brodien

Re: [OpenLayers-Users] setVisibility VS visibility:false

2009-01-29 Thread Eric Lemoine
' } ); twms.setVisibility(false); map.addLayer(twms); ... insead of using {visibility:false}. I guess there's no particular reason for that or did someone had an issue using {visibility:false} ? Eric Lemoine wrote: On Thu, Jan 29, 2009 at 9:00 PM, Alexandre Dube ad...@mapgears.com

Re: [OpenLayers-Users] Cannot cycle through vector layer features

2009-01-29 Thread Eric Lemoine
Right. The Layer.GML constructor triggers an HTTP request and returns before the response is received. Cheers, Eric 2009/1/28, Mauro Bianchi bianchi...@gmail.com: Sorry guys ;) Thanks Bart for your solution (and Ivan too). The lesson learned here is remebering that layer features arec

Re: [OpenLayers-Users] Hover control sample (share)

2009-01-21 Thread Eric Lemoine
about this for now. I'll definitively have to try all this soon. Alexandre Eric Lemoine wrote: Hi A first note. The current select feature implementation should accomodate this use case: two controls on the same layer, one working on click and the other on hover, only one of them

Re: [OpenLayers-Users] Hover control sample (share)

2009-01-21 Thread Eric Lemoine
definitively have to try all this soon. Alexandre Eric Lemoine wrote: Hi A first note. The current select feature implementation should accomodate this use case: two controls on the same layer, one working on click and the other on hover, only one of them actually changing the feature style

Re: [OpenLayers-Users] SelectFeature control and click event on marker

2009-01-20 Thread Eric Lemoine
Hi You can configure your select feature control with multiple:true. Eric 2009/1/20, Walter Lorenzetti lorenze...@gis3w.it: Hi,all is possible activate a SelectFeature control on a vector layer and a a mouseclick event on several marker at the same time? My problem is that is a I activate

Re: [OpenLayers-Users] Hover control sample (share)

2009-01-20 Thread Eric Lemoine
what you think about all this. Best regards, Alexandre Ivan Grcic wrote: On Mon, Jan 19, 2009 at 10:19 PM, Eric Lemoine eric@gmail.com wrote: On Mon, Jan 19, 2009 at 3:30 PM, Alexandre Dube ad...@mapgears.com wrote: Hi Eric, I took a look at the SelectFeature control. Now I

Re: [OpenLayers-Users] Hover control sample (share)

2009-01-19 Thread Eric Lemoine
On Mon, Jan 19, 2009 at 3:30 PM, Alexandre Dube ad...@mapgears.com wrote: Hi Eric, I took a look at the SelectFeature control. Now I understand what you meant and it makes sense. Also, it's also making sense to have this control have the possibility to highlight on hover or on click.

Re: [OpenLayers-Users] DrawFeature control not working properly

2009-01-19 Thread Eric Lemoine
On Mon, Jan 19, 2009 at 1:52 PM, Jatin Ambasana jati...@iworktech.com wrote: http://mail.google.com/mail/#label/openlayers/11eeef3d8dc95c53 Hello everyone, I have added DrawFeature control to my map. Whenever it is activated it will always draw a polygon of sides 40 i.e. an approx circle.

Re: [OpenLayers-Users] Hover control sample (share)

2009-01-18 Thread Eric Lemoine
Hi As I see it: The HighlightFeature control is configured with a renderIntent. When a feature is hovered or clicked, the control triggers a beforefeaturehighlighted event, redraws the feature (using the renderIntent), and trigger featurehighlighted. What do you think? PS: I have to say that I

Re: [OpenLayers-Users] Switching Layers Assigned to a SelectFeature Control

2009-01-14 Thread Eric Lemoine
Hi. Have you tried: deactivate control, change its layer, activate control. I'm not sure it'll work but it's worth trying. Eric 2009/1/13, Bill Thoen bth...@gisnet.com: I've got three vector feature layers and I'd like to use the same tool to select any feature from any of these layers. But I

Re: [OpenLayers-Users] XMLHttpRequest.open Error on WFS layer

2009-01-12 Thread Eric Lemoine
Hi Bill Check this: http://faq.openlayers.org/wfs/why-isnt-wfs-working-on-my-local-checkout-of-openlayers/. -- Eric On Mon, Jan 12, 2009 at 11:30 PM, Bill Thoen bth...@gisnet.com wrote: I'm trying to get a layer of lines to open as a WFS layer and I'm getting this error: uncaught

Re: [OpenLayers-Users] Layer.Vector with multiple data sources

2009-01-09 Thread Eric Lemoine
On Fri, Jan 9, 2009 at 2:37 PM, Alexandre Dube ad...@mapgears.com wrote: I just read an other interesting thread Andreas Hocevar posted : You can make the BBOX strategy aggressive by instantiating your BBOX strategy like this: new OpenLayers.Strategy.BBOX(invalidBounds: function(){return

Re: [OpenLayers-Users] different DragControls on 2 different layers conflict!

2009-01-09 Thread Eric Lemoine
Hi. You won't be able to have two drag feature controls (configured with two different layers) working at the same time. For this to work we need support for feature selection with multiple layers, which we don't have at this point. Cheers, Eric 2009/1/9, KartoPete psing...@gmx.de: Hi guys,

Re: [OpenLayers-Users] IE strategies

2009-01-09 Thread Eric Lemoine
Hi Zac I started working on a OpenLayers.Strategy.Grid strategy a while back. It works like the BBOX strategy except that features are arranged in a grid. I stopped this because of lack of funding, I hope I will continue it eventually. The code is in the vector-behavior sandbox if you're

Re: [OpenLayers-Users] BBOX strategy with scale

2009-01-09 Thread Eric Lemoine
Hi You can write a custom strategy that register a zoomend listener on the map and have this listener change the protocol params. Go back to the list if you need more detail. Cheers, Eric 2009/1/8, Zac Spitzer zac.spit...@gmail.com: Is there a way to pass the current scale within this

Re: [OpenLayers-Users] How can i group layers

2009-01-09 Thread Eric Lemoine
Hi You want to group layer in the layer switcher? Please provide the list with more detail to get help. Cheers Eric 2009/1/7, worklikeadevil awei...@gmx.de: Hi list, I want to group some thematically similar layer under one group layer. Is there a possibility to do this? In the api i

Re: [OpenLayers-Users] Event registration in activate function

2009-01-08 Thread Eric Lemoine
On Wed, Jan 7, 2009 at 10:02 PM, Alexandre Dube ad...@mapgears.com wrote: Dear list, I'm writing my own Control and I need to register some events. Doing so in the initialize function isn't good because some objects are not created yet ( like the map object ). So I thought I could register

Re: [OpenLayers-Users] Layer.Vector with multiple data sources

2009-01-08 Thread Eric Lemoine
Yeah I agree, the re-configuration of the protocol could go in a separate, custom strategy. Cheers, Eric 2009/1/8, Andreas Hocevar ahoce...@opengeo.org: On Thu, Jan 8, 2009 at 6:42 PM, Alexandre Dube ad...@mapgears.com wrote: Andreas Hocevar wrote: Alexandre Dube wrote: It should be easy to

Re: [OpenLayers-Users] What's the Difference Between feature.data and feature.attributes?

2009-01-05 Thread Eric Lemoine
Hi For information data is in the base Feature class while attributes is in the Feature.Vector class. data is there for historical reason and isn't to be used when using Feature.Vector, so you should use attributes. This is particularly true if you're to use a Format to serialize features, or to

Re: [OpenLayers-Users] custom control.button problems

2009-01-05 Thread Eric Lemoine
Hi You don't pass a function in the options but the return code of a function. Try this: var onTrigger = function() { alert(yo); }; var btn = new OpenLayers.Control.Button({ trigger: onTrigger }); Cheers, Eric 2009/1/5, David Hollema dholl...@unitedpower.com: Couple question as an

Re: [OpenLayers-Users] OpenLayers Google Map resolution Issue

2009-01-04 Thread Eric Lemoine
Hi From my understanding you can't change the resolution numbers of commercial layers. I'm not very familiar with the commercial APIs so I'd like to be corrected if I'm wrong. Cheers, Eric 2008/12/30, AJ R ajayr.em...@gmail.com: Hi I am trying to do an interesting thing. I have couple of

Re: [OpenLayers-Users] Single vector layer

2009-01-02 Thread Eric Lemoine
On Fri, Jan 2, 2009 at 9:55 AM, Lehtonen, Mika m...@digikartta.net wrote: Hi, is it possible to consruct a map with only one layer, which is vector layer? I noticed that vector layer has a property 'isBaseLayer'. However trying to consruct a map having a single and only layer as vector layer

Re: [OpenLayers-Users] Ajax delete

2008-12-20 Thread Eric Lemoine
Yves If you use OpenLayers.Protocol.HTTP, which I'd recommend you do, you won't need to use OpenLayers.Request yourself. Although I've never tested Protocol.HTTP against FeatureServer I'm pretty confident it'll work, and if it doesn't I'll be happy to help with that. Cheers, Eric 2008/12/19,

Re: [OpenLayers-Users] Cluster strategy on markers

2008-12-20 Thread Eric Lemoine
Hi Using the externalGraphic styling property you can have markers rendered in a vector layer. Search the examples to understand how to use that. Eric 2008/12/19, Joao Duarte joao.c.dua...@co.sapo.pt: Hi, It seems I've been spamming the list. I'm sorry about that but there were some

Re: [OpenLayers-Users] Custom Controls

2008-12-20 Thread Eric Lemoine
Hi Events registration and unregistration occurs (or should occur) in activate and deactivate, respectively. Currently controls aren't notified when they're removed from the map, which I think is something we should change eventually. So right now removing a control from the map just removes

Re: [OpenLayers-Users] Several control for several layers at the same time

2008-12-20 Thread Eric Lemoine
by Eric Lemoine was to regroup all the layers in a same layer. But due to the way of my project is organize i can't do it in this way. Thanks in advance. Best regards Arnaud -- View this message in context: http://www.nabble.com/Several-control-for-several-layers-at-the-same-time

Re: [OpenLayers-Users] howto regist. featuremodified instead onModification ?

2008-12-16 Thread Eric Lemoine
On Tue, Dec 16, 2008 at 6:10 PM, Alexandre Dube ad...@mapgears.com wrote: Eric Lemoine wrote: On Fri, Dec 12, 2008 at 8:19 PM, Alexandre Dube ad...@mapgears.com wrote: Well, I don't 100% understand. An example is worth a lengthy explanation: var foobar = {foo: bar}; layer.events.on

Re: [OpenLayers-Users] Destroy/Delete a vector feature

2008-12-16 Thread Eric Lemoine
On Tue, Dec 16, 2008 at 7:09 PM, Yves Moisan yves.moi...@boreal-is.com wrote: My first thought is that after the data is loaded, if I could get the feature by ID or attribute and then destroy it, that would be great. If you get to doing something like that, please share your code :-). I'm

Re: [OpenLayers-Users] Adding a new feature with different graphics

2008-12-16 Thread Eric Lemoine
Hi Yves and Pierre Note that the DrawFeature control now takes care of setting the INSERT state into drawn features. Cheers, -- Eric On Tue, Dec 16, 2008 at 3:57 PM, Yves Moisan yves.moi...@boreal-is.com wrote: Hi Pierre, Thanx for the links ! Yves Le samedi 13 décembre 2008 à 14:20

Re: [OpenLayers-Users] Destroy/Delete a vector feature

2008-12-16 Thread Eric Lemoine
On Tue, Dec 16, 2008 at 9:36 PM, David Fawcett david.fawc...@gmail.com wrote: Thank you Eric! I am curious, if a feature is not displayed, can it still be selected? My hope (and guess) is that it can't. Essentially, is it just not symbolized, or is it really 'not there'? From my

Re: [OpenLayers-Users] Destroy/Delete a vector feature

2008-12-16 Thread Eric Lemoine
On Tue, Dec 16, 2008 at 10:00 PM, Yves Moisan yves.moi...@boreal-is.com wrote: Unless I'm mistaken, which I probably am, this only has to do with styling and not with assigning values to the 'state' property of a Layer.Vector. Right. My response applies more to David's issue. I'm pretty

Re: [OpenLayers-Users] Novel Application for OL and TMS

2008-12-16 Thread Eric Lemoine
a browser for the digital version of the Rosetta Disk (www.rosettaproject.org). Eric Lemoine (and one other whose name I've lost) directed me toward TMS. Anyway, although my time was limited, we at the Long Now Foundation finally managed to build a browsable form of the disk, which can be seen

Re: [OpenLayers-Users] Lines disappearing at higer zoom

2008-12-16 Thread Eric Lemoine
On Fri, Dec 12, 2008 at 8:53 PM, Maarten Deen md...@xs4all.nl wrote: Eric Lemoine wrote: So you use 2.7, and possibly found a bug in the lib. Could you please provide the list with a simple example showing the problem? Sure. I have a test page at http://www.maasluip.nl/ebt/test.html

Re: [OpenLayers-Users] Adding a new feature with different graphics

2008-12-16 Thread Eric Lemoine
On Tue, Dec 16, 2008 at 11:33 PM, Pierre GIRAUD blueca...@gmail.com wrote: I can have a look at the code myself, but does the ModifyFeature control takes care of setting the UPDATE state to modify features ? Yes it does. -- Eric ___ Users mailing

Re: [OpenLayers-Users] Destroy/Delete a vector feature

2008-12-16 Thread Eric Lemoine
On Tue, Dec 16, 2008 at 11:04 PM, Yves Moisan yves.moi...@boreal-is.com wrote: The state of features read from your web service is null, isn't it? Do you really need it to be unknown? You are right. I got it almost working. If only I could assign a style to feature.state = null, I'd be

Re: [OpenLayers-Users] howto regist. featuremodified instead onModification ?

2008-12-15 Thread Eric Lemoine
On Fri, Dec 12, 2008 at 8:19 PM, Alexandre Dube ad...@mapgears.com wrote: Well, I don't 100% understand. An example is worth a lengthy explanation: var foobar = {foo: bar}; layer.events.on({ featuremodified: function(o) { // this references the foobar object // created above

Re: [OpenLayers-Users] Lines disappearing at higer zoom

2008-12-12 Thread Eric Lemoine
So you use 2.7, and possibly found a bug in the lib. Could you please provide the list with a simple example showing the problem? Thanks, Eric 2008/12/7, Maarten Deen md...@xs4all.nl: I'm using the online one at http://www.openlayers.org/api/OpenLayers.js Maarten Eric Lemoine wrote: Hello

Re: [OpenLayers-Users] howto regist. featuremodified instead onModification ?

2008-12-12 Thread Eric Lemoine
You are correct. For information, the second argument to the register method is the scope. this in the callback will reference the object this scope references. Hope I'm clear enough. Note that can also use the on method: layer.events.on({ featuremodified: function(o) { }, scope:

Re: [OpenLayers-Users] Adding popups to vector features

2008-12-11 Thread Eric Lemoine
Hi Christopher You could create your own hover feature for that. This control would use a feature handler internally, just like th select feature control. You can start from the select feature control and simplify it to the point where it just creates a feature handler configured with over and

Re: [OpenLayers-Users] HTTP protocol with featureserver

2008-12-10 Thread Eric Lemoine
On Wed, Dec 10, 2008 at 8:42 PM, Andreas Hocevar [EMAIL PROTECTED] wrote: Hi Alexandre, Alexandre Dube wrote: Hi list, I use a sandbox version of OpenLayers ( topp/wfs ). I'm trying featureserver for the first time and having some difficulties with transactions ( insert/update/delete ).

Re: [OpenLayers-Users] Handler.Hover

2008-12-10 Thread Eric Lemoine
On Wed, Dec 10, 2008 at 5:51 PM, Lehtonen, Mika [EMAIL PROTECTED] wrote: Thanks Alexandre, that's just what I was looking for. It's just isn't so easy to find any documentation. I guess I should start digging more stuff straight from the code.. r8484 is attempt to fix the doc. Thanks, --

Re: [OpenLayers-Users] HTTP protocol with featureserver

2008-12-10 Thread Eric Lemoine
On Wed, Dec 10, 2008 at 9:02 PM, Alexandre Dube [EMAIL PROTECTED] wrote: Eric Lemoine wrote: On Wed, Dec 10, 2008 at 8:42 PM, Andreas Hocevar [EMAIL PROTECTED] wrote: It seems to be that response.insertIds, and thus Strategy.Save, is Protocol.WFS-specific, isn't it? If I'm correct

Re: [OpenLayers-Users] HTTP protocol with featureserver

2008-12-10 Thread Eric Lemoine
On Wed, Dec 10, 2008 at 9:59 PM, Alexandre Dube [EMAIL PROTECTED] wrote: Andreas Hocevar wrote: Yes, but quite some efforts would be required. Reading the insertIds this is the format's job. Format.GeoJSON does not know about insertIds. The best thing to do here would be to subclass

Re: [OpenLayers-Users] GML and IE issue

2008-12-09 Thread Eric Lemoine
On Mon, Dec 8, 2008 at 6:55 PM, Ken Sanderson [EMAIL PROTECTED] wrote: Hello everyone, thought I would move this to a different thread then my other GML discussion. My application is working great in firefox, but the GML layer doesnt show up in IE 7. Is this a known issue, I thought it might

Re: [OpenLayers-Users] BUG - WFS.setOpacity() cannot work reliably

2008-12-09 Thread Eric Lemoine
On Tue, Dec 9, 2008 at 10:49 PM, Christopher Schmidt [EMAIL PROTECTED] wrote: On Tue, Dec 09, 2008 at 10:21:33PM +0100, Eric Lemoine wrote: On Mon, Dec 8, 2008 at 5:48 PM, Christopher Schmidt [EMAIL PROTECTED] wrote: As I'm not in the OpenLayers architecture I might have forgotten to do

Re: [OpenLayers-Users] General question and GML question

2008-12-08 Thread Eric Lemoine
see what I was doing wrong to make it so this wouldnt work. My working version does not have that 2153 reference. Does your application include proj4js, and definitions for the 2153 projection? Ken Eric Lemoine wrote: Hi Ken You're saying you reprojected the data to spherical mercator

Re: [OpenLayers-Users] DrawFeature with callback?

2008-12-08 Thread Eric Lemoine
Hi var e = new OpenLayers.Control.EditingToolbar(...); for(var i = 0; ie.controls.length; i++) { var c = e.controls[i]; c.events.on({ featureadded: functio(e) { alert(e.feature); } }); } Untested. Cheers, Eric 2008/12/8, Nino Saturnino Martinez Vazquez

Re: [OpenLayers-Users] Lines disappearing at higer zoom

2008-12-07 Thread Eric Lemoine
Hello What version of the lib are you using? A bug looking like what you're describing was fixed in 2.7. Cheers, Eric 2008/12/7, Maarten Deen [EMAIL PROTECTED]: I have a map on which I draw longitude and latitude lines. The strange thing is: these lines disappear at higer zoom levels. In

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
thanks. Congratulation Eric ! Erik Uzureau wrote: The OpenLayers Project Steering Committee is proud to announce our newest and eighth member: Eric Lemoine! Eric works for Camp-to-Camp and has been a solid participant in the OpenLayers community for nearly two years now. He has made numerous

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] Format ajax.request

2008-12-03 Thread Eric Lemoine
Hi Try: params: { REQUEST: GetFeature, ... } in place of parameters: paramString Hope this helps, Eric 2008/12/3, Dan Koch [EMAIL PROTECTED]: Greetings, I'm having trouble formatting my openlayers.ajax.request. I have the following: var queryStr =

Re: [OpenLayers-Users] dynamic url

2008-12-02 Thread Eric Lemoine
On Tue, Dec 2, 2008 at 3:56 PM, Julien-Samuel Lacroix [EMAIL PROTECTED] wrote: I don't know if IE support empty hash like {}, but I would think so. Sure. -- Eric ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users

Re: [OpenLayers-Users] using more than one Layer.TileCache in a map?

2008-12-01 Thread Eric Lemoine
Hi If you don't set isBaseLayer:false in the options passed to the Layer.TileCache constructor then the layer is a base layer. If you want the two TileCache layers to be active at the same time you must send isBaseLayer:false to one of them. Also, note that transparent:true has no effect as a

Re: [OpenLayers-Users] WMS GetCapabilities parser

2008-11-28 Thread Eric Lemoine
Hi Bart. It makes sense to me to add new OGC formats in OpenLayers (although I'd personally have no cycles to contribute anything on that at this point). Eric 2008/11/26, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi list, I've made some changes/additions to the WMS GetCapabilities parser, and see

Re: [OpenLayers-Users] refreshing just one layer

2008-11-27 Thread Eric Lemoine
Hi. If you use a Layer.GML layer you can do layer.setURL(url). Eric 2008/11/27, Gregor at HostGIS [EMAIL PROTECTED]: If I just want to resresh one of my gml/servlet layers is there any way off doing a refresh layer that does'nt require the base google map to be reloaded? Have you tried

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

2008-11-26 Thread Eric Lemoine
On Wed, Nov 26, 2008 at 10:20 AM, Sébastien Geindre [EMAIL PROTECTED] wrote: Eric Lemoine a écrit : Seb, I don't understand your question. If you're trying to get the select feature control to work with multiple layers then you must know that that isn't currently supported by OpenLayers

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

2008-11-26 Thread Eric Lemoine
() { //alert(from regFeatureUnselected); map.removePopup(myObj.popup); myObj.popup.destroy(); myObj.popup = null; } Hope this was helpful. Indika 2008/11/26 Eric Lemoine [EMAIL PROTECTED] On Wed, Nov 26, 2008 at 10:20 AM

Re: [OpenLayers-Users] DrawFeature and FeatureAdded event

2008-11-25 Thread Eric Lemoine
On Tue, Nov 25, 2008 at 8:49 AM, Sture Dingsøyr [EMAIL PROTECTED] wrote: Hi Mika and Eric...thanx for quick response :-) Have published an example on http://www.avinet.no/bugopenlayers/openlayers-2.7/examples/modify-feature.html Have added a control button to draw the regular polygon.

Re: [OpenLayers-Users] DrawFeature and FeatureAdded event

2008-11-25 Thread Eric Lemoine
On Tue, Nov 25, 2008 at 11:24 AM, Sture Dingsøyr [EMAIL PROTECTED] wrote: Hi Eric The patch worked just fine :-) Thanx alot... Will this patch be commited to the OpenLayers source, so that in e.g. version 2.8 this patch will be a part of the source code? Yes, this patch or another patch

Re: [OpenLayers-Users] changing style of a WFS layer

2008-11-25 Thread Eric Lemoine
I'm also suprised that calling map.getZoom on each feature redraw comes with a noticeable performance penalty. Might be worth doing some testing here and comparing var a = map.getZoom(); for (var i = 0; i 1000; i++) { var b = a; } with for (var i = 0; i 1000; i++) { var b =

Re: [OpenLayers-Users] possible click events conflict?

2008-11-25 Thread Eric Lemoine
Hi. Are we sure the unregister(click) is the one to blame? It sounds very unlikely to me. Eric 2008/11/24, Martin Ouellet [EMAIL PROTECTED]: Hi all, I'am just working on my first app with OpenLayers in a editing context (wow it's fun) . Here's my problem: 1) I have a WMS layer of point,

Re: [OpenLayers-Users] Zoom to Filter Extent

2008-11-24 Thread Eric Lemoine
Hi. Would listening to the vector layer's featuresadded events and do map.zoomToExtent(layer.getDataExtent()) in the listener work for you? Eric 2008/11/24, bmcbride [EMAIL PROTECTED]: Hello, I am working on an OpenLayers / GeoServer project and am trying to utilize the Filter tool, which

Re: [OpenLayers-Users] DrawFeature and FeatureAdded event

2008-11-24 Thread Eric Lemoine
Hi. So I guess when the user just does clicks (without mousemove between down and up) the feature isn't added to the layer either, is that correct? Anyway it sounds to me that you've found a bug. Could you open a ticket for this, with an example or a link to reproduce the problem? Eric

Re: [OpenLayers-Users] DrawFeature and FeatureAdded event

2008-11-24 Thread Eric Lemoine
Mika, Sture registers a listener on the draw feature control's featureadded event, not on the layer's. The former is triggered only when a feature is added as a result of feature drawn by the user through the draw feature control. The latter is triggered every time a feature is added to the

Re: [OpenLayers-Users] How to select on CTRL key + click

2008-11-23 Thread Eric Lemoine
On Fri, Nov 21, 2008 at 10:23 PM, Alexandre Dube [EMAIL PROTECTED] wrote: I'm been scratching my head for a while on this : how can I add select a feature using this customized control on click + ctrl key down only ? I've tried to add a keyMask but the checkModifiers never seems to trigger.

Re: [OpenLayers-Users] How to extend permalink and argparser to support additional parameters

2008-11-20 Thread Eric Lemoine
Hi Stephen I don't see a more subtle way than implement two classes, one inheriting from ArgParser, and another inheriting from Permalink. The former will deal with the routing-related params in the URL. The latter would extend the updateLink method so that the resulting link includes the routing

Re: [OpenLayers-Users] Toggle EditingToolbar

2008-11-15 Thread Eric Lemoine
Hi. You can probably register a featureselected listener on the vector layer and make that listener activate the navigation control using toolbar.controls[0].activate(). I haven't tested this myself but I'm pretty confident it, or something close to it, should work. Eric 2008/11/14, S.Reena

Re: [OpenLayers-Users] Firefox Vector Rendering in Modify Feature Example

2008-11-13 Thread Eric Lemoine
On Fri, Nov 7, 2008 at 9:12 AM, Eric Lemoine [EMAIL PROTECTED] wrote: I'd really like to, but this will require a significant rewrite of the modify feature control, and currently I personally have no time for this. Some funding might help find some :-) Eric Just a quick note to mention

Re: [OpenLayers-Users] afterfeaturemodified

2008-11-13 Thread Eric Lemoine
Hi. No afterfeaturemodified event should be triggered when your register a listener. Could you share your code? Cheers, Eric 2008/11/13, Didrik Pinte [EMAIL PROTECTED]: Hi, I'm trying to have a layer on wich a user can add a new feature and/or modify the existing feature. When the feature is

Re: [OpenLayers-Users] http protocol problem

2008-11-09 Thread Eric Lemoine
Hi. What do you mean by refresh? What is the problem you're having exactly? Eric 2008/11/7, Didrik Pinte [EMAIL PROTECTED]: On Fri, 2008-11-07 at 19:01 +0100, Eric Lemoine wrote: Hi. Register a featuresadded listener on the layer and do: this.map.zoomToExtent(this.getDataExtent()), where

Re: [OpenLayers-Users] http protocol problem

2008-11-09 Thread Eric Lemoine
Ok I see the problem now. You could also possibly register a one-time featuresadded listener, by having the listener unregister itself the first time a featuresadded event is received. Eric 2008/11/9, Didrik Pinte [EMAIL PROTECTED]: On Sun, 2008-11-09 at 09:07 +0100, Eric Lemoine wrote: Hi

Re: [OpenLayers-Users] mousewheel event propagation not setting up properly when div id != map

2008-11-08 Thread Eric Lemoine
Hi. Can you reproduce that in one of the OpenLayers examples (lite.html for example) by changing the div id from map to whatever makes the problem occur? Thanks. Eric 2008/11/8, Paul McCullough [EMAIL PROTECTED]: All, It appears that the proper setup of the mousewheel event propagation

Re: [OpenLayers-Users] about eventListeners

2008-11-07 Thread Eric Lemoine
Hi. Currently the draw feature and modify feature controls do not support that - you cannot register listeners called while features are drawn/modified. I think we could imagine adding featurebeingdrawn featurebeingmodified events in Layer.Vector, Control.DrawFeature and Control.ModifyFeature;

Re: [OpenLayers-Users] Redraw/reload a layer

2008-11-07 Thread Eric Lemoine
Do you call layer.redraw(true) in the Request.POST callback? Cheers, Eric 2008/11/6, Lehtonen, Mika [EMAIL PROTECTED]: Hi, I am using dynamic, on server-side constructed SLDs' in Geoserver/Openlayers. They are attached by mergeNewParams({sld: 'file'}) function. At first OL sends an array of

Re: [OpenLayers-Users] Firefox Vector Rendering in Modify Feature Example

2008-11-07 Thread Eric Lemoine
I'd really like to, but this will require a significant rewrite of the modify feature control, and currently I personally have no time for this. Some funding might help find some :-) Eric 2008/11/6, dizzle [EMAIL PROTECTED]: Is snapping going to make it into a future main release? Eric

Re: [OpenLayers-Users] http protocol problem

2008-11-07 Thread Eric Lemoine
Hi. Register a featuresadded listener on the layer and do: this.map.zoomToExtent(this.getDataExtent()), where this references the layer here. Eric 2008/11/7, Didrik Pinte [EMAIL PROTECTED]: On Thu, 2008-11-06 at 10:40 -0700, Tim Schaub wrote: Yeah, the Fixed strategy sets the callback for

Re: [OpenLayers-Users] ModifyFeature: Rotate Center Point and Control Point

2008-11-07 Thread Eric Lemoine
Hi. Thanks for sharing your code. Adding a getCentroid function to the Geometry class would make sense to me. Does your getCenter func effectively calculate the centroid? Also, the centroid should be cached in a property of the geom to avoid calculating it multiple times (the cache should

Re: [OpenLayers-Users] Freeform drawing

2008-11-06 Thread Eric Lemoine
Hi. We already have that, this is the freehand mode of the path and polygon handlers. By default freehand is false but can be activated by pressing SHIFT while drawing. If you want freehand always active set freehand to true in the handler options, and set freehandToggle to null if you don't want

Re: [OpenLayers-Users] http protocol problem

2008-11-05 Thread Eric Lemoine
Hi. How do you register your callback? Sorry i don't see what you're talking about. Eric 2008/11/5, Didrik Pinte [EMAIL PROTECTED]: On Wed, 2008-11-05 at 09:30 -0500, Christopher Schmidt wrote: On Wed, Nov 05, 2008 at 06:26:16AM -0800, Jerome Freyre wrote: Hi Didrik, It is strange... I

Re: [OpenLayers-Users] Cluster Strategy and Google Layer

2008-11-03 Thread Eric Lemoine
. Else if the points are in the incorrect coordinates the cluster aparently works, but obviously all the points are in the center of the map. I tried much things, but really have no idea about what it can be =/. Thanks! Using WMS in EPSG:4326 all works well. Eric Lemoine wrote: Hi

Re: [OpenLayers-Users] Mouseover should show attributes from a database

2008-11-03 Thread Eric Lemoine
Jerome, you could also have the GeoJSON include all the information you need, thereby avoiding an extra client/server roundtrip, couldn't you? Eric 2008/11/3, Jerome Freyre [EMAIL PROTECTED]: Hi, I don't know how you add the features on the map but in my case, i add my features with a

Re: [OpenLayers-Users] FEATUREID vs. BBOX in GetFeature for WFS

2008-11-03 Thread Eric Lemoine
Hi. If you use Layer.WFS you can't remove the BBOX param. Better filter encoding and WFS support is currently in the work, check out the topp/wfs sandbox if you want to give this work a try. In the mean time, if you use 2.7, you can probably do what you want by creating a Layer.Vector, and

Re: [OpenLayers-Users] Mouseover should show attributes from a database

2008-11-03 Thread Eric Lemoine
. In my case, there is a lot of informations to load for a lot of points... So I prefer to load only the id and then load only the information that are really useful for the users of my application. Sincerly, Jérome Eric Lemoine-3 wrote: Jerome, you could also have the GeoJSON include all

Re: [OpenLayers-Users] Mouseover should show attributes from a database

2008-11-03 Thread Eric Lemoine
Hi Rhan. What type of layer do you use to display your data on the map? WMS? WFS? Something else? Eric 2008/11/3, Rahn Hanno (rahn) [EMAIL PROTECTED]: Hello list, I have a problem and perhaps somebody can help me. I want to realise a mouseover event like it is used in many of the examples.

Re: [OpenLayers-Users] OpenLayers.Request problem; where is the data?

2008-11-03 Thread Eric Lemoine
I was pointing Mika to the same thread. You beat on this one Arnd :-) Thanks a lot for answering anyway. Cheers. Eric 2008/11/3, Arnd Wippermann [EMAIL PROTECTED]: Perhaps this solves the problem headers: { Content-Type: application/x-www-form-urlencoded}

Re: [OpenLayers-Users] [OpenLayers-Dev] threading/synchronicity in javascript

2008-11-01 Thread Eric Lemoine
If JavaScript code was preemptable I think 1 web app out of 2 would be unusable because of the many bugs it'd include :-) 2008/11/1, Erik Uzureau [EMAIL PROTECTED]: Dear OpenLayers users dev, Pardon the non-geo post, but I am wondering if anyone out there has come up across issues with

Re: [OpenLayers-Users] Firefox Vector Rendering in Modify Feature Example

2008-10-31 Thread Eric Lemoine
Hi. The snapping sandbox is in camptocamp/snapping. And i recently attached a patch to ticket #954 that makes snap as modify feature work better. Really, i should commit that patch to the sandbox. Let me do it and go back to you... Eric 2008/10/29, dizzle [EMAIL PROTECTED]: I'm not familiar

Re: [OpenLayers-Users] Cluster and Scales map options

2008-10-31 Thread Eric Lemoine
I meant the cluster strategy doesn't work when a scales array is passed in the map options in **my** application. I don't know if it comes from OL. I have a public test html: 1- http://softlibre.free.fr/ol/test.html : no scale in Map options 2- http://softlibre.free.fr/ol/test_scales.html :

Re: [OpenLayers-Users] setting WKT returned from postGIS in form field to openlayers feature

2008-10-31 Thread Eric Lemoine
Hi. We cannot guess what's going on without seeing actual code. If you use the read method of OpenLayers.Format.WKT keep in mind that it returns an OpenLayers.Feature.Vector object. Eric 2008/10/31, Burgholzer,Robert [EMAIL PROTECTED]: I forgot to give the openlayers error: Error:

Re: [OpenLayers-Users] Cluster Strategy and Google Layer

2008-10-31 Thread Eric Lemoine
Hi. The EPSG:900913 projection should be set in the map options. In this way your vector layer is also a 900913-projected layer. If your vector points are expressed in 4326 you have to have them re-projected before the're added to the layer. Eric 2008/10/31, Salvaro [EMAIL PROTECTED]: I'm using

Re: [OpenLayers-Users] GetFeatureInfo

2008-10-31 Thread Eric Lemoine
SelectFeature won't help with WMS layers. Eric 2008/10/31, Indika Tantrigoda [EMAIL PROTECTED]: Hi, I too had the same problem, but it was with a wfs point layer. I was able to get around this by using selectFeature (thanks to all on the list who helped me out) Check this out

Re: [OpenLayers-Users] Snap

2008-10-30 Thread Eric Lemoine
On Thu, Oct 30, 2008 at 2:26 PM, Frédéric Junod [EMAIL PROTECTED] wrote: The most up to date version lives here: http://trac.openlayers.org/browser/sandbox/camptocamp/snapping http://trac.openlayers.org/attachment/ticket/954/snapping.patch should actually apply to that sandbox. -- Eric

Re: [OpenLayers-Users] Cluster and Scales map options

2008-10-30 Thread Eric Lemoine
Yves, do you mean the cluster strategy doesn't work when a scales or resolutions array is passed in the map options. If so it shouldn't be difficult to modify the strategy cluster example and thereby provide a good test case for this issue. Cheers, Eric 2008/10/29, Jacolin Yves [EMAIL PROTECTED]:

Re: [OpenLayers-Users] Multiple labels on the same polygon

2008-10-28 Thread Eric Lemoine
Hi. Do we agree that metatiling does not completely solve the issue? I'm thinking about the polygon spans multiple metatiles case. Eric 2008/10/28, Tim Schaub [EMAIL PROTECTED]: Hey- Lehtonen, Mika wrote: Hi, I am trying to do some labels on polygons which are in an overlay layer on top of

Re: [OpenLayers-Users] WFS Layers, Markers, Popups

2008-10-28 Thread Eric Lemoine
As Arnd said you should use vectors styled with externalgraphic and the select feature control to be able to select your markers and display a popup on feature selection. To be notified on feature selection register a listener on the layer's featureselected event. featureselected listeners receive

<    1   2   3   4   5   6   7   8   >