Re: [OpenLayers-Users] Invalid argument. OpenLayers.js, line 599 character 110 version 2.8 rc2

2009-05-26 Thread Kenneth Skovhede, GEOGRAF A/S

It sounds like this:
http://trac.openlayers.org/ticket/1910

There is a quick fix mentioned:
http://trac.openlayers.org/ticket/1910#comment:20

Regards, Kenneth Skovhede, GEOGRAF A/S



stephane.poir...@usherbrooke.ca skrev:

Hi All,
 
Running my code in IE80, I get an Invalid argument in 
OpenLayers-2-8rc2_OpenLayers.js, line 599 character 110
(right after var style=document.createStyleSheet(); and before using 
style).
 
Burn when I turn IE80 compatibility mode, it all works as fine as when 
using Mozilla Firefox.
 
Any idea if there is an update of the openlayers style.css files?
 
 
Stéphane Poirier

Professionel de recherche au CARTEL
Centre d'Applications et de Recherches en Télédétection
Département de géomatique appliquée
Université de Sherbrooke
Sherbrooke (Québec), CANADA J1K 2R1
Tel.: (+1 819) 821 8000 #61904
Fax.: (+1 819) 821 7944
stephane.poir...@usherbrooke.ca 
http://www.usherbrooke.ca/cartel


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
  
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] ZoomToExtent works in Firefox, Safari and IE7, but not in IE6

2009-05-26 Thread Adam Eskreis
IE6 compatibility is a mess, no matter what you are dealing with.

I feel your pain.

My first suggestion would be to try to convince your client that IE6
compatibility is unnecessary.

If that fails, try to find something that works with IE6.  Anything.  Do
whatever you can to get it to work.

Then put in a browser test in the javascript.  If the browser is IE6, use
the compatible code.  Otherwise, use the default code.

-Adam

On Tue, May 26, 2009 at 4:51 AM, sendeman wrote:

>
> Hi All,
>
> Does anybody have any ideas that might be of help for the problem I
> described previously? Thanks a lot in advance for any help.
>
> If I didn't explain the problem well enough, please let me know, so I can
> clarify it.
>
> Best regards,
> Martijn Senden.
>
>
>
> sendeman wrote:
> >
> > Hi all,
> >
> > I'm trying to make a 'fluid' layout, in which the viewport of the map
> > changes with changes in the size of the browser window. I have some html
> > and css worked out that do this without javascript in IE6. The only
> > problem I have is that the initial zoom level doesn't work in IE 6. IE 6
> > zooms in to the maximum level. Other browsers (IE7, FF, Safari, Chrome)
> do
> > set the zoom level correctly.
> >
> > I set the zoom level as follows:
> >
> > map.zoomToExtent(new
> >
> OpenLayers.Bounds(3.27392578125,50.69471783819287,7.294921875,53.67068019347264));
> >
> > What is it that makes IE 6 go wrong?
> >
> > Any help would be greatly appreciated!
> >
> > Below is the entire code of my test-site.
> >
> > Best regards,
> > Martijn Senden.
> >
> > 
> > 
> > 
> >
> >  > "http://www.w3.org/TR/html4/strict.dtd";>
> > 
> >  
> >
> >minOpenLayers.aspx
> >
> > src="javascript/OpenLayers.js">
> >
> > 
> >
> >
> >
> >var map, layer;
> >
> >function init(){
> >
> >map = new OpenLayers.Map( 'map' );
> >
> >layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
> > "http://labs.metacarta.com/wms/vmap0";, {layers: 'basic'} );
> >
> >map.addLayer(layer);
> >
> >map.zoomToExtent(new
> >
> OpenLayers.Bounds(3.27392578125,50.69471783819287,7.294921875,53.67068019347264));
> >}
> >
> >
> >
> >
> >
> >
> >#map
> >
> >{
> >
> >background-color: Red;
> >
> >position: absolute;
> >
> > width: 100%;
> >
> >height: 100%;
> >
> >}
> >
> >
> >
> >#mapWrapper {
> >
> > position: absolute;
> >
> > background-color: Blue;
> >
> > top: 76px;
> >
> > bottom: 0px;
> >
> > left: 0px;
> >
> > right: 0px;
> >
> >}
> >
> >
> >
> >
> >
> >  
> >
> >
> >
> >  
> >
> >
> >
> >  
> >
> > 
> > 
> > 
> > 
> >
>
> --
> View this message in context:
> http://n2.nabble.com/ZoomToExtent-works-in-Firefox%2C-Safari-and-IE7%2C-but-not-in-IE6-tp2969934p2973551.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Problems with WMS filter

