[OSM-talk] ywms faded background in JOSM

Thom Shannon thom at glow-internet.com
Tue Nov 6 15:08:30 GMT 2007


Not sure if this has come up before but I thought other people might 
find it useful. I wanted the aerial imagery in JOSM to be slightly faded 
like potlatch, makes it much easier to see the ways.

To do it just edit [profile]Application Data\JOSM\plugins\ywms\ymap.html

after the body i added:
<div id="overlay" 
style="position:absolute;top:0;left:0;background:*white*;opacity:*0.5*;z-index:10;"></div>

and after about line 90 add:
          var overlayDiv = document.getElementById("overlay");
          overlayDiv.style.width  = new_width;
          overlayDiv.style.height = new_height;

you can of course tweak the colour and opacity in that bit of css

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20071106/4ba1b9a0/attachment.html>


More information about the talk mailing list