Is your marker projected?<br><br>If not, see <a href="http://crschmidt.net/~crschmidt/spherical_mercator.html#reprojecting-points">http://crschmidt.net/~crschmidt/spherical_mercator.html#reprojecting-points</a>.<br><br>Xin<br>
<br>ps. It's good to see another Chinese on here<br><br><div><span class="gmail_quote">On 21/03/2008, <b class="gmail_sendername">Yang Zhaohui</b> <<a href="mailto:yangzhaozhao2008@163.com">yangzhaozhao2008@163.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div> </div>
<div>Hello dear evryone,<br> A problem is boring me for a long time. I have a shapefile with Xi'an 1980 Gauss-Kruger projected coordinate system. I have added it into Geoserver1.5.3. So I can visit in EPSG:4326(WGS84) and in EPSG:2345(Xi'an80). But When I want to add a marker layer to a Openlayers map (This time the projected coordinate system of the map is EPSG:2345), it cannot diasplay.Could you please give me some suggestion?Thank you very much!<br>
</div>
<div>"...<br>map = new OpenLayers.Map('map', {controls:[], 'projection': 'EPSG:23345', 'units':'m'}); <br>...<br>var markers = new OpenLayers.Layer.Markers("标注搜索");</div>
<div> </div>
<div>markers.setVisibility(true);<br> <br>map.addLayer(markers);<br> <br>marker= new OpenLayers.Marker(new OpenLayers.LonLat(456144.21976956,360540.12626545), <br> new OpenLayers.Icon("image/marker.png",new OpenLayers.Size(10,15))<br>
); <br> <br>markers.addMarker(marker); </div>
<div>"<br> Sincerely yours,<br> Yang </div>
<div> </div>
<div> </div><br><br>
<hr>
<font style="font-size: 12px; line-height: 15px;">1分钟,让眼睛</font><a style="font-size: 12px; line-height: 15px; color: blue; text-decoration: underline;" href="http://popme.163.com/link/004087_0313_2359.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">享受春天的清润SPA</a><br>
_______________________________________________<br>
Users mailing list<br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br>