2009-05-26 Thread Eric Lemoine
On Tue, May 26, 2009 at 5:31 PM, Micho Gar  wrote:
> Hi to all,
>
> I have a strange problem in my application. I have 2 WMS layers, make with
> the next code:

Hi, you must use sphericalMercator if you want overlays atop Google
layers. See .

Cheers,


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Fwd: Check and uncheck layers

2009-05-26 Thread Eric Lemoine
On Wed, May 27, 2009 at 6:24 AM, Peter Dawn  wrote:
> Hi Chris,
>
> Am attaching my file. Could you please advise me on what could be
> wrong here. if i check and uncheck layers, my layers are off. Thanks.

Hi, you must use sphericalMercator if you want overlays atop Google
layers. See .

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


[OpenLayers-Users] Fwd: Check and uncheck layers

2009-05-26 Thread Peter Dawn
Hi Chris,

Am attaching my file. Could you please advise me on what could be
wrong here. if i check and uncheck layers, my layers are off. Thanks.


> 
>  "DTD/xhtml1-strict.dtd">
> http://www.w3.org/1999/xhtml";>
> 
> Server
>        href="script/OpenLayers-2.7/theme/default/style.css" />
> 
> 
> body {
>       font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
>       font-size: small;
> }
> #toolbar {
>       position: relative;
>       padding-bottom: 0.5em;
>       display: none;
> }
> #toolbar ul {
>       list-style: none;
>       padding: 0;
>       margin: 0;
> }
> #toolbar ul li {
>       float: left;
>       padding-right: 1em;
>       padding-bottom: 0.5em;
> }
> #toolbar ul li a {
>       font-weight: bold;
>       font-size: smaller;
>       vertical-align: middle;
>       color: black;
>       text-decoration: none;
> }
> #toolbar ul li a:hover {
>       text-decoration: underline;
> }
> #toolbar ul li * {
>       vertical-align: middle;
> }
> #map {
>       clear: both;
>       position: relative;
>       width: 1000px;
>       height: 609px;
>       border: 1px solid black;
> }
> #wrapper {
>       width: 1000px;
> }
> #location {
>       float: right;
> }
> #options {
>       position: absolute;
>       left: 13px;
>       top: 7px;
>       z-index: 3000;
> }
> #heading{
>       font-family: Verdana;
>       font-size:10px;
>       font-weight:bold;
> }
> table.featureInfo,table.featureInfo td,table.featureInfo th {
>       border: 1px solid #ddd;
>       border-collapse: collapse;
>       margin: 0;
>       padding: 0;
>       font-size: 90%;
>       padding: .2em .1em;
> }
> table.featureInfo th {
>       padding: .2em .2em;
>       text-transform: uppercase;
>       font-weight: bold;
>       background: #eee;
> }
> table.featureInfo td {
>       background: #fff;
> }
> table.featureInfo tr.odd td {
>       background: #eee;
> }
> table.featureInfo caption {
>       text-align: left;
>       font-size: 100%;
>       font-weight: bold;
>       text-transform: uppercase;
>       padding: .2em .2em;
> }
> #scale {
>       font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
>       font-size: 11px;
> }
> #location {
>       font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
>       font-size: 11px;
> }
> #panel {
>       right: 0px;
>     height: 30px;
>     width: 200px;
> }
> #panel div {
>     float: left;
>     margin: 5px;
> }
> #paneldiv {
>       height: 80px;
> }
> #paneldiv div {
>       top: 0px;
> }
> 
>
>        type="text/javascript">
>         
> 
>             var map;
>
>             var tiled;
>             var pureCoverage = false;
>
>             OpenLayers.IMAGE_RELOAD_ATTEMPTS = 5;
>             OpenLayers.DOTS_PER_INCH = 25.4 / 0.28;
>
>             function init(){
>                 format = 'image/gif';
>                 if(pureCoverage) {
>                     document.getElementById('filterType').disabled = true;
>                     document.getElementById('filter').disabled = true;
>
> document.getElementById('antialiasSelector').disabled = true;
>
> document.getElementById('updateFilterButton').disabled = true;
>
> document.getElementById('resetFilterButton').disabled = true;
>                     document.getElementById('jpeg').selected = true;
>                     format = "image/jpeg";
>                 }
>
>                 var bounds = new OpenLayers.Bounds(
>                     140.0236751375, -39.395430580825,
>                     150.4504429725, -33.704234722675
>                 );
>
>                 var options = {
>                     controls: [],
>                     maxExtent: bounds,
>                     maxResolution: 0.0407295618554688,
>                     projection: "EPSG:4326",
>                     units: 'degrees'
>                 };
>
>                 map = new OpenLayers.Map('map', options);
>
>                 var gphy = new OpenLayers.Layer.Google(
>                         "Physical View",
>                         {type: G_PHYSICAL_MAP}
>                     );
>                 var gmap = new OpenLayers.Layer.Google(
>                         "Street View", // the default
>                         {numZoomLevels: 20}
>                     );
>                 var gsat = new OpenLayers.Layer.Google(
>                         "Satellite View",
>                         {type: G_SATELLITE_MAP, numZoomLevels: 20}
>                     );
>
>                 var polygon = new OpenLayers.Layer.WMS(
>                         "LGA", "http://localhost:8080/geoserver/wms";,
>                         {
>                             height: '609',
>                             width: '1000',
>                             layers: 'tr:POLYGON',
>                             styles: '',
>                             srs: 'EPSG:4326',
>                             transparent: 'TRUE',
>                             format: format,
>
>
>          

Re: [OpenLayers-Users] Background image on a vector

2009-05-26 Thread Paul Spencer
I'm just playing with this too ... all the styles that you can set are  
listed at the bottom of Layer/Vector.js

It is possible to specify a backgroundGraphic but I don't know if it  
only applies if you are using an externalGraphic or if it will be  
rendered for all vectors.

Cheers

Paul

On 26-May-09, at 9:16 PM, Adam Eskreis wrote:

> Is it possible to put a background image to a vector?
>
> Also, is there a list somewhere of all the viable style keys for  
> vectors?  I can't seem to find it in the OpenLayers documentation.
>
> Thank you
>
> -Adam
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


[OpenLayers-Users] Background image on a vector

2009-05-26 Thread Adam Eskreis
Is it possible to put a background image to a vector?

Also, is there a list somewhere of all the viable style keys for vectors?  I
can't seem to find it in the OpenLayers documentation.

Thank you

-Adam
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


[OpenLayers-Users] Invalid argument. OpenLayers.js, line 599 character 110 version 2.8 rc2

2009-05-26 Thread stephane.poirier
Hi All,

Running my code in IE80, I get an Invalid argument in 
OpenLayers-2-8rc2_OpenLayers.js, line 599 character 110
(right after var style=document.createStyleSheet(); and before using style). 

Burn when I turn IE80 compatibility mode, it all works as fine as when using 
Mozilla Firefox. 

Any idea if there is an update of the openlayers style.css files?


Stéphane Poirier
Professionel de recherche au CARTEL
Centre d'Applications et de Recherches en Télédétection
Département de géomatique appliquée
Université de Sherbrooke
Sherbrooke (Québec), CANADA J1K 2R1
Tel.: (+1 819) 821 8000 #61904
Fax.: (+1 819) 821 7944
stephane.poir...@usherbrooke.ca
http://www.usherbrooke.ca/cartel___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Comparision between MapServer/OpenLayers and ESRI ArcIMS

2009-05-26 Thread Christopher Schmidt
On Tue, May 26, 2009 at 02:50:36PM -0600, Bill Thoen wrote:
> I need to make a case for developing a map and data server using Open 
> Source software such as MapServer, Open Layers, PostgereSQL/PostGIS to 
> counter a proposal to go with ESRI's solutions. The client who this 
> would be directed to manages a lot of land parcels on which some 
> development is planned. As part of the support for this, the object is 
> to build an Internet-accessible server that maintains about 800Gb of 
> spatial and tabular data, that can provide interactive maps of the 
> properties, data downloads of selected areas and layers in shapefile, 
> AutoCAD and other formats. It also needs to generate 3D surfaces from 
> dense LiDAR data that's available. It also needs a database cataloging 
> system that can be searched for data held in the system. Finally, it 
> needs to provide different access privileges to various personnel who 
> will be using restricted data sets.
> 
> So what I need are some *current* facts about what packages are needed 
> to do this completely with ESRI software and what it will cost. Have any 
> of you had to address this 800-lb gorilla problem recently and do you 
> have any advice or facts I can use to keep my contract? 

I'd strongly recommend, if you haven't done this already, sending this
to the osgeo-discuss list -- though I'd frame it less as a "how can I
keep my job" and more as a "Does anyone have any comparisons of this
type?" (List is at http://lists.osgeo.org/mailman/listinfo/discuss ).

In this type of question, for the record, it seems to me like you'd need
to do a pretty significant amount of custom development. It's possible
that neither ESRI nor open source can do everything you need to do, but
that if you're making a purely "$$" based argument, ESRI could win,
simply becaues ESRI *is* packaged to do more of these things out of the
box without any development effort. 

Good luck, and Best Regards,
-- 
Christopher Schmidt
MetaCarta
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


[OpenLayers-Users] Comparision between MapServer/OpenLayers and ESRI ArcIMS

2009-05-26 Thread Bill Thoen
I need to make a case for developing a map and data server using Open 
Source software such as MapServer, Open Layers, PostgereSQL/PostGIS to 
counter a proposal to go with ESRI's solutions. The client who this 
would be directed to manages a lot of land parcels on which some 
development is planned. As part of the support for this, the object is 
to build an Internet-accessible server that maintains about 800Gb of 
spatial and tabular data, that can provide interactive maps of the 
properties, data downloads of selected areas and layers in shapefile, 
AutoCAD and other formats. It also needs to generate 3D surfaces from 
dense LiDAR data that's available. It also needs a database cataloging 
system that can be searched for data held in the system. Finally, it 
needs to provide different access privileges to various personnel who 
will be using restricted data sets.

So what I need are some *current* facts about what packages are needed 
to do this completely with ESRI software and what it will cost. Have any 
of you had to address this 800-lb gorilla problem recently and do you 
have any advice or facts I can use to keep my contract? I have to 
present my case to people who don't know much about GIS so I think price 
is going to be my best argument. So far, all I've been able to ascertain 
is that an Internet license for ArcIMS costs about $9 - $10K per dual 
core machine. Is that true? And don't you also need ArcSDE for the 
database connection, and some Arc3D for surface generation from LiDAR 
and copies of ArcGIS all around, and is data downloading even available 
through ArcIMS? What functionality comes "out-of-the-box" with ESRI's 
tools that meets what I've listed above? Is there something in the ESRI 
stable that can maintain differential, password-protected user access? 
How much would still have to be developed? And what about training and 
staff to maintain the system? What's that cost?

If anyone has answers to any of these questions I'd be grateful if you 
could give me some facts. As it stands I can put those questions out for 
consideration, but I'd like to know the answers too.

Thanks,
- Bill Thoen





___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


[OpenLayers-Users] seeking more degrees of freedom when modifying rectangle feature

2009-05-26 Thread stephane.poirier
Hi All,

To modify a feature, I currently use the drawcontrols code here below. When I 
have rectangle feature, I would like to have more flexibility when resizing 
(i.e. proportions not conserved). Do I have to switch to another type of 
feature to have more dregree of freedom when modifying the feature?

drawControls = 
{ 
   modify: new OpenLayers.Control.ModifyFeature(rectangleLayer,
{'displayClass': 'olControlModifyFeature', onModification: 
rectangle_feature_modified, 
mode: //OpenLayers.Control.ModifyFeature.RESHAPE |
  OpenLayers.Control.ModifyFeature.DRAG |
  OpenLayers.Control.ModifyFeature.RESIZE}) 
};

Regards,


Stéphane Poirier
Professionel de recherche au CARTEL
Centre d'Applications et de Recherches en Télédétection
Département de géomatique appliquée
Université de Sherbrooke
Sherbrooke (Québec), CANADA J1K 2R1
Tel.: (+1 819) 821 8000 #61904
Fax.: (+1 819) 821 7944
stephane.poir...@usherbrooke.ca
http://www.usherbrooke.ca/cartel___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


[OpenLayers-Users] Problems with WMS filter

2009-05-26 Thread Micho Gar
Hi to all,

I have a strange problem in my application. I have 2 WMS layers, make with
the next code:

var Servicios = new OpenLayers.Layer.WMS(
"Servicios", "http://localhost:8080/geoserver/wms";,
{
layers: 'osmius:usuarios_servicios',
srs: 'EPSG:4326',
format: format,
transparent : 'true',
projection: "EPSG:4326"
},
{buffer: 0,singleTile: true, ratio: 1}
);

I also have 2 Google Layers, make to this form:

var gmap = new OpenLayers.Layer.Google(
"Google Streets", // the default
{numZoomLevels: 20}
);

After I have a Javascript function where I filter the WMS data:

function cargaTodasInstanciasServicio(filtro){
//carga todas las instancias del servicio
cargaServicios(filtro);
var filtro_temp = "IDN_SERVICE='" + filtro + "'" ;
var filterParams = {
cql_filter: null
};
if (OpenLayers.String.trim(filtro_temp) != "") {
filterParams["cql_filter"] = filtro_temp;
}
//aplico el filtro pero a la capa instancias;
var a_wms = wmses[1];
a_wms.mergeNewParams(filterParams);
}

My problem is that the filter result is not in the same position that the
origin, and when I move the map they back to the good position.

Do you know, with my short explanation, which would the problem??

Thanks.


-- 
# michogar
# Analista Programador SIG
# GNU/Linux Counter 462666

Una visión personal:
http://michogar.blogspot.com

El dia a dia:
http://twitter.com/michogar


Sent from Madrid, Spain
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] WFS-T example won't work because of error in gears_init.js line 51

2009-05-26 Thread Eric Lemoine
On Tue, May 26, 2009 at 2:57 PM, Barbara Fiederer
 wrote:
> Hi out there,
>
> I'm new to OpenLayers, so this might be an easy problem, but I can't get it 
> solved on my own.
>
> At the moment I try to understand the examples on the OpenLayers.org-Site and 
> to adjust them to my data. The easier ones worked out fine. But now I cannot 
> get a WFS-T example to work. I tried two of them in the examples list of 
> OpenLayers.org and for a last try the WFS-T Demo provided by Geoserver.
>
> Two examples throw the same error in gears_init.js line 51 "factory = new 
> ActiveXObject('Gears.Factory'); ".

It may be that the error you're seeing in the FireBug console is
actually unrelated to Gears. Try removing the gears_init.js entry from
the jsfiles array in OpenLayers.js.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] WFS-T example won't work because of error in gears_init.js line 51

2009-05-26 Thread Alexandre Dube
Hi Barbara,

  Have you tried to look "step-by-step" at what's going on in the code 
using firebug ?  Do you see the request sent ?  Do you get a response ?  
Is there a server-side error message ?

  Try to figure exactly where the error occurs by putting breakpoints.  
That might helps a lot,

Alexandre

Barbara Fiederer wrote:
> Hi out there,
>
> I'm new to OpenLayers, so this might be an easy problem, but I can't get it 
> solved on my own.
>
> At the moment I try to understand the examples on the OpenLayers.org-Site and 
> to adjust them to my data. The easier ones worked out fine. But now I cannot 
> get a WFS-T example to work. I tried two of them in the examples list of 
> OpenLayers.org and for a last try the WFS-T Demo provided by Geoserver.
>
> Two examples throw the same error in gears_init.js line 51 "factory = new 
> ActiveXObject('Gears.Factory'); ".
> I tried to install it, but since I do not have Autocad installed it won't 
> work.
>
> In the end I tried to copy the source text of the geoserver example, that 
> works fine on the geoserver I use and I adjust only the pathnames to css, 
> openLayers-Library and geodata (tasmania) on the same geoserver, but get the 
> same error.
>
> Has anyone got an idea that could help me.
>
> I use FF 3.0.10, OL 2.7 on windows XP
>
> Thanks, Barbara
> 
> Neu: WEB.DE FreeDSL Komplettanschluss mit DSL 6.000 Flatrate und
> Telefonanschluss für 17,95 Euro/mtl.!* http://produkte.web.de/go/02/
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>   


-- 
Alexandre Dubé
Mapgears
www.mapgears.com

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


[OpenLayers-Users] WFS-T example won't work because of error in gears_init.js line 51

2009-05-26 Thread Barbara Fiederer
Hi out there,

I'm new to OpenLayers, so this might be an easy problem, but I can't get it 
solved on my own.

At the moment I try to understand the examples on the OpenLayers.org-Site and 
to adjust them to my data. The easier ones worked out fine. But now I cannot 
get a WFS-T example to work. I tried two of them in the examples list of 
OpenLayers.org and for a last try the WFS-T Demo provided by Geoserver.

Two examples throw the same error in gears_init.js line 51 "factory = new 
ActiveXObject('Gears.Factory'); ".
I tried to install it, but since I do not have Autocad installed it won't work.

In the end I tried to copy the source text of the geoserver example, that works 
fine on the geoserver I use and I adjust only the pathnames to css, 
openLayers-Library and geodata (tasmania) on the same geoserver, but get the 
same error.

Has anyone got an idea that could help me.

I use FF 3.0.10, OL 2.7 on windows XP

Thanks, Barbara

Neu: WEB.DE FreeDSL Komplettanschluss mit DSL 6.000 Flatrate und
Telefonanschluss für 17,95 Euro/mtl.!* http://produkte.web.de/go/02/

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Check and uncheck layers

2009-05-26 Thread Christopher Schmidt
On Tue, May 26, 2009 at 01:34:51PM +1000, Peter Dawn wrote:
> hi everyone,
> 
> this is related to the plus sign on my open layer which i use to hide
> and unhide layers. after i have unchecked a layer and i re-check it,
> the layer is a bit off on the google map. i mean the layer isn't
> exactly at the right place. but if i move google maps a little bit,
> the layer realigns properly.
> 
> would anybody know the solution to this.

What type of layer? What is the other setup? What OpenLayers version?
Have you produced a minimized example?
(http://openlayers.org/pipermail/users/2009-May/011865.html)

Regards,
-- 
Christopher Schmidt
MetaCarta
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] MapGuide useHttpTile with IIS

2009-05-26 Thread gingerbbm

Under ticket 1622 which you linked to it says "To support on-the-fly
generation, the querystring should also include the name of the
mapdefiniton". Presumably this is as opposed to hard-coding this information
in the redirect PHP script?
-- 
View this message in context: 
http://n2.nabble.com/MapGuide-useHttpTile-with-IIS-tp2973909p2974190.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] MapGuide useHttpTile with IIS

2009-05-26 Thread Zac Spitzer
try googling IIS errordocument :) but I would suggest
try using nginx rather than IIS, it's wyy faster

