Coordinates position problem in zoom

May 9, 2009 at 1:35 AM

Hi

I have this function that set points in a map's layer

 

 

 

 

 

 

 

<font size="2">

 

</font>

 

void coloca_Marcador(double latitud, double longitud)

{

<font size="2">

 

</font>

 

<font size="2">

 

</font>

 

         Point punto = new Point();<font size="2">

 

</font>

 

        Point punto1 = new Point();<font size="2">

        punto = map.CoordHelper.GeoToPixel(

</font>

new Point(latitud, longitud));<font size="2">

        punto1 = map.CoordHelper.PixelToGeo(

</font>

new Point(punto.X , punto.Y));<font size="2">

 

</font>

 

        var myPoint = new MyPoint { LabelTextLat = latitud.ToString(), LabelTextLon = longitud.ToString(),  Point = new Point(punto1.X, punto1.Y) };

       transformLayer.Add(myPoint);

}

When I zoom the map, the points moves to  a wrong position, (no maintain the correct latitude, longitude).

Any Ideas?

Thanks

Alejandro

<font size="2">

 

</font>

 

 

May 9, 2009 at 1:40 AM

<font size="2">

 

</font>

 

Aclaration:

The <font size="2"> and </font>  that appears in my original mail are no a part of the funcion's code, there was an error ot the page.