Rudert, Clemens VGD | 1 Feb 2011 09:02
Picon

RE: Users Digest, Vol 52, Issue 38

Hello

I have the same Problem. I want to add two layers. This layers works fine when i add them seperatly. Now i tried
to add them like this:

map.addLayer([layer_umn, layer_geo]);

I get back an error like this:

layer.div is undefined

What could be wrong?

Kindly regards
Clemens Rudert

-----Original Message-----
From: openlayers-users-bounces@...
[mailto:openlayers-users-bounces@...] On Behalf Of openlayers-users-request@...
Sent: Sunday, January 16, 2011 6:00 PM
To: openlayers-users@...
Subject: Users Digest, Vol 52, Issue 38

Send Users mailing list submissions to
	openlayers-users@...

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.osgeo.org/mailman/listinfo/openlayers-users
or, via email, send a message with subject or body 'help' to
	openlayers-users-request@...
(Continue reading)

Roald de Wit | 1 Feb 2011 09:27

Re: RE: Users Digest, Vol 52, Issue 38

Hi,

map.addLayer only allows you to add 1 layer.

You want to use map.addLayer*s* [1]

Regards,

Roald

[1] 
http://dev.openlayers.org/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.addLayers

On 01/02/11 19:02, Rudert, Clemens VGD wrote:
> Hello
>
> I have the same Problem. I want to add two layers. This layers works fine when i add them seperatly. Now i
tried to add them like this:
>
> map.addLayer([layer_umn, layer_geo]);
>
> I get back an error like this:
>
> layer.div is undefined
>
> What could be wrong?
>
> Kindly regards
> Clemens Rudert
>
(Continue reading)

Dominik Mikiewicz | 1 Feb 2011 09:18
Picon
Favicon

Notifying user that a feature is being selected for editing in IE

Hi list,

 

In IE selecting larger features (larger = having many nodes) takes longer than in other browsers. I understand this may be a flavor of IE but I  have been trying to come up with a user friendly solution – a notification that lets user know there is something happening rather than suggesting a browser froze.

 

So far I have come up with the following:

 

                beforefeatureselected: function(){Ext.getDom('testDiv').style.display = 'block'; alert('test');}

                featureselected: function(){Ext.getDom('testDiv').style.display = 'none';}

 

I hook up both function to the layer that allows editing (I tried tying them up with a control but the outcome was the same I think). My test div is just a box so I can display it and hide (an indicator). When I leave the alert uncommented all works as expected – a div shows up (and then the message appears) to be hidden after the feature in question gets selected. Although when I comment the alert part I don’t get the desired effect – it looks like there is something rather heavy happening and the execution of my js is on hold until the feature actually gets highlighted.

 

Any ideas on how to let user know there is something happening (preferably by showing a progress animation or ExtJs load mask) appreciated. An information that this is the way it works in IE also would be valuable so I don’t spend more time on trying to figure out how to do it.

 

Thanks in advance

Dominik

_______________________________________________
Dev mailing list
Dev@...
http://lists.osgeo.org/mailman/listinfo/openlayers-dev
_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Frost89 | 1 Feb 2011 10:03
Picon
Favicon
Gravatar

Adding endpoint to a vector feature


I want to add an arrow at each end of a line drawn on the map. Is this
possible in OpenLayers?

If not, a workaround could be to add points at each end, then maybe grouping
them together, or just programmatically moving the features together.

If anyone has an idea to do any of this please let me know :)
--

-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Adding-endpoint-to-a-vector-feature-tp5980235p5980235.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
Mario Nuñez Jimenez | 1 Feb 2011 11:44
Picon

RE: OpenLayers.Control.MousePosition in a Toolbar

Any tip?

 

From: Mario Nuñez Jimenez
Sent: jueves, 27 de enero de 2011 12:13
To: users <at> openlayers.org
Subject: OpenLayers.Control.MousePosition in a Toolbar

 

Hello I was trying to put a OpenLayers.Control.MousePosition in a Toolbar sin I dont want it to be in the map, but I can not achieve it.

 

This is my MapPanel:

 

id: 'eo2_mappanel',

                  map : EO2Heaven.gis.MapManager.getMap(),

                  center: new OpenLayers.Bounds(-180,-90,180,90).getCenterLonLat(),

                  extent: new OpenLayers.Bounds(-180,-90,180,90),

                  zoom:0,

                  region : 'center',

                  margins : '0 5 0 0',

                  tbar: new EO2Heaven.widgets.MapToolbar(),

                  html: '<div id="logo"><img  height="75" src="./images/eo2heaven/eo2Logo.png" /></div>',

                  bbar: [{xtype:'eo2_scaleselector'},

                        new EO2Heaven.plugins.MousePosition({

                                                map: EO2Heaven.gis.MapManager.getMap(),

                                                controlOptions: {

                                                    prefix: 'Coord: ',

                                                    numDigits: 3

                                                }

                                            })

                        ]

 

 