querystring was added to allow additional params to be passed,
as noted in http://trac.openlayers.org/ticket/1622

z
On Tue, May 26, 2009 at 8:34 PM, gingerbbm  wrote:
>
> Dear all
>
> I've been goofing around with the new "useHttpTile" flag to allow direct
> access to pre-generated MapGuide tiles and it's brilliant - so thanks to all
> those who have contributed. Although I'm successfully accessing the tiles
> via HTTP, I now need to implement a custom 404 in IIS to redirect to the
> MapGuide server should the requested tile be missing.
>
> I had a look at the Apache version...
>
> http://trac.osgeo.org/mapguide/wiki/CodeSamples/Tiles/ServingTilesViaHttp
> http://trac.osgeo.org/mapguide/wiki/CodeSamples/Tiles/ServingTilesViaHttp
>
> ...but the "REDIRECT_URL" server parameter is not supported in IIS. I will
> work on an alternative but in the meantime thought I'd see whether anyone
> else has developed an equivalent script which they're happy to share?
>
> The other question I have is over the new "querystring" parameter option. I
> can't find any explanation of suitable values for this. Can anyone help?
>
> FYI this is the patch page:
>
> http://trac.openlayers.org/changeset/9004
> http://trac.openlayers.org/changeset/9004
>
> Thanks
> Stuart
> --
> View this message in context: 
> http://n2.nabble.com/MapGuide-useHttpTile-with-IIS-tp2973909p2973909.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



