internal void SetElementReference(FeatureElement element)
{
if (element == null)
{
this.ElementReference = null;
}
else
{
this.ElementReference = new WeakReference(element);
Canvas.SetZIndex(element, this.zIndex);
if (this.geometry != null)
{
SuperMap.WindowsPhone.Mapping.LayerContainer.SetBounds(element, this.geometry.Bounds);
}
}
}