But it doesnt work, it is still shown over the map…

 

I also tried:

 

mousePosition: new OpenLayers.Control.MousePosition({div: $('mouseTrack')})

this.bbar.push(Ext.get('mouseTrack'));

 

But it tolds me that there is no bbar to push, and also I am not sure that push is a valid method for bbar.

 

Thank you in advance for any help.

Mario.

 
------------------------------------------------------------------
This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive
this e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin
group liability cannot be triggered for the message content. Although
the sender endeavours to maintain a computer virus-free network,
the sender does not warrant that this transmission is virus-free and
will not be liable for any damages resulting from any virus transmitted.

Este mensaje y los ficheros adjuntos pueden contener informacion confidencial
destinada solamente a la(s) persona(s) mencionadas anteriormente
pueden estar protegidos por secreto profesional.
Si usted recibe este correo electronico por error, gracias por informar
inmediatamente al remitente y destruir el mensaje.
Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin
no se hace responsable por su contenido. Su contenido no constituye ningun
compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes.
Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor
no puede garantizar nada al respecto y no sera responsable de cualesquiera
danos que puedan resultar de una transmision de virus.
------------------------------------------------------------------
_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Dominik Mikiewicz | 1 Feb 2011 11:55
Picon
Favicon

RE: RE: OpenLayers.Control.MousePosition in a Toolbar

Add a container to your bbar and configure your control like this:

new OpenLayers.Control.MousePosition({

            div:’coordsContainer’,

            …

            })

 

 

From: openlayers-users-bounces-qjLDD68F18NyQMAyxoHuMA@public.gmane.org [mailto:openlayers-users-bounces-qjLDD68F18NyQMAyxoHuMA@public.gmane.org] On Behalf Of Mario Nunez Jimenez
Sent: Tuesday, February 01, 2011 11:44 AM
To: users-8CpAF3dzRPhD60Wz+7aTrA@public.gmane.org
Subject: [OpenLayers-Users] RE: OpenLayers.Control.MousePosition in a Toolbar

 

Any tip?

 

From: Mario Nuñez Jimenez
Sent: jueves, 27 de enero de 2011 12:13
To: users-8CpAF3dzRPhD60Wz+7aTrA@public.gmane.org
Subject: OpenLayers.Control.MousePosition in a Toolbar

 

Hello I was trying to put a OpenLayers.Control.MousePosition in a Toolbar sin I dont want it to be in the map, but I can not achieve it.

 

This is my MapPanel:

 

id: 'eo2_mappanel',

                  map : EO2Heaven.gis.MapManager.getMap(),

                  center: new OpenLayers.Bounds(-180,-90,180,90).getCenterLonLat(),

                  extent: new OpenLayers.Bounds(-180,-90,180,90),

                  zoom:0,

                  region : 'center',

                  margins : '0 5 0 0',

                  tbar: new EO2Heaven.widgets.MapToolbar(),

                  html: '<div id="logo"><img  height="75" src="./images/eo2heaven/eo2Logo.png" /></div>',

                  bbar: [{xtype:'eo2_scaleselector'},

                        new EO2Heaven.plugins.MousePosition({

                                                map: EO2Heaven.gis.MapManager.getMap(),

                                                controlOptions: {

                                                    prefix: 'Coord: ',

                                                    numDigits: 3

                                                }

                                            })

                        ]

 

 

But it doesnt work, it is still shown over the map…

 

I also tried:

 

mousePosition: new OpenLayers.Control.MousePosition({div: $('mouseTrack')})

this.bbar.push(Ext.get('mouseTrack'));

 

But it tolds me that there is no bbar to push, and also I am not sure that push is a valid method for bbar.

 

Thank you in advance for any help.

Mario.

 

------------------------------------------------------------------
This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive
this e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin
group liability cannot be triggered for the message content. Although
the sender endeavours to maintain a computer virus-free network,
the sender does not warrant that this transmission is virus-free and
will not be liable for any damages resulting from any virus transmitted.

Este mensaje y los ficheros adjuntos pueden contener informacion confidencial
destinada solamente a la(s) persona(s) mencionadas anteriormente
pueden estar protegidos por secreto profesional.
Si usted recibe este correo electronico por error, gracias por informar
inmediatamente al remitente y destruir el mensaje.
Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin
no se hace responsable por su contenido. Su contenido no constituye ningun
compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes.
Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor
no puede garantizar nada al respecto y no sera responsable de cualesquiera
danos que puedan resultar de una transmision de virus.
------------------------------------------------------------------

