[OpenLayers-Trac] Re: [OpenLayers] #3376: using WMS.Post
transparency is not possible
OpenLayers
trac-20090302 at openlayers.org
Mon Jun 20 16:00:29 EDT 2011
#3376: using WMS.Post transparency is not possible
------------------------+---------------------------------------------------
Reporter: h0nIg | Owner: euzuro
Type: bug | Status: reopened
Priority: major | Milestone:
Component: Layer.WMS | Version: 2.10
Resolution: | Keywords:
State: |
------------------------+---------------------------------------------------
Changes (by h0nIg):
* status: closed => reopened
* resolution: invalid =>
Comment:
i do not have a transitionEffect configured :/ please compare
IFrame.js:createIFrame:onload with Image.js:initImgDiv:onload. In
Image.js:initImgDiv:onload there is no show();
thats my js:
{{{
OpenLayers.DOTS_PER_INCH = 25.4 / 0.28;
OpenLayers.Util.onImageLoadErrorColor = 'transparent';
OpenLayers.ImgPath = "/images/OpenLayers-2.10/";
var world = new OpenLayers.Bounds(-180, -90, 180,
90).transform(geographic, mercator);
var options = {
projection: mercator,
displayProjection: geographic,
units: "m",
numZoomLevels: 20,
maxExtent: world,
maxResolution: "auto",
controls : [
new OpenLayers.Control.LoadingPanel(),
new OpenLayers.Control.Navigation(),
new OpenLayers.Control.PanZoomBar(),
new OpenLayers.Control.ArgParser()
]
};
map = new OpenLayers.Map("report:mapForm:map", options);
var openStreetMap = new OpenLayers.Layer.OSM();
var wmsLayerOptions = {
srs: "EPSG:900913",
transparent: "true",
layers: "mmw:zipcode",
styles: "zipcode-regex",
};
var wmsLayer = new OpenLayers.Layer.WMS.Post(
"WMS",
"http://server/wms?",
wmsLayerOptions,
{
singleTile: true,
ratio: 1,
unsupportedBrowsers: []
}
);
map.addLayers([openStreetMap, wmsLayer]);
map.setCenter(new OpenLayers.LonLat(0, 0));
}}}
--
Ticket URL: <http://trac.openlayers.org/ticket/3376#comment:3>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list