-- 
Zac Spitzer -
http://zacster.blogspot.com
+61 405 847 168
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


[OpenLayers-Users] MapGuide useHttpTile with IIS

2009-05-26 Thread gingerbbm

Dear all

I've been goofing around with the new "useHttpTile" flag to allow direct
access to pre-generated MapGuide tiles and it's brilliant - so thanks to all
those who have contributed. Although I'm successfully accessing the tiles
via HTTP, I now need to implement a custom 404 in IIS to redirect to the
MapGuide server should the requested tile be missing.

I had a look at the Apache version...

http://trac.osgeo.org/mapguide/wiki/CodeSamples/Tiles/ServingTilesViaHttp
http://trac.osgeo.org/mapguide/wiki/CodeSamples/Tiles/ServingTilesViaHttp 

...but the "REDIRECT_URL" server parameter is not supported in IIS. I will
work on an alternative but in the meantime thought I'd see whether anyone
else has developed an equivalent script which they're happy to share?

The other question I have is over the new "querystring" parameter option. I
can't find any explanation of suitable values for this. Can anyone help?

FYI this is the patch page:

http://trac.openlayers.org/changeset/9004
http://trac.openlayers.org/changeset/9004 

Thanks
Stuart
-- 
View this message in context: 
http://n2.nabble.com/MapGuide-useHttpTile-with-IIS-tp2973909p2973909.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] IE6 GIF transparency issue

