Hi,<br>Thanks for ur reply..but it didnt work with me.. I am posting the code of my map. Can u please edit it and send me the working code which comes with some specified place when we open it..:)<br>Ravi<br><br>&lt;html&gt;<br>

&lt;head&gt;<br>  &lt;script src=&quot;<a href="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAACEqFvKuI3jg904cT0XlYjhTpH3CbXHjuCVmaTc5MkkU4wO1RRhSu36OAUnbWUv-uMRvzw0s82T09xg" target="_top" rel="nofollow" link="external">http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAACEqFvKuI3jg904cT0XlYjhTpH3CbXHjuCVmaTc5MkkU4wO1RRhSu36OAUnbWUv-uMRvzw0s82T09xg</a>&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;    <br>

  &lt;title&gt;OpenLayers Example&lt;/title&gt;<br>    &lt;script<br>    src=&quot;/root/Desktop/OpenLayers-2.8-rc5/OpenLayers.js&quot;&gt;&lt;/script&gt;<br>    &lt;/head&gt;<br>    &lt;body&gt;<br>      &lt;div style=&quot;width:100%; height:100%&quot; id=&quot;map&quot;&gt;&lt;/div&gt;<br>

      &lt;script defer=&quot;defer&quot; type=&quot;text/javascript&quot;&gt;<br>        var map = new OpenLayers.Map(&#39;map&#39;);<br>        var wms = new OpenLayers.Layer.WMS( &quot;OpenLayers WMS&quot;, <br>            &quot;<a href="http://labs.metacarta.com/wms/vmap0" target="_top" rel="nofollow" link="external">http://labs.metacarta.com/wms/vmap0</a>&quot;, {layers: &#39;basic&#39;} );<br>

    var google = new OpenLayers.Layer.Google( &quot;Google&quot;, { type: G_HYBRID_MAP } );map.addLayer(google);<br>        map.addLayer(wms);<br>        map.zoomToMaxExtent();<br>      &lt;/script&gt;<br><br>&lt;/body&gt;<br>

&lt;/html&gt;<br><br><div class="gmail_quote">2010/5/17 Ramón Boza [via OSGeo.org] <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=5064217&i=0" target="_top" rel="nofollow">[hidden email]</a>&gt;</span><br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">

Hello,
<br><br>There are different approaches you can use to solve this.
<br><br>1) As you are looking to represent on a map a concrete projection, is to have the coordinates (BBox in latlon, center in latlon and zoom for googlemaps) hardcoded in like a datamodel of your app.
<br><br>So when you want to use them just map.setCenter(centerLatLon,zoomlvl,MapType.NORMAL_MAP_TYPE);
<br><br>2) When working with different coordinate systems, like myself (epsg:23031), when you want to transform that coordinates to google ones you have to use one functionality, implemented by yourself.
<br><br>googleLatLon = UTM2LatLon(myBBoxInUTM);
<br>zoomLvl = getZoomForGoogleBBox(googleLatLon);
<br><br>BTW it will not be stranger that someone implemented some webservice or so that given a name, like &#39;india&#39; returns you the information needed to its representation, google can have that webservice itself, really I always work with 23031 so didn&#39;t searched for.
<br><br>Ramón Boza
<br>Programador
<br></div><a href="http://user/SendEmail.jtp?type=node&amp;node=5063890&amp;i=0" rel="nofollow" target="_blank" link="external">[hidden email]</a> 
<br><div class="im"><br>Avda. Meridiana, 30-32 - 08018 Barcelona (Spain)
<br>Tel: +34 93 320 82 15 - Fax: +34 93 485 57 77
<br></div><a href="http://www.sitep.com" target="_blank" rel="nofollow" link="external">www.sitep.com</a> - <a href="http://user/SendEmail.jtp?type=node&amp;node=5063890&amp;i=1" rel="nofollow" target="_blank" link="external">[hidden email]</a>
<br><div class="im">  Abans d’imprimir aquest correu, assegura’t que és del tot necessari. El medi ambient és cosa de tots!
<br>AVISO DE CONFIDENCIALIDAD
<br><br>Este mensaje va dirigido, de manera exclusiva, a su destinatario y contiene información confidencial y sujeta al secreto profesional, cuya divulgación no está permitida por la ley. En caso de haber recibido este mensaje por error, le rogamos que, de forma inmediata, nos lo comunique mediante correo electrónico remitido a nuestra atención y proceda a su eliminación, así como a la de cualquier documento adjunto al mismo. Asimismo, le comunicamos que la distribución, copia o utilización de este mensaje, o de cualquier documento adjunto al mismo, cualquiera que fuera su finalidad, están prohibidas por la ley.
<br><br>INFORMACION RELATIVA A LA LOPD
<br><br>En cumplimiento de la Ley Orgánica 15/1999 de Protección de Datos de Carácter Personal (LOPD), le informamos de que sus datos de contacto han sido incorporados en ficheros titularidad de Sistemas de Información Territorial y Posicionamiento S.L., que responden a la finalidad de servir de directorio o agenda de contactos, así como para facilitar la gestión administrativa y comercial desarrollada por la empresa. Usted tiene la posibilidad de ejercer los derechos de acceso, rectificación, cancelación y oposición previstos en la ley, mediante carta dirigida a Sistemas de Información Territorial y Posicionamiento S.L., Ref. Protección de datos, C/Avda. Meridiana nº 30-32 Escalera B, Entresuelo 2ª, 08018-Barcelona.
<br><br>-----Mensaje original-----
<br></div>De: <a href="http://user/SendEmail.jtp?type=node&amp;node=5063890&amp;i=2" rel="nofollow" target="_blank" link="external">[hidden email]</a> [mailto:<a href="http://user/SendEmail.jtp?type=node&amp;node=5063890&amp;i=3" rel="nofollow" target="_blank" link="external">[hidden email]</a>] En nombre de Ravi Krishna
<br><div class="im">Enviado el: lunes, 17 de mayo de 2010 8:29
<br></div>Para: <a href="http://user/SendEmail.jtp?type=node&amp;node=5063890&amp;i=4" rel="nofollow" target="_blank" link="external">[hidden email]</a>
<br><div><div></div><div class="h5">Asunto: [OpenLayers-Users] How to display a specific place ?
<br><br><br>Hi,
<br>I am a beginner with Openlayers. I tried out the tutorials and could display
<br>maps from metacarta. Now i am trying to display google maps inside
<br>OpenLayers. i could display the google maps.., but how can i display a
<br>specif portion of map when it comes first. eg: how can i display India when
<br>it first shows.
<br>i will copy the code below :
<br><br>&lt;html&gt;
<br>&lt;head&gt;
<br>&lt;script src=&quot;/root/Desktop/OpenLayers-2.8-rc5/OpenLayers.js&quot;&gt;&lt;/script&gt;
<br>&lt;script type=&quot;text/javascript&quot;&gt;
<br> var map;
<br> function init() {
<br>map_controls = [ new OpenLayers.Control.OverviewMap(),new
<br>OpenLayers.Control.LayerSwitcher(),new OpenLayers.Control.PanZoomBar(),new
<br>OpenLayers.Control.MouseToolbar(),new
<br>OpenLayers.Control.KeyboardDefaults()];
<br>var map = new OpenLayers.Map(&#39;map&#39;, { controls: map_controls });
<br>var wms = new OpenLayers.Layer.WMS(
<br>&quot;Ravi&#39;s OpenLayers WMS&quot;,
<br>&quot;<a href="http://maps.google.com/maps/api/staticmap?center=63.259591,-144.667969&amp;zoom=6&amp;size=400x400" rel="nofollow" link="external" target="_blank">http://maps.google.com/maps/api/staticmap?center=63.259591,-144.667969&amp;zoom=6&amp;size=400x400</a>\
<br>&amp;markers=color:blue|label:S|62.107733,-145.541936&amp;markers=size:tiny|color:green|Delta+Junction,AK\&amp;markers=size:mid|color:0xFFFF00|label:C|Tok,AK&amp;sensor=false&quot;,{layers:
<br>&#39;basic&#39;});
<br>map.addLayers([wms]);
<br>map.zoomToMaxExtent();
<br>}
<br>&lt;/script&gt;
<br>&lt;/head&gt;
<br> &lt;body onload=&quot;init()&quot;&gt;
<br>&lt;div id=&quot;map&quot; style=&quot;width: 600px; height: 350px&quot;&gt;&lt;/div&gt;
<br>&lt;/body&gt;
<br><br>-- 
<br>View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/How-to-display-a-specific-place-tp5063850p5063850.html" rel="nofollow" link="external" target="_blank">http://osgeo-org.1803224.n2.nabble.com/How-to-display-a-specific-place-tp5063850p5063850.html</a><br>

Sent from the OpenLayers Users mailing list archive at Nabble.com.
<br>_______________________________________________
<br>Users mailing list
<br></div></div><a href="http://user/SendEmail.jtp?type=node&amp;node=5063890&amp;i=5" rel="nofollow" target="_blank" link="external">[hidden email]</a>
<br><div class="im"><a href="http://openlayers.org/mailman/listinfo/users" rel="nofollow" link="external" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br><br>Se certificó que el correo entrante no contiene virus.
<br>Comprobada por AVG - <a href="http://www.avg.es" target="_blank" rel="nofollow" link="external">www.avg.es</a> 
<br>Versión: 9.0.819 / Base de datos de virus: 271.1.1/2872 - Fecha de la versión: 05/16/10 20:26:00
<br><br><br></div>_______________________________________________
<br>Users mailing list
<br><a href="http://user/SendEmail.jtp?type=node&amp;node=5063890&amp;i=6" rel="nofollow" target="_blank" link="external">[hidden email]</a>
<br><div class="im"><a href="http://openlayers.org/mailman/listinfo/users" rel="nofollow" link="external" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
<br><br>
</div><hr color="#cccccc" noshade size="1">
<div style="color: rgb(102, 102, 102); font-family: tahoma,geneva,helvetica,arial,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal;">


View message @ <a href="http://osgeo-org.1803224.n2.nabble.com/How-to-display-a-specific-place-tp5063850p5063890.html" target="_blank" rel="nofollow" link="external">http://osgeo-org.1803224.n2.nabble.com/How-to-display-a-specific-place-tp5063850p5063890.html</a>

<br>To unsubscribe from How to display a specific place ?, <a target="_blank" rel="nofollow" link="external">click here</a>.
</div>
<br>
</blockquote></div><br>

<br><hr align="left" width="300">
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/How-to-display-a-specific-place-tp5063850p5064217.html">Re: How to display a specific place ?</a><br>
Sent from the <a href="http://osgeo-org.1803224.n2.nabble.com/OpenLayers-Users-f1822463.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br>