Re: [OpenLayers-Users] overlays goes stuck?

2009-01-28 Thread Robert Sanson
I have seen something like this occasionally with IE6 and OL2.7. I get a temporary misalignment between one of the overlays (a vector layer) and the base layer. Can't reproduce consistently. Seems to occur when zoomed in and making small pans. Robert Sanson >>> Björn Harrtell 29/01/2009 10:58 a

[OpenLayers-Users] overlays goes stuck?

2009-01-28 Thread Björn Harrtell
In one certain app I'm building where the ref system EPSG:25832 is used (don't know if any relevance) I've encountered problems with overlays that get stuck. I have not been able to reproduce predictably or in a way I can explain what the cause, but the effect is that the overlay get "stuck" when z

Re: [OpenLayers-Users] getFeatureInfo() Only Works on One Layer?

2009-01-28 Thread Bill Thoen
Thanks, but it turned out that the real problem was running an old version (4.10.0) of MapServer. When I upgraded to 5.2.1 this morning, my application worked without a problem. Now I'm finding out new quirks of the getFeatureInfo procedure. For example, it searches for the *nearest* objects i

Re: [OpenLayers-Users] Doubt with layers

2009-01-28 Thread Ivan Grcic
Hi, check options: layer.isBaseLayer(true/false) map.setBaseLayer(layer) Cheers On Wed, Jan 28, 2009 at 8:51 PM, Rafael chacón wrote: > Hi, I have the following layers defined: > >roads = new OpenLayers.Layer.MapServer( "Roads", > > "http://192.168.1.103/cgi-bin/mapserv?map=us_states.map";

[OpenLayers-Users] Doubt with layers

2009-01-28 Thread Rafael chacón
Hi, I have the following layers defined: roads = new OpenLayers.Layer.MapServer( "Roads", " http://192.168.1.103/cgi-bin/mapserv?map=us_states.map";, {layers: 'us_roads', transparent:'true'}); gps = new OpenLayers.Layer.MapServer( "

Re: [OpenLayers-Users] Ancored Popup Autosize troubles

2009-01-28 Thread smithfield
Brilliant, The autosize now works but the popups are being placed all over the map. What could be causing this behavior? For the record here is what I have done... //creates popup win / removes old popup if it exists function createPopup(feature){ if (popup

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

2009-01-28 Thread Mauro Bianchi
Sorry guys ;) Thanks Bart for your solution (and Ivan too). The lesson learned here is remebering that layer features arec loaded asynchrounously ...right? Cheers Mauro 2009/1/28 Ivan Grcic : > That was Bart ;) I was just trying to show you that GML loads in > background, and it takes some ti

Re: [OpenLayers-Users] how to deactivate editingtoolbar after featureadded

2009-01-28 Thread G. Allegri
SOLUTION: OpenLayers.Control.EditingToolbar.prototype.onClick = function (ctrl, evt) { }; var panel = new OpenLayers.Control.EditingToolbar(vettoriale); . Maybe there's a cleaner way... but now it works as expected 2009/1/28 G. Allegri : > My last guess has bee

Re: [OpenLayers-Users] how to deactivate editingtoolbar after featureadded

2009-01-28 Thread G. Allegri
My last guess has been: var panel = new OpenLayers.Control.EditingToolbar(vettoriale); OpenLayers.Util.extend(panel,{ onClick: function (ctrl, evt) { alert('ohoh'); } }); but still the original behaviour happens... 2009/1/28 G. Allegri : >

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

2009-01-28 Thread Ivan Grcic
That was Bart ;) I was just trying to show you that GML loads in background, and it takes some time to load it..thats why you get features.length =0 Also check this example http://openlayers.org/dev/examples/GMLParser.html cheers On Wed, Jan 28, 2009 at 6:27 PM, Mauro Bianchi wrote: > Thanks Iva

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

2009-01-28 Thread Mauro Bianchi
Thanks Ivan, overlay.events.register('loadend', this, function() { alert(); }); is perfectly working. Best regards Mauro 2009/1/28 Bart van den Eijnden (OSGIS) : > Instead, better use the loadend event for this. > > overlay.events.register('loadend', this, function() { alert(); });

Re: [OpenLayers-Users] how to deactivate editingtoolbar after featureadded

2009-01-28 Thread G. Allegri
Thansk Alexandre for the reply. This is not exatcly what I need to achieve. A first step is: OpenLayers.Event.stopObservingElement(panel.controls[i+1].panel_div); but the true behaviour I want is something like this: panel.onClick = function fn(c,e){alert('only one feature admitted');}

