[OpenLayers-Users] Layer.HTTPRequest

Marco Scheuble mail at marco-scheuble.de
Tue Mar 15 08:31:23 EDT 2011


Hi all,

I'm trying to get images from a nonwms-mapserver. For this I thought I do it
with a HTTPRequest-Layer, but I don't know how. And there are no examples
arround.

I tried it this way:
--------------------
map = new OpenLayers.Map('map', {maxExtent:  new OpenLayers.Bounds(7, 46,
10, 49)});
var osmlayer = new OpenLayers.Layer.WMS(
                "OpenLayers WMS",
                "http://demo.cubewerx.com/demo/cubeserv/cubeserv.cgi?",
                {layers: 'Foundation.GTOPO30', version: '1.3.0'},
                {singleTile: true, yx: []}
            );

var testlayer = new OpenLayers.Layer.HTTPRequest(
  'test',
  'http://.../index.php?',
  {'x1' : 7, 'x2': 10, 'y1': 46, 'y2':49}
);

map.addLayers(osmlayer, testlayer);
map.addControl(new OpenLayers.Control.MousePosition());
--------------------
but I can't see the testlayer...
Anyone knows why?
Thanks, Marco





--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Layer-HTTPRequest-tp6172617p6172617.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list