[Users] configuring layers in geoexplorer
Lemarchand, Johan
lemarchandjo at who.int
Wed Jul 8 17:56:45 CEST 2009
Hi,
Thanks for your reply but I don't see where I can change the image
format and set the transparency. The layers are displayed with a grey
background and are not transparent. How can I specify the output image
format for my layers?
Ext.BLANK_IMAGE_URL = "theme/img/blank.gif";
var app = new GeoExplorer.Embed({
//proxy: "/proxy/?url=",
about: {
title: 'Example Map',
"abstract": 'A description of the map\'s contents',
keywords: "example, test, development",
contact: "Georj the Robot, Outreach Tribe Leader,
OpenGeo, http://opengeo.org/"
},
ows: {
"demo": "http://extranet.who.int/geoserver/ows"
},
map: {
layers: [{
name: "WHO:GIM_MONITORING_GEOMETRY_MEASURES",
ows: "demo"
},{
name: "World_countries_legal",
ows: "demo",
background: true,
visibility:true
}],
center: [0, 0],
zoom: 4
}
});
Thanks in advance and I will be interested to know when the new tag 0.2
will be ready.
regards,
Johan
-----Original Message-----
From: users-bounces at geoext.org [mailto:users-bounces at geoext.org] On
Behalf Of Tim Schaub
Sent: 01 July 2009 02:59
Cc: Users at geoext.org
Subject: Re: [Users] configuring layers in geoexplorer
Hey-
Andreas Hocevar wrote:
> Hi Johan,
>
> On Tue, Jun 30, 2009 at 1:54 PM, Lemarchand,
Johan<lemarchandjo at who.int> wrote:
>> I have downloaded the latest release of GeoExplorer with the new
GeoExt.
>> I am trying to configure the layers added at the initialization of
the
>> application. It seems that the layers options such as the style,
format,
>> minScale, maxScale, etc... are not passed in when the application is
>> activated. Is it the correct way to initialize the GeoExplorer? Is it
>> covered in the current release or will it be covered later?
>
> Tthe correct way to configure GeoExplorer is to do it like in the
> example, i.e. only provide a layer name. The layer name has to
> correspond with a layer in the capabilities document that is loaded
> with GeoExplorer. Currently, all layers in GeoExplorer have to come
> from one WMS, i.e. information about all layers has to be in one
> capabilities document.
I should add that the latest "release" of the app is actually what you
get in the zip archive linked from this blog post:
http://blog.opengeo.org/2009/06/17/geoexplorer-preview/
This comes from the 0.1.x branch - not the trunk.
If you are trying out the app at the trunk, you can use more than one
OWS. I'll be making another tag for 0.2 in a few days. This tag will
come with some basic docs.
Tim
>
> Regards,
> Andreas.
>
>> <script>
>> Ext.BLANK_IMAGE_URL = "theme/img/blank.gif";
>> var app = new GeoExplorer.Embed({
>> proxy: "/proxy/?url=",
>> ows: {
>> "demo": "http://demo.opengeo.org/geoserver/ows/"
>> },
>> map: {
>> layers: [{
>> name: "topp:states",
>> queryable: true,
>> formats: "image/gif",
>> styles: "polygon",
>> ows: "demo",
>> background: true,
>> visibility:true
>> },{
>> name: "topp:bluemarble",
>> ows: "demo",
>> visibility: false,
>> background: true
>> }],
>> center: [-96.7, 37.6],
>> zoom: 4
>> }
>> });
>> </script>
>>
>> thanks in advance,
>> Johan Lemarchand
>> Public Health Information and GIS (GIS)
>> Health Statistics and Informatics (HSI)
>> Information Evidence and Research (IER)
>> World Health Organization
>> Tel: +41 22 791 1076
>> Mobile: +41 79 517 4205
>> Email: lemarchandjo at who.int
>>
>> _______________________________________________
>> Users mailing list
>> Users at geoext.org
>> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>>
>
>
>
--
Tim Schaub
OpenGeo - http://opengeo.org
Expert service straight from the developers.
_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list