2011/12/22 Pierre Muckensturm <[email protected]>

>  markers.addMarker(new
> OpenLayers.Marker(OpenLayers.Projection.transform(
> OpenLayers.Point(775133.95,6907235.95),
> EPSG:2154,EPSG:900913),icon2);
>

Pierre,

The transform() receive the from and to Projection object, not the string
name of the projection.

Try something like this:
 markers.addMarker(new
OpenLayers.Marker(OpenLayers.Projection.transform(
OpenLayers.Point(775133.95,6907235.95),
new OpenLayers.Projection('EPSG:2154'), new
OpenLayers.Projection('EPSG:900913')),icon2);


bon chance,

Fernando G. Norte
BHte - MG - Brazil
cel: +55 31 9119 8814
-------------------------
MSN e Gtalk # [email protected]
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to