based map follow layer wms tiled
- by user32263
hye all,
im new in openlayer, just want to ask, i want to develop one system i already get layer from geoserver using wms services; this is the code:
var hilirPerak = new OpenLayers.Layer.WMS("hilirPerak",
"http://localhost:8080/geoserver/hilirPerak/wms", { workspace: 'hilirPerak', layers: 'hilirPerak:lot', styles:'', format: 'image/png', tiled: true, transitionEffect: 'resize', units: 'degrees'
},
{
maxResolution: 1000,
singleTile: false,
ratio:1,
isBaseLayer:false,
tilesOrigin : map.maxExtent.left + ',' + map.maxExtent.bottom,
buffer: 0,
visibility:true,
maxExtent: OpenLayers.Bounds.fromString("3.873635,4.074956,101.14974"),
//ratio: 1.9,
//buffer: 0,
//displayOutsideMaxExtent: true,
//isBaseLayer: true,
yx : {'EPSG:4326' : true},
displayOutsideMaxExtent: true,
transparent:true
}
);
its show on system, for based map im using google, but the problem is, when i tick check layer, the based map follow size layer. if the layer point at certain place, based map follow layer bounds.
please help me..
Thank you