<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; ">Hi All, </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; ">I have generated 2 maps using mapserver , one of it is a world map.These two maps are working very well on all the browsers. And then, i took my world map coming from mapserver , googlemap as base layers in open layers and the other map which has polygon, line and point features as a overlay.This overlay is working fine with my world map , both are in EPSG:4326. But when i overlay it on google map , i can see a shift and shift changes as i zoomin and out. Thinking that it is projection problem, i have added below code
to my template </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; ">1. var options = { </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "> projection: new OpenLayers.Projection("EPSG:900913"), </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "> displayProjection: new OpenLayers.Projection("EPSG:4326") </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif;
font-size: 13px; "> units: "m", </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "> maxResolution: 156543.0339, </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "> maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "> 20037508.34, 20037508.34) </span><br
style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "> }; </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; ">2. map.setCenter(new OpenLayers.LonLat(-98, 38) </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; ">.transform(new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913")),4) </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; ">)); </span><br
style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; ">After adding the above code, my map's are visible as a dot. </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; ">Can anyone tell me how to overlay properly my EPSG:4326 map over EPSG:900913. </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif;
font-size: 13px; ">Awaiting reply. </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; ">Neelima</span> </span></div><div> </div><div>Neelima</div></div></body></html>