|
Hi,
I'm trying to change the position of a shape on the server in the OnClick eventwitouth success. This is my code:
protected void Map1_OnClick(object sender, AsyncMapEventArgs e)
{
if (e.leftMouseButton)
{
if (CurrentUser.SelectedStationID.HasValue)
{
// Change Pushpin on screen
if (Map1.Layers.Count > 0)
{
if (Map1.Layers[0].Shapes.Count > 0)
{
Shape s = Map1.Layers[0].Shapes[0];
s.LatLong.Latitude = e.latlong.Latitude;
s.LatLong.Longitude = e.latlong.Longitude;
}
}
|