Monday, April 5, 2010

No Need To Add Scroll Offset

No Need To Add Scroll Offset In OpenLayer For Controls On Map--> Just Set The Map At The Center While Doing Operations

var center = new OpenLayers.LonLat(78, 22);
    var proj = new OpenLayers.Projection("EPSG:4326");
    center.transform(proj, map.getProjectionObject());
    map.setCenter(center);

No comments:

Post a Comment