<div><br></div><div><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(121, 6, 25); font-weight: bold; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br>
</span></div><div>Thanks for the reply,</div><div>here is the code which i used with static map, but the longitued and latitude i got is incorrect or sometime i couldnot even get any image loaded on the canvas.</div><div>
<br></div><div>function init(){</div><div> map = new OpenLayers.Map('map');</div><div> var options = { numZoomLevels: 5 };</div><div> var olbound = new OpenLayers.Bounds(15.865164, 58.172783, 16.651403, 58.620233); //bounds(left,buttom,right,top)</div>
<div> </div><div> </div><div> var topograpy = new OpenLayers.Layer.Image(</div><div> 'Wrap signals',</div><div> 'img/image.24.png', olbound,</div>
<div> new OpenLayers.Size(1000, 1000), //size in pixel of the map</div><div> options); </div><div><br></div><div> map.setCenter(new OpenLayers.LonLat(58.406794, 16.23069), 3);<br>
</div><div> }</div><div><br></div><div>I will be thankful, if somebody can help me with this problem.</div><div><br></div><div><br></div><div><br></div><div>Hi,<br>> I had seen your posts and replies in this forum, which is impressive and<br>
> helped me lot as well while using openlayer.<br>> Actaully i am new to openlayer and i am using static map image(jpg) of my<br>> city but i could not get correct long/lat value since i use map of very<br>> small city, i try to fix it through<br>
> OpenLayers.Bounds(15.865164, 58.172783, 16.651403, 58.620233) and i set the<br>> centre long/lat as 0,0 which is not workin then i set them in to its real<br>> long/lat that is also not working.<br>> is there any method which i didn't understood to make static map of my city<br>
> with long/lat value.<br>><br>> The concept that i follow for Bounds and centre are:<br>><br>><br>> -------------------------------------(long1, lat1)<br>> | |<br>
> | image (lon,lat) |<br>> (long2,lat2)-------------------------------------<br>><br>> i would be very thankful if you could help me.<br>><br>> regards,<br>> nabin<br></div>
<div><br></div><div> </div>