Example #1
0
        public void init(CameraManager cm)
        {
            m_cameraManager = cm;

            m_layersManager = new LayersManager(this);

            LayerBasicMap lbm = new LayerBasicMap(this, cm);
            if(!Project.drawRelief)
            {
                lbm.Enabled = false;
            }
            m_layersManager.Add(lbm);

            LayerTerraserver lts = new LayerTerraserver(this, cm);
            if(!Project.drawTerraserver)
            {
                lts.Enabled = false;
            }
            m_layersManager.Add(lts);

            LayerTerraserver lts2 = new LayerTerraserver(this, cm);
            if(!Project.drawTerraserver)
            {
                lts2.Enabled = false;
            }
            m_layersManager.Add(lts2);

            LayerCustomMaps lcm = new LayerCustomMaps(this, cm);
            if(!Project.drawCustomMaps)
            {
                lcm.Enabled = false;
            }
            m_layersManager.Add(lcm);

            LayerEarthquakes le = new LayerEarthquakes(this, cm);
            if(!Project.drawEarthquakes)
            {
                le.Enabled = false;
            }
            m_layersManager.Add(le);

            LayerWaypoints lw = new LayerWaypoints(this, cm);
            if(!Project.drawWaypoints)
            {
                lw.Enabled = false;
            }
            m_layersManager.Add(lw);

            LayerVehicles lv = new LayerVehicles(this, cm);
            if(!Project.drawVehicles)
            {
                lv.Enabled = false;
            }
            m_layersManager.Add(lv);

            m_layersManager.Add(m_cameraManager);	// camera manager is a layer too - draws camera and arrows
        }
Example #2
0
        public void init(CameraManager cm)
        {
            m_cameraManager = cm;

            m_layersManager = new LayersManager(this);

            LayerBasicMap lbm = new LayerBasicMap(this, cm);

            if (!Project.drawRelief)
            {
                lbm.Enabled = false;
            }
            m_layersManager.Add(lbm);

            LayerTerraserver lts = new LayerTerraserver(this, cm);

            if (!Project.drawTerraserver)
            {
                lts.Enabled = false;
            }
            m_layersManager.Add(lts);

            LayerTerraserver lts2 = new LayerTerraserver(this, cm);

            if (!Project.drawTerraserver)
            {
                lts2.Enabled = false;
            }
            m_layersManager.Add(lts2);

            LayerCustomMaps lcm = new LayerCustomMaps(this, cm);

            if (!Project.drawCustomMaps)
            {
                lcm.Enabled = false;
            }
            m_layersManager.Add(lcm);

            LayerEarthquakes le = new LayerEarthquakes(this, cm);

            if (!Project.drawEarthquakes)
            {
                le.Enabled = false;
            }
            m_layersManager.Add(le);

            LayerWaypoints lw = new LayerWaypoints(this, cm);

            if (!Project.drawWaypoints)
            {
                lw.Enabled = false;
            }
            m_layersManager.Add(lw);

            LayerVehicles lv = new LayerVehicles(this, cm);

            if (!Project.drawVehicles)
            {
                lv.Enabled = false;
            }
            m_layersManager.Add(lv);

            m_layersManager.Add(m_cameraManager);               // camera manager is a layer too - draws camera and arrows
        }