2009-05-26 Thread Linde Ackermans

Pete,

I managed to do this in 2 different ways :

1. Use the alpha hack on .png 

var boundaries = new OpenLayers.Layer.WMS("Layer1", 
"http://your-url";,
{ layers: "0,1,2" 
  ,transparent: "true"
  ,srs: "EPSG:3035"
},
{'buffer':0, 'format':"image/png", 'isBaseLayer':false,
'transparent':true},
{'alpha':true}
);

2. Specify "image/gif" as the format( but I think you specify your
format in the wrong place !! )

var boundaries = new OpenLayers.Layer.WMS("Layer1", 
"http://your-url";,
{ layers: "0,1,2" 
  ,transparent: "true"
  ,srs: "EPSG:3035"
},
{'buffer':0, 'format':"image/gif", 'isBaseLayer':false,
'transparent':true}
);

Both work in Firefox, IE6 and IE7


Peter Dawn wrote:
> 
> 
> now i need to use IE6, hence my image format needs to be GIF (as you
> know PNG is not supported by IE6).
> 
> so my question is how can i achieve layer transparency with IE6 and
> GIF format. i have tried
> 
> untiled = new OpenLayers.Layer.WMS(
> "Locality", "http://localhost:8080/geoserver/wms";,
> {
> height: '600',
> width: '600',
> layers: 'my_layer',
> styles: '',
> transparent: 'TRUE',
> format: format,
> tiled: 'true',
> },
> 
> but am still not able to achieve transparency. if i use PNG and use
> firefox it works. but i need to use IE6 and hence GIF.
> 
> any help.
> 
> thanks.
> pete.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/IE6-GIF-transparency-issue-tp2972366p2973736.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] How to get list of all Layers from a wms servoce?

