RE: [Qgis-user] RE: Qgis-user] openlayers layers without properties is it possible to alter brightness/contrast

2012-02-28 Thread M . E . Dodd
Excellent, works fine, just what I wanted, thanks.

-Original Message-
From: Richard Duivenvoorde [mailto:rdmaili...@duif.net] 
Sent: 28 February 2012 10:24
To: qgis-user@lists.osgeo.org; M.E.Dodd
Subject: Re: [Qgis-user] RE: Qgis-user] openlayers layers without properties is 
it possible to alter brightness/contrast

On 02/28/2012 10:42 AM, M.E.Dodd wrote:
> Thanks for the suggestion, I tried putting the opacity value here:
>
> var osm = new OpenLayers.Layer.OSM(
>"OpenStreetMap",
>"http://tile.openstreetmap.org/${z}/${x}/${y}.png",opacity:0.5
>{
>
> In the openstreetmaps .html but that made the map vanish altogether so I 
> removed the 'opacity:0.5' and osm map reappeared again.  Do I need to stick 
> it somewhere else in the .html file?

It is a property which you should add in the 'options'-object (I'm talking 
OpenLayers lingua now, have a look at OpenLayers.org):

So, change this in osm.html:

 var osm = new OpenLayers.Layer.OSM(
   "OpenStreetMap",
   "http://tile.openstreetmap.org/${z}/${x}/${y}.png";,
   {
 eventListeners: {
   "loadstart": layerLoadStart,
   "loadend": layerLoadEnd
 }
   }
 );

Into this:
 var osm = new OpenLayers.Layer.OSM(
   "OpenStreetMap",
   "http://tile.openstreetmap.org/${z}/${x}/${y}.png";,
   {
 eventListeners: {
   "loadstart": layerLoadStart,
   "loadend": layerLoadEnd
 }
 ,opacity:0.5
   }
 );

This should work :-)

Regards,

Richard Duivenvoorde

-- 
The Open University is incorporated by Royal Charter (RC 000391), an exempt 
charity in England & Wales and a charity registered in Scotland (SC 038302).

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] RE: Qgis-user] openlayers layers without properties is it possible to alter brightness/contrast

2012-02-28 Thread Richard Duivenvoorde

On 02/28/2012 10:42 AM, M.E.Dodd wrote:

Thanks for the suggestion, I tried putting the opacity value here:

var osm = new OpenLayers.Layer.OSM(
   "OpenStreetMap",
   "http://tile.openstreetmap.org/${z}/${x}/${y}.png",opacity:0.5
   {

In the openstreetmaps .html but that made the map vanish altogether so I 
removed the 'opacity:0.5' and osm map reappeared again.  Do I need to stick it 
somewhere else in the .html file?


It is a property which you should add in the 'options'-object (I'm 
talking OpenLayers lingua now, have a look at OpenLayers.org):


So, change this in osm.html:

var osm = new OpenLayers.Layer.OSM(
  "OpenStreetMap",
  "http://tile.openstreetmap.org/${z}/${x}/${y}.png";,
  {
eventListeners: {
  "loadstart": layerLoadStart,
  "loadend": layerLoadEnd
}
  }
);

Into this:
var osm = new OpenLayers.Layer.OSM(
  "OpenStreetMap",
  "http://tile.openstreetmap.org/${z}/${x}/${y}.png";,
  {
eventListeners: {
  "loadstart": layerLoadStart,
  "loadend": layerLoadEnd
}
,opacity:0.5
  }
);

This should work :-)

Regards,

Richard Duivenvoorde
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


RE: [Qgis-user] RE: Qgis-user] openlayers layers without properties is it possible to alter brightness/contrast

2012-02-28 Thread M . E . Dodd
Thanks for the suggestion, I tried putting the opacity value here:

var osm = new OpenLayers.Layer.OSM(
  "OpenStreetMap",
  "http://tile.openstreetmap.org/${z}/${x}/${y}.png",opacity:0.5
  {

In the openstreetmaps .html but that made the map vanish altogether so I 
removed the 'opacity:0.5' and osm map reappeared again.  Do I need to stick it 
somewhere else in the .html file?

-Original Message-
From: Richard Duivenvoorde [mailto:rdmaili...@duif.net] 
Sent: 28 February 2012 09:19
To: M.E.Dodd
Cc: 'Alister Hood'; qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] RE: Qgis-user] openlayers layers without properties is 
it possible to alter brightness/contrast

On 02/28/2012 09:46 AM, M.E.Dodd wrote:

> Have downloaded the .qml files but now not sure how to proceed. I have osm 
> via openlayers but that does not have properties so ...

If you are using OpenStreetmap as a background via the OpenLayers Plugin, then 
you are stuck with the coloring of the layer provider (either OSM, Yahoo or 
Google).

