|
@@ -642,8 +642,11 @@ public static class MapControlEx
|
|
Tag = item,
|
|
Tag = item,
|
|
Location = new GeoPoint(item.PosLat, item.PosLon)
|
|
Location = new GeoPoint(item.PosLat, item.PosLon)
|
|
};
|
|
};
|
|
- innerData._dataCache.Add(item, mapItem);
|
|
|
|
- innerData.posStorge.Items.Add(mapItem);
|
|
|
|
|
|
+ if (!innerData._dataCache.ContainsKey(item))
|
|
|
|
+ {
|
|
|
|
+ innerData._dataCache.Add(item, mapItem);
|
|
|
|
+ innerData.posStorge.Items.Add(mapItem);
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -3052,8 +3055,8 @@ public static class MapControlEx
|
|
{
|
|
{
|
|
suffix = ".jpg";
|
|
suffix = ".jpg";
|
|
}
|
|
}
|
|
- int maxY=(int)Math.Pow(2, zoomLevel);
|
|
|
|
- imgUrl = $"{HttpServerAddr}/{LayerName}/{zoomLevel}/{tilePositionX}/{maxY-tilePositionY}{suffix}";
|
|
|
|
|
|
+ int maxY = (int)Math.Pow(2, zoomLevel);
|
|
|
|
+ imgUrl = $"{HttpServerAddr}/{LayerName}/{zoomLevel}/{tilePositionX}/{maxY - tilePositionY}{suffix}";
|
|
}
|
|
}
|
|
//string imgUrl = string.Format("http://192.168.0.214:58089/{0}/{1}/{2}/{3}", (int)GoogleMapType.Normal, zoomLevel, tilePositionX, tilePositionY);
|
|
//string imgUrl = string.Format("http://192.168.0.214:58089/{0}/{1}/{2}/{3}", (int)GoogleMapType.Normal, zoomLevel, tilePositionX, tilePositionY);
|
|
Uri u = new Uri(imgUrl);
|
|
Uri u = new Uri(imgUrl);
|