[OpenLayers-Users] Cannot add markers to a map in EPSG:2345

Xin xin at zenpow.com
Sun Mar 23 07:32:22 EDT 2008


Is your marker projected?

If not, see
http://crschmidt.net/~crschmidt/spherical_mercator.html#reprojecting-points.

Xin

ps. It's good to see another Chinese on here

On 21/03/2008, Yang Zhaohui <yangzhaozhao2008 at 163.com> wrote:
>
>
> 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
>
>
>
>
> ------------------------------
> 1·ÖÖÓ£¬ÈÃÑÛ¾¦ÏíÊÜ´ºÌìµÄÇåÈóSPA <http://popme.163.com/link/004087_0313_2359.html>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080323/e1bd34d5/attachment.html


More information about the Users mailing list