[OpenLayers-Users] Cannot add markers to a map in EPSG:2345
Yang Zhaohui
yangzhaozhao2008 at 163.com
Fri Mar 21 00:55:37 EDT 2008
Hello dear evryone,
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!
"...
map = new OpenLayers.Map('map', {controls:[], 'projection': 'EPSG:23345', 'units':'m'});
...
var markers = new OpenLayers.Layer.Markers("±ê×¢ËÑË÷");
markers.setVisibility(true);
map.addLayer(markers);
marker= new OpenLayers.Marker(new OpenLayers.LonLat(456144.21976956,360540.12626545),
new OpenLayers.Icon("image/marker.png",new OpenLayers.Size(10,15))
);
markers.addMarker(marker);
"
Sincerely yours,
Yang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080321/fa8a2421/attachment.html
More information about the Users
mailing list