<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19088"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=484105219-04082011>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=484105219-04082011></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=484105219-04082011>OSM layer are displayed in the projection EPSG:900913. 
You have to transform your coordinates from EPSG:4326 to 
EPSG:900913.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=484105219-04082011></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=484105219-04082011>Arnd</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=484105219-04082011></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial>&nbsp;&nbsp;&nbsp; 
&lt;script&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial>&nbsp;var map, 
layer;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial>&nbsp;&nbsp;&nbsp; 
var P4326&nbsp;&nbsp; = new 
OpenLayers.Projection("EPSG:4326");<BR>&nbsp;&nbsp;&nbsp; var P900913 = new 
OpenLayers.Projection("EPSG:900913");</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 
face=Arial>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function init() {</FONT></DIV>
<DIV>&nbsp;</DIV><FONT color=#0000ff size=2 face=Arial>
<DIV dir=ltr align=left><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map = new 
OpenLayers.Map("map_id", { projection: P900913 
});<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var mapnik = new 
OpenLayers.Layer.OSM();</DIV>
<DIV>&nbsp;</DIV>
<DIV dir=ltr align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
map.addLayer(mapnik);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
map.setCenter(new OpenLayers.LonLat(0,0), 3) ;</DIV>
<DIV>&nbsp;</DIV>
<DIV dir=ltr align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
map.addControl(new OpenLayers.Control.Graticule());</DIV>
<DIV>&nbsp;</DIV>
<DIV dir=ltr align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var markers = 
new OpenLayers.Layer.Markers( "Markers" 
);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var size = new 
OpenLayers.Size(21,25);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var offset 
= new OpenLayers.Pixel(-(size.w/2), -size.h);</DIV>
<DIV>&nbsp;</DIV>
<DIV dir=ltr align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
map.addLayer(markers);</DIV>
<DIV>&nbsp;</DIV>
<DIV dir=ltr align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var icon0 = 
new OpenLayers.Icon('http://www.openlayers.org/dev/img/marker.png', size, 
offset);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var icon1 = new 
OpenLayers.Icon('http://www.openlayers.org/dev/img/marker-blue.png', size, 
offset);</DIV>
<DIV>&nbsp;</DIV>
<DIV dir=ltr align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var m1 = new 
OpenLayers.Marker(new 
OpenLayers.LonLat(0,0),icon0);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var 
m2 = new OpenLayers.Marker(new 
OpenLayers.LonLat(40,20).transform(P4326,P900913),icon1);</DIV>
<DIV>&nbsp;</DIV>
<DIV dir=ltr align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
markers.addMarker(m1);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
markers.addMarker(m2);</DIV>
<DIV>&nbsp;</DIV>
<DIV dir=ltr align=left><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp; &lt;/script&gt;<BR></FONT></DIV><BR>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> openlayers-users-bounces@lists.osgeo.org 
[mailto:openlayers-users-bounces@lists.osgeo.org] <B>Im Auftrag von </B>Chatur 
Patil<BR><B>Gesendet:</B> Donnerstag, 4. August 2011 19:53<BR><B>An:</B> 
openlayers-users@lists.osgeo.org<BR><B>Betreff:</B> [OpenLayers-Users] Need your 
Help: Overlapping Markers even after having different LATITUDE and 
LONGITUDE<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Dear Users,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Re-sending as I received a failure delivery .</DIV>
<DIV><BR></DIV>
<DIV>I am facing a unique problem with overlapping marker Icons, in-spite 
placing them at different LATITUDE and LONGITUDE.</DIV>
<DIV><BR></DIV>
<DIV>I am using OSM Layer for the map. When I add multiple markers they are 
placed one over the other even though there is change in latitude and 
longitude.</DIV>
<DIV>Issue is that the markers are placed centrally on the map irrespective of 
the specified latitude and longitude. I have just attached the whole HTML file 
for reference.</DIV>
<DIV><BR></DIV>
<DIV>There is no much coding in the attached file, its very simple (just create 
the map and add 2 markers)</DIV>
<DIV><BR></DIV>
<DIV>Could you please tell me If I am doing anything wrong. I have tried all 
possible ways.</DIV>
<DIV><BR></DIV>
<DIV>Your help is much appreciated.</DIV>
<DIV>Many Thanks,&nbsp;</DIV>
<DIV>Chatur</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>PS: I raised a bug ticket <A 
href="http://trac.osgeo.org/openlayers/ticket/3450#comment:2">http://trac.osgeo.org/openlayers/ticket/3450#comment:2</A> 
&nbsp;to explain the issue.</DIV>
<DIV>&nbsp; &nbsp; &nbsp; Indication was tha,t it could be something to do with 
the projections, hence I removed all projections and still face the same issue 
:(</DIV></BODY></HTML>