Re: [OpenLayers-Users] getFeatureInfo() Only Works on One Layer?

2009-01-28 Thread Arnd Wippermann
Hi Bill, You have to delete the blank in QUERY_LAYERS: "us_interstate,us_states" A documentation for WMS parameters are availible from OGC. They are responsibable for WMS, WFS and other standards. http://www.opengeospatial.org/standards/wms Arnd Wippermann -Ursprüngliche Nachricht-

Re: [OpenLayers-Users] how to deactivate editingtoolbar after featureadded

2009-01-28 Thread Alexandre Dube
Hi, Take a look at this example (1). Zoom in and out the map. You will see that the buttons completely disappear. That could be an other option to your issue. (1) http://dev4.mapgears.com/bdga/bdgaWFS-T.html Regards, Alexandre G. Allegri wrote: > Sorry, I've sent too fast the solution. It wo

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

2009-01-28 Thread Bart van den Eijnden (OSGIS)
Instead, better use the loadend event for this. overlay.events.register('loadend', this, function() { alert(); }); Best regards, Bart Ivan Grcic wrote: > Hi, > > what happens if u do something like this: > > setTimeout(function(){alert(overlay.features.length), 3000}); > > > On Wed, Jan 28,

Re: [OpenLayers-Users] how to deactivate editingtoolbar after featureadded

2009-01-28 Thread G. Allegri
Sorry, I've sent too fast the solution. It works, but how can I overload the onClick event on the control to alert the user with "a feature has been already added"? In this case I don't have to stop observing the click but I need to handle it in a custom way... 2009/1/28 G. Allegri : > Solved (som

Re: [OpenLayers-Users] how to deactivate editingtoolbar after featureadded

2009-01-28 Thread G. Allegri
Solved (somehow...): function locAdded(feature){ for(i=0;i<3;i++){ panel.controls[i+1].deactivate(); OpenLayers.Event.stopObservingElement(panel.controls[i+1].panel_div); } } giovanni 2009/1/28 G. All

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

2009-01-28 Thread Ivan Grcic
Hi, what happens if u do something like this: setTimeout(function(){alert(overlay.features.length), 3000}); On Wed, Jan 28, 2009 at 5:06 PM, goliah wrote: > > Dear all, > > I want to cycle through a vector layer (GML in my case) features. > The layer loads and it's drawn, but i cannot access t

Re: [OpenLayers-Users] Ancored Popup Autosize troubles

2009-01-28 Thread Sebastian Benthall
Ah, ok. Try this: popup.autoSize = true; some place after initializing the popup and before adding it to the map (like line 126), and pass null to the popup constructor instead of new OpenLayers.Size(200,200). What's going on is that autoSize is a boolean property of popups that g

[OpenLayers-Users] how to deactivate editingtoolbar after featureadded

2009-01-28 Thread G. Allegri
Hello list, I'm using the editingtoolbar control panel. I need to disable it after any feature has been added (point, line or polygon), and reactivate it if the feature gets deleted. I've seen that calling: function locAdded(feature){ panel.controls[1].deactivate();

Re: [OpenLayers-Users] Ancored Popup Autosize troubles

2009-01-28 Thread smithfield
Thanks for the response. I am looking for the popup to autosize instead of size to 200 by 200. from the code popup = new OpenLayers.Popup.Anchored ("popup", >> feature.lonlat, new OpenLayers.Size(200,200), >> null, null, null, thanks for any input. -- View this message in context: http

[OpenLayers-Users] Cannot cycle through vector layer features

2009-01-28 Thread goliah
Dear all, I want to cycle through a vector layer (GML in my case) features. The layer loads and it's drawn, but i cannot access the features at all example: var overlay; //global variable overlay = new OpenLayers.Layer.GML("GML", 'file.gml'); var l = overlay.features.length; // this is ALWA

Re: [OpenLayers-Users] Ancored Popup Autosize troubles

2009-01-28 Thread Sebastian Benthall
Ok. Looking at your application now, but I don't understand what it is that's giving you a hard time. What behavior do you want/expect that you aren't getting? On Wed, Jan 28, 2009 at 10:12 AM, smithfield wrote: > > Unfortunately, that didn't really answer the question. Could you be more > spe

Re: [OpenLayers-Users] Ancored Popup Autosize troubles

2009-01-28 Thread smithfield
Unfortunately, that didn't really answer the question. Could you be more specific? Thanks. 小粟 wrote: > > I just checked the content size and set the popup size dynamicly. > > Regards, > suen > > - Original Message - > From: "smithfield" > To: > Sent: Tuesday, January 27, 2009 9:4