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
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users