Exemplo n.º 1
0
        private void initMapMouseEvent()
        {
            m_czpCrt          = new ClsZizuPos();
            m_dZoomCenterX    = 0;
            m_dZoomCenterY    = 0;
            m_dZoomCenterTime = 1.0;
            m_dZoomTime       = 1.0;
            m_nZoomAddX       = 0;
            m_nZoomAddY       = 0;
            // 東京駅 (29105 - 29030 = 75, 12903 - 12878 = 24);
            // 35.6810583,139.7665742
            m_nMapBase   = 15;
            m_nMapTblIdx = m_nMapBase - 10;
            m_nCrtX      = (int)(75 - m_nWidthDiv);
            m_nCrtY      = (int)(24 - m_nHeightDiv);
            //  左最大
            //m_nCrtX = 4 - m_nWidthDiv;
            //m_nCrtY = 4 - m_nHeightDiv;
            //m_nCrtX = 91 - m_nWidthDiv;
            //m_nCrtY = 47 - m_nHeightDiv;
            //m_nCrtX = 4 - m_nWidthDiv;
            //m_nCrtY = 8 - m_nHeightDiv;
            //m_nCrtX = 10 - m_nWidthDiv;
            //m_nCrtY = 4 - m_nHeightDiv;
            //m_nCrtX = 91 - m_nWidthDiv;
            //m_nCrtY = 26 - m_nHeightDiv;
            //m_nCrtX = 52 - m_nWidthDiv;
            //m_nCrtY = 47 - m_nHeightDiv;
            m_nAddX = -m_nWidthDiv * Constants.MAPDOTSIZE;
            m_nAddY = -m_nHeightDiv * Constants.MAPDOTSIZE;

            loadCrtTizuPos();
        }
Exemplo n.º 2
0
        private void loadCrtTizuPos()
        {
            Type   type;
            string sXmlFile;

            sXmlFile = m_sEnvPath + "\\TizuPos.xml";
            if (File.Exists(sXmlFile))
            {
                type         = typeof(ClsZizuPos);
                m_czpCrt     = (ClsZizuPos)m_libCmn.DataXmlLoad(sXmlFile, type);
                m_nMapBase   = m_czpCrt.m_nZoomLevel;
                m_dZoomTime  = m_czpCrt.m_nZoomTime;
                m_nCrtX      = m_czpCrt.m_nTopPageX;
                m_nCrtY      = m_czpCrt.m_nTopPageY;
                m_nAddX      = m_czpCrt.m_nOffsetX;
                m_nAddY      = m_czpCrt.m_nOffsetY;
                m_nMapTblIdx = m_nMapBase - 10;
            }
        }