You are not logged in.
- Topics: Active | Unanswered
Announcement
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
Pages: 1
#1 2014-12-08 02:13:46
- delicadiesel
- Member
- Registered: 2014-12-08
- Posts: 5
How to show the transparent layer on JOSM?
How to show the layer of the transparent map with a transparent background?
When I add the transparent map ( just like the google annotation map---->
tms:http://mts0.google.com/vt/lyrs=h@239000000&hl=zh-TW&gl=TW&src=app&x={x}&y={y}&z={zoom}&s=Galileo )
into the map layers, I can see this transparent map of the google annotation and other maps at the same time.
But, the google annotation map isn't transparent. Its background is the default white color.
What do I do to let the map transparent? It is because that I want to show the map just like this....http://goo.gl/maps/St8Ih
Although I can adjust the transparency of maps on JOSM to see this similar result, it is not convenient. Thanks.
Last edited by delicadiesel (2014-12-08 11:13:36)
Offline
#2 2014-12-08 23:44:17
- bastik
- Member
- Registered: 2011-08-05
- Posts: 58
Re: How to show the transparent layer on JOSM?
In case you aren't aware: You must not use the Google layers when contributing to OpenStreetMap: http://wiki.openstreetmap.org/wiki/Google
Feel free to ask if you have this problem with another imagery layer.
Offline
#3 2014-12-09 01:09:39
- delicadiesel
- Member
- Registered: 2014-12-08
- Posts: 5
Re: How to show the transparent layer on JOSM?
In case you aren't aware: You must not use the Google layers when contributing to OpenStreetMap: http://wiki.openstreetmap.org/wiki/Google
Feel free to ask if you have this problem with another imagery layer.
I am sorry for asking this sensitive question. I know that some maps have their copyright. In fact, I don't want to use the google map on JOSM.
I just take an example for explaining my question. The transparent map I really want to use is below. It is the boundary of my country(Taiwan) on the map.
wms:http://maps.nlsc.gov.tw/S_Maps/wms?VERSION=1.1.1&FORMAT=image/jpeg&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=Village&STYLES=&SRS={proj}&WIDTH={width}&HEIGHT={height}&BBOX={bbox}
Could anyone help me to let this map having a transparent background (not the default white color)?
If it can't do it on JOSM 7643, can other versions do this? Or, I should take a suggestion to the JOSM designers?
Last edited by delicadiesel (2014-12-09 01:12:06)
Offline
#4 2014-12-09 04:52:47
- bastik
- Member
- Registered: 2011-08-05
- Posts: 58
Re: How to show the transparent layer on JOSM?
JOSM does support transparency, but the image file that comes from the server must actually have transparent background. Try using PNG format instead of JPEG (along with option TRANSPARENT=TRUE):
wms:http://maps.nlsc.gov.tw/S_Maps/wms?VERSION=1.1.1&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=Village&STYLES=&SRS={proj}&WIDTH={width}&HEIGHT={height}&BBOX={bbox}Offline
#5 2014-12-09 11:27:29
- delicadiesel
- Member
- Registered: 2014-12-08
- Posts: 5
Re: How to show the transparent layer on JOSM?
JOSM does support transparency, but the image file that comes from the server must actually have transparent background. Try using PNG format instead of JPEG (along with option TRANSPARENT=TRUE):
Thank bastik. It is very successful to use your new wms code:
wms:http://maps.nlsc.gov.tw/S_Maps/wms?VERSION=1.1.1&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=Village&STYLES=&SRS={proj}&WIDTH={width}&HEIGHT={height}&BBOX={bbox}Now,I have the transparent boundary over other maps. I am very happy. Thank you again. ![]()
Last edited by delicadiesel (2014-12-09 11:28:38)
Offline
Pages: 1