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
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
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
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";
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( "
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
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
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
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 :
>
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
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(); });
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');}
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-
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
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,
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
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
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
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
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();
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
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
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
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
24 matches
Mail list logo