public void SetMapSize()
        {
            Layer TopLayer = GetTopLayer();

            if (TopLayer != null)
            {
                for (int i = 0; i < GeometryList.Count(); i++)
                {
                    if (!(GeometryList.ElementAt(i).Key == (Name + "Selector")))
                    {
                        GeometryList.ElementAt(i).Value.TX = 1.0f / Scale * AX;
                        GeometryList.ElementAt(i).Value.TY = 1.0f / Scale * AY;

                        GeometryList.ElementAt(i).Value.TSX = 1.0f / Scale;
                        GeometryList.ElementAt(i).Value.TSY = 1.0f / Scale;

                        //GeometryList.ElementAt(i).Value.TX = (float)1.0 / TopLayer.TileSizeX / Scale * AX;
                    }
                    else
                    {
                    }

                    //GeometryList.ElementAt(i).Value.PX = 0;
                    //GeometryList.ElementAt(i).Value.PY = 0;
                    //GeometryList.ElementAt(i).Value.SX = SX * ScreenWidth * Scale;
                    //GeometryList.ElementAt(i).Value.SY = SY * ScreenHeight * Scale;

                    //GeometryList.ElementAt(i).Value.TX = AX * TX / Scale;
                    //GeometryList.ElementAt(i).Value.TY = AY * TY / Scale;
                }
            }
        }