[MapProxy] California in Africa

Sebastian E. Ovide sebastian.ovide at gmail.com
Thu Sep 2 12:40:10 EDT 2010


> > I have 2 different behavior.
> > TMS: Using MapProxy as TMS I still see a huge california (bigger than the
> world) with the correct colors and transparency.
>
> Can you try /tiles instead of /tms? See
> http://mapproxy.org/docs/0.8.5.dev-20100818/services.html#openlayers
>
>
Perfect !... this is working as expected ! :)


>  > using WMS I can see California in the right place, right size for ANY
> zoom level... but it still displays a black background... (TMS still same
> problems....)
>
> You need to tell OpenLayers that this layer is transparent.
>
>
actually it is displayed with opacity 0.5... so it is displayed in top of
Google maps but still you can see google maps behind it...  but it draws
also a black background (semi transparent)... infact the images that I get
from the URL generated by OpenLayers woud be a black box with a piece of CA
drawn over it....

so in OpenLayers I have exactly the same configuration for TileCache than
for MapProxy:

TileCache:
            var ca_wild_fire_tc = new OpenLayers.Layer.WMS( "CA Wild Fire
TileCache",
                "http://10.0.1.40/tiles/",
                {    layers: 'ca_wild_fire'
                } ,
                {
                    opacity: 0.5,
                    visibility: false
                }
            );


http://10.0.1.40/tiles/?LAYERS=ca_wild_fire&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=EPSG%3A900913&BBOX=-13501836.674676,5097432.5405688,-13496944.704867,5102324.5103781&WIDTH=256&HEIGHT=256

(tile with part of the map)

MapProxy:

            var ca_wild_fire_mp_wms = new OpenLayers.Layer.WMS( "CA Wild
Fire MapProxy WMS",
                "http://10.0.1.40:8123/service/",
                {    layers: 'ca_wild_fire',
                } ,
                {
                    opacity: 0.5,
                    visibility: false
                }
            );

http://10.0.1.40:8123/service/?LAYERS=ca_wild_fire&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=EPSG%3A900913&BBOX=-13501836.674676,5097432.5405688,-13496944.704867,5102324.5103781&WIDTH=256&HEIGHT=256

(black tile with part of the map)





>
> --
> Oliver Tonnhofer <olt at omniscale.de>
> Omniscale - Dominik Helle, Oliver Tonnhofer GbR
> Nadorster Str. 60, 26123 Oldenburg
> Tel: +49(0)441/9392774-2 (Fax: 9)
>
>


-- 
Sebastian E. Ovide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapproxy/attachments/20100902/b173be66/attachment.html


More information about the MapProxy mailing list