{
transformation = ".transform(new OpenLayers.Projection(\"" +
map.getBusinessLogicProjection() + "\"), " + map.getJSinvokeNoLineEnd("map") +
".getProjectionObject())";
}
Constructor constructor = new Constructor("OpenLayers.Marker").add(lonLat.getJSconstructor() +
transformation);
if (icon != null)
{
constructor.add(icon.getId());
}
return constructor.toJS();
}