I did it. I tried to start fresh, but problem is still the same. What is most
confusing for me is why chrome open this single tile in new tab if I copy
its address. I'm not sure, what I should looking at. Here is the code I
used.

function init()
{
        OpenLayers.ProxyHost = "proxy.php?url=";
        map = new OpenLayers.Map('mapa',{
                        controls: [
                                new 
OpenLayers.Control.Navigation({dragPanOptions: {enableKinetic:
true}, mouseWheelOptions: {interval: 100}}),
                                new OpenLayers.Control.PanPanel({slideFactor: 
250}),
                                new OpenLayers.Control.ZoomPanel(),
                                new OpenLayers.Control.ScaleLine()
                        ],projection: new OpenLayers.Projection("EPSG:3857"),
                        displayProjection: new 
OpenLayers.Projection("EPSG:4326"),
                        maxExtent: new OpenLayers.Bounds(-20037508.34, 
-20037508.34, 20037508.34,
20037508.34),
                        units: "m"});
        
        podkladLayers = new Array(
                new OpenLayers.Layer.OSM("mc_P_osm",
"http://snape/MapQuest/${z}/${x}/${y}.png";, {transitionEffect: 'resize',
buffer:1}));    
        
        
        map.addLayer(podkladLayers[0]);
        
        vrstvaPsc = new Array(
                new OpenLayers.Layer.WMS(
                    "psc_zona_6",
"http://192.168.1.92:8080/geoserver/zk/wms";,
                    {   layers: 'zk:psc_zona_6',
                        srs: 'EPSG:3857',
                        env: 'opacita: 0.5',
                        format: 'image/png',
                        tilesOrigin : map.maxExtent.left + ',' +
map.maxExtent.bottom,
                        transparent: 'true'             
                    },
                {singleTile: false,
                yx : {'EPSG:3857' : false}
                }),
                new OpenLayers.Layer.WMS(
                    "psc_zona_6_l",
"http://192.168.1.92:8080/geoserver/zk/wms";,
                    {   layers: 'zk:psc_zona_6_l',
                        srs: 'EPSG:3857',
                        format: 'image/png',
                        tilesOrigin : map.maxExtent.left + ',' +
map.maxExtent.bottom,
                        transparent: 'true'                                     
                    },
                {singleTile: true,
                yx : {'EPSG:3857' : false}})
                );
        
        map.addLayer(vrstvaPsc[0]);
        map.addLayer(vrstvaPsc[1]);
        
        zoomToExt(12.089081, 48.55116, 18.858719, 51.055207, true);
}

Dan

P.S. This layer has about 2600 points(lables), but I think it is ok because
I'm using layer with the same count of polygons.

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/geoserver-doesn-t-show-untiled-postgis-layer-tp4640787p4987928.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to