based map follow layer wms tiled

Posted by user32263 on Stack Overflow See other posts from Stack Overflow or by user32263
Published on 2014-06-11T09:21:28Z Indexed on 2014/06/11 9:24 UTC
Read the original article Hit count: 240

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about openlayers

Related posts about geoserver