_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Steve.Toutant | 1 Feb 2011 15:04
Picon

Rendering real-time data by WMS


Hi,
I need to make sure that no cache is used when rendering wms layer.
I create my WMS layer with a dummy parameter using Math.random, so I'm sure that the URL of a tile is unique
That is good to "initialize" the layers. The problem is that the dummy parameter of a layer is the same for the duration of the session and if data change during the session, the browser use the cache.
What should I do to make sure that the browser never use cache when navigating in the map (zoom, pan, back and forward view, etc...)?

thanks in advance for your help,
Steve

_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
karsten vennemann | 1 Feb 2011 21:22

overview map setting numZoomLevels trouble

I am using an OL overview map control outside the regular map in an html div. This is all working fine except that I can not get the map to stay static (not zoom in or out). I have this - set numZoomLevels: 1 but it does not work and still is zooming in and out according to the actions in the main map. The extent rectangle is working fine
 
        var overviewmapoptions = {
            projection: new OpenLayers.Projection("EPSG:900913"),            
            numZoomLevels: 1,
            size: new OpenLayers.Size(180, 160),
            maxExtent: new OpenLayers.Bounds(915337.288810922,5929008.24725004,1645335.40214988,6591274.57687713),            
            layers: [mapnik],
            projection: new OpenLayers.Projection("EPSG:900913"),
            units: "m"
        };
                       
        var theOverviewMap = new OpenLayers.Control.OverviewMap({mapOptions: overviewmapoptions, size: ovmapsize, div: $('container_overview')});
        map.addControl(theOverviewMap);
 
 
I also tried instead
        var theOverviewMap = new OpenLayers.Control.OverviewMap({mapOptions: overviewmapoptions, size: ovmapsize, numZoomLevels: 1, div: $('container_overview')});
but no luck either
 
Any suggestions ?

Cheers

Karsten

_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Charlton Galvarino | 1 Feb 2011 21:28

getting img request headers

Hi, all.  Is there a way for me to intercept a normal (single tile) WMS img request so that I can see the request
headers as they come back?  WMS specs say,

=====
In order that the Client may determine what value was actually sent, the server shall label
the response object with the actual value found by rounding. In the HTTP environment,
the labeling is performed using an HTTP response header. For each dimension to which
a rounded-off value was applied, a header line of the following form shall be sent:

Warning: 99 Nearest value used: DIM_NAME=value units

where "99" is a defined by HTTP [IETF RFC 2616] for use by miscellaneous warnings,
DIM_NAME is the corresponding request parameter name, value is the value actually
used, and units is the units attribute (see C.2) for that dimension.
=====

I want to pull that timestamp out and along to the user to eliminate the guesswork behind identifying the
time the WMS img is trying to represent.

I haven't found any real hooks into this, and OpenLayers.Util.onImageLoad isn't really helping me see the
light either.

TIA.

Charlton Galvarino
1 (803) 233-6205 : voice
1 (803) 223-9579 :   fax
charlton@...

P.O. Box 50960
Columbia, SC 29250
Andy Colson | 1 Feb 2011 21:32

Re: getting img request headers

Firebug?

On 2/1/2011 2:28 PM, Charlton Galvarino wrote:
> Hi, all.  Is there a way for me to intercept a normal (single tile) WMS img request so that I can see the request
headers as they come back?  WMS specs say,
>
> =====
> In order that the Client may determine what value was actually sent, the server shall label
> the response object with the actual value found by rounding. In the HTTP environment,
> the labeling is performed using an HTTP response header. For each dimension to which
> a rounded-off value was applied, a header line of the following form shall be sent:
>
> Warning: 99 Nearest value used: DIM_NAME=value units
>
> where "99" is a defined by HTTP [IETF RFC 2616] for use by miscellaneous warnings,
> DIM_NAME is the corresponding request parameter name, value is the value actually
> used, and units is the units attribute (see C.2) for that dimension.
> =====
>
> I want to pull that timestamp out and along to the user to eliminate the guesswork behind identifying the
time the WMS img is trying to represent.
>
> I haven't found any real hooks into this, and OpenLayers.Util.onImageLoad isn't really helping me see
the light either.
>
> TIA.
>
>
>
>
>
> Charlton Galvarino
> 1 (803) 233-6205 : voice
> 1 (803) 223-9579 :   fax
> charlton@...
>
> P.O. Box 50960
> Columbia, SC 29250
>
> _______________________________________________
> Users mailing list
> Users@...
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

Gmane