<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hello,<br><br>I think this link may help you about 1 and 2: http://gis.stackexchange.com/questions/26030/sometimes-a-white-square-dialogue-appears-in-the-middle-of-the-screen-map-data<br><br>I think 3 is because of the projection, google maps only works with 900913, so you have to add a line, if I remember well, almost at the end of your <script> tag to do the conversion, or it is something about proj, not sure because Im writing from memory, take a look here anyway: http://docs.openlayers.org/library/spherical_mercator.html<br><br>Hope this helps, cheers :)<br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: smaran.harihar@gmail.com<br>Date: Wed, 23 May 2012 11:52:51 -0700<br>To: openlayers-users@lists.osgeo.org<br>Subject: [OpenLayers-Users] Pink broken images<br><br><div>Hi,</div><div><br></div>I am trying to create a base map of OSM, Google Roadmap and Google Hybrid and mash it up with my own base layers in Geoserver. So these are the problems I am facing,<div>
<br></div><div>1. I have two WMS that I am mashing up, on which is BaseLayer and another one is 'isBaseLayer' : false. The one with base layer is appearing as pink tiles with broken image and the 'isBaseLayer': false is rending perfectly over OSM, GoogleMaps. Any reason y? I have changed the projections using the following code,</div>
<div><br></div><div><div>var geographic = new OpenLayers.Projection("EPSG:4326");</div><div><span style="white-space:pre-wrap">                        </span>var mercator = new OpenLayers.Projection("EPSG:900913");</div>
<div><span style="white-space:pre-wrap">                        </span>var world = new OpenLayers.Bounds(-180, -60, 180, 90).transform(geographic, mercator);</div><div><span style="white-space:pre-wrap">                        </span>//var center = new OpenLayers.LonLat(-104.98, 39.76).transform(geographic, mercator);</div>
<div><span style="white-space:pre-wrap">                        </span>var options = {</div><div><span style="white-space:pre-wrap">                                </span>projection : mercator,</div><div><span style="white-space:pre-wrap">                                </span>units : "m",</div>
<div><span style="white-space:pre-wrap">                                </span>maxExtent : world</div><div><span style="white-space:pre-wrap">                        </span>};</div><div><br></div><div><span style="white-space:pre-wrap">                        </span>var map = new OpenLayers.Map("map-id", options);</div>
</div><div><br></div><div>2. Since I have added the Google Maps and I am using v3.2, there is this splash screen appears every time the map loads or if i pan it around. How can i remove that screen? I close it by clicking on the cross and then again pan or click on the map and there it is again.</div>
<div><br></div><div>3. When I had initially added my two baselayers, the map control which got the lat and lon was giving the right co-ordinates but when I added the OSM and GMaps, the co-ordinates are completely different. Why is that? Is it because of the spherical Mercator? How can I make it right?</div>
<div><br clear="all"><div><br></div>-- <br>Thanks & Regards<div>Smaran Harihar</div><br>
</div>
<br>_______________________________________________
Users mailing list
Users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users</div>                                            </div></body>
</html>