<!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> </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> </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> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial>
<script></FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial> var map,
layer;</FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial>
var P4326 = new
OpenLayers.Projection("EPSG:4326");<BR> var P900913 = new
OpenLayers.Projection("EPSG:900913");</FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2
face=Arial> function init() {</FONT></DIV>
<DIV> </DIV><FONT color=#0000ff size=2 face=Arial>
<DIV dir=ltr align=left><BR> map = new
OpenLayers.Map("map_id", { projection: P900913
});<BR> var mapnik = new
OpenLayers.Layer.OSM();</DIV>
<DIV> </DIV>
<DIV dir=ltr align=left>
map.addLayer(mapnik);<BR>
map.setCenter(new OpenLayers.LonLat(0,0), 3) ;</DIV>
<DIV> </DIV>
<DIV dir=ltr align=left>
map.addControl(new OpenLayers.Control.Graticule());</DIV>
<DIV> </DIV>
<DIV dir=ltr align=left> var markers =
new OpenLayers.Layer.Markers( "Markers"
);<BR> var size = new
OpenLayers.Size(21,25);<BR> var offset
= new OpenLayers.Pixel(-(size.w/2), -size.h);</DIV>
<DIV> </DIV>
<DIV dir=ltr align=left>
map.addLayer(markers);</DIV>
<DIV> </DIV>
<DIV dir=ltr align=left> var icon0 =
new OpenLayers.Icon('http://www.openlayers.org/dev/img/marker.png', size,
offset);<BR> var icon1 = new
OpenLayers.Icon('http://www.openlayers.org/dev/img/marker-blue.png', size,
offset);</DIV>
<DIV> </DIV>
<DIV dir=ltr align=left> var m1 = new
OpenLayers.Marker(new
OpenLayers.LonLat(0,0),icon0);<BR> var
m2 = new OpenLayers.Marker(new
OpenLayers.LonLat(40,20).transform(P4326,P900913),icon1);</DIV>
<DIV> </DIV>
<DIV dir=ltr align=left>
markers.addMarker(m1);<BR>
markers.addMarker(m2);</DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><BR>
}<BR> </script><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> </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, </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>
to explain the issue.</DIV>
<DIV> 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>