But what you can do is set the opacity of the OpenLayers Layer in the html that 
is used by the plugin. This plugin is actually a html-page showing up in QGIS.

To change the opacity of the layer, go to the plugin directory:

~/.qgis/python/plugins/openlayers
(or in windows it is in your Documents and Settings)

there is a directory 'html' in which some html files reside which are used by 
the OpenLayers plugin.
Currently my OSM layers seems broken, but if I open the file 
google_streets.html in a text editor, and find the lines:

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

 );

and add opacity to the layer props by making it this:

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

 );

Now when you use the OpenLayers plugin, you will have a much softer 
background...
You can change opacity to any number between 0 and 1 See also: 
http://openlayers.org/dev/examples/layer-opacity.html

Hope this is usefull,

Regards,

Richard Duivenvoorde


-- 
The Open University is incorporated by Royal Charter (RC 000391), an exempt 
charity in England & Wales and a charity registered in Scotland (SC 038302).

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] RE: Qgis-user] openlayers layers without properties is it possible to alter brightness/contrast

2012-02-28 Thread Richard Duivenvoorde

On 02/28/2012 09:46 AM, M.E.Dodd wrote:


Have downloaded the .qml files but now not sure how to proceed. I have osm via 
openlayers but that does not have properties so ...


If you are using OpenStreetmap as a background via the OpenLayers 
Plugin, then you are stuck with the coloring of the layer provider 
(either OSM, Yahoo or Google).


But what you can do is set the opacity of the OpenLayers Layer in the 
html that is used by the plugin. This plugin is actually a html-page 
showing up in QGIS.


To change the opacity of the layer, go to the plugin directory:

~/.qgis/python/plugins/openlayers
(or in windows it is in your Documents and Settings)

there is a directory 'html' in which some html files reside which are 
used by the OpenLayers plugin.
Currently my OSM layers seems broken, but if I open the file 
google_streets.html in a text editor, and find the lines:


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

);

and add opacity to the layer props by making it this:

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

);

Now when you use the OpenLayers plugin, you will have a much softer 
background...

You can change opacity to any number between 0 and 1
See also: http://openlayers.org/dev/examples/layer-opacity.html

Hope this is usefull,

Regards,

Richard Duivenvoorde

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] RE: Qgis-user] openlayers layers without properties is it possible to alter brightness/contrast

2012-02-28 Thread M . E . Dodd
This looks exactly what I want:

"You mean like this?:
http://underdark.wordpress.com/2012/02/25/light-styles-for-osm-layers-in-qgis/";

Have downloaded the .qml files but now not sure how to proceed. I have osm via 
openlayers but that does not have properties so went to 'style manager' but 
that expects .xml files not .qml ones so not sure where to try next.  Am using 
qgis 1.9.90 on windowsxp

-Original Message-
From: Alister Hood [mailto:alister.h...@synergine.com] 
Sent: 27 February 2012 21:10
To: qgis-user@lists.osgeo.org
Cc: m.e.d...@open.ac.uk
Subject: RE: Qgis-user] openlayers layers without properties is it possible to 
alter brightness/contrast

> Date: Mon, 27 Feb 2012 17:15:02 +
> From: M.E.Dodd 
> Subject: [Qgis-user] openlayers layers without properties is it
>   possible to alter brightness/contrast
> To: "qgis-user@lists.osgeo.org" 
> Message-ID:
>   <9932a16f9ce9264fac3f2e0e008e1221012d984...@kieldercms1.open.ac.uk>
> Content-Type: text/plain; charset="us-ascii"
>
> Is it possible to change the display of e.g. openstreetmap background layer, 
> I would like to plot data over this but its rather aggressive in the 
> background so I would like to grey it down.

You mean like this?:
http://underdark.wordpress.com/2012/02/25/light-styles-for-osm-layers-in-qgis/

-- 
The Open University is incorporated by Royal Charter (RC 000391), an exempt 
charity in England & Wales and a charity registered in Scotland (SC 038302).

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] RE: Qgis-user] openlayers layers without properties is it possible to alter brightness/contrast

2012-02-27 Thread Alister Hood
> Date: Mon, 27 Feb 2012 17:15:02 +
> From: M.E.Dodd 
> Subject: [Qgis-user] openlayers layers without properties is it
>   possible to alter brightness/contrast
> To: "qgis-user@lists.osgeo.org" 
> Message-ID:
>   <9932a16f9ce9264fac3f2e0e008e1221012d984...@kieldercms1.open.ac.uk>
> Content-Type: text/plain; charset="us-ascii"
>
> Is it possible to change the display of e.g. openstreetmap background layer, 
> I would like to plot data over this but its rather aggressive in the 
> background so I would like to grey it down.

You mean like this?:
http://underdark.wordpress.com/2012/02/25/light-styles-for-osm-layers-in-qgis/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user