2009-05-26 Thread Linde Ackermans

Hi,

An  example for WMSCapabilities  ( but I don't know how to expose all of the
properties, like srs, etc...)
Hope it is helpfull.




Read WMS Capabilities


http://openlayers.org/api/2.8-rc3/OpenLayers.js";>



OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";

var request = OpenLayers.Request.GET({
url:
"http://your-server-url-path-to-a-WMS-service?request=getcapabilities&version=1.1.1";,
success: function(response) {
//  alert(response.responseText);
var XMLformat = new OpenLayers.Format.XML();
var xml = XMLformat.read(response.responseText);
var CAPformat = new OpenLayers.Format.WMSCapabilities();
var cap = CAPformat.read(xml);
for (var i=0; i 
> Hello list,
> 
> Does anybody have a good sample regarding WMSCapabilities,  
> WMSDescribeLayer and WMSGetFeatureInfo ? It would be very useful!
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/How-to-get-a-list-of-all-layers-from-a-wms-service--tp2642660p2973649.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] ZoomToExtent works in Firefox, Safari and IE7, but not in IE6

2009-05-26 Thread sendeman

Hi All,

Does anybody have any ideas that might be of help for the problem I
described previously? Thanks a lot in advance for any help.

If I didn't explain the problem well enough, please let me know, so I can
clarify it.

Best regards,
Martijn Senden.



sendeman wrote:
> 
> Hi all,
> 
> I'm trying to make a 'fluid' layout, in which the viewport of the map
> changes with changes in the size of the browser window. I have some html
> and css worked out that do this without javascript in IE6. The only
> problem I have is that the initial zoom level doesn't work in IE 6. IE 6
> zooms in to the maximum level. Other browsers (IE7, FF, Safari, Chrome) do
> set the zoom level correctly.
> 
> I set the zoom level as follows:
> 
> map.zoomToExtent(new
> OpenLayers.Bounds(3.27392578125,50.69471783819287,7.294921875,53.67068019347264));
> 
> What is it that makes IE 6 go wrong?
> 
> Any help would be greatly appreciated!
> 
> Below is the entire code of my test-site.
> 
> Best regards,
> Martijn Senden.
> 
> 
> 
> 
> 
>  "http://www.w3.org/TR/html4/strict.dtd";>
> 
>  
> 
>minOpenLayers.aspx
> 
>
> 
> 
> 
>
> 
>var map, layer;
> 
>function init(){
> 
>map = new OpenLayers.Map( 'map' );
> 
>layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
> "http://labs.metacarta.com/wms/vmap0";, {layers: 'basic'} );
> 
>map.addLayer(layer); 
>
>map.zoomToExtent(new
> OpenLayers.Bounds(3.27392578125,50.69471783819287,7.294921875,53.67068019347264));
>}
>
> 
>
> 
> 
> 
>#map
> 
>{
> 
>background-color: Red;
> 
>position: absolute;
> 
> width: 100%;
> 
>height: 100%;
> 
>}
> 
> 
> 
>#mapWrapper {
> 
> position: absolute;
> 
> background-color: Blue;
> 
> top: 76px;
> 
> bottom: 0px;
> 
> left: 0px;
> 
> right: 0px;
> 
>}
> 
>
> 
> 
> 
>  
> 
> 
> 
>  
> 
>
> 
>  
> 
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/ZoomToExtent-works-in-Firefox%2C-Safari-and-IE7%2C-but-not-in-IE6-tp2969934p2973551.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


[OpenLayers-Users] Overlay on Google

2009-05-26 Thread moony

Hello,

I have two baselayers. When I use basemap as baselayer, I could add the
overlay, but with google as baselayer I got a error message "Paramenter
'src' contains unacceptable value". The services are delivered by arcgis
server 9.3.
I cannot see my mistake. What did I forget?
Below is my code. The services are only available within intranet.

Thanks!

var map;
var webproj = "EPSG:102113";
var webextent = new OpenLayers.Bounds(-20037508, -20037508, 20037508,
20037508.34);
var webunits= "m";


function init(){
  var options = { 
maxExtent : webextent,
projection: webproj,
units: webunits,
maxResolution: 156543.0339,
numZoomLevels: 9 
};

  map = new OpenLayers.Map( $('map') , options);

  var gphy = new OpenLayers.Layer.Google(
"Google Physical",
{type: G_HYBRID_MAP, 'sphericalMercator': true}
);
  map.addLayer(gphy);

  var basemap = new OpenLayers.Layer.WMS( "Basemap", 
   
"http://xen1ags:8399/arcgis/services/Monitor/Bevoelkerung_Bundesland_Web_Mercator/MapServer/WMSServer";,
{layers: '0', format: 'image/png', transparent: 'true'}, 
{singleTile: true, isBaseLayer: true});
  map.addLayer(basemap);

  var wms = new OpenLayers.Layer.WMS( "WMS", 
   
"http://xen1ags:8399/arcgis/services/Monitor/Bevoelkerung_Bundesland_Web_Mercator/MapServer/WMSServer";,
{layers: '1', srs: 'EPSG:102113', format: 'image/png',
transparent: 'true'},  {'reproject': false, 'opacity': 0.4, isBaseLayer:
false});
  map.addLayer(wms);



map.setCenter(OpenLayers.Layer.SphericalMercator.forwardMercator(10.205188,51.457593),
6);
 map.addControl(new OpenLayers.Control.LayerSwitcher());
 map.addControl(new OpenLayers.Control.MousePosition());
}

-- 
View this message in context: 
http://n2.nabble.com/Overlay-on-Google-tp2973539p2973539.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users