コード例 #1
0
ファイル: LayerMenu.cs プロジェクト: WojciechPakula/TMC_PG
    public void buttonPlus()
    {
        string wybrane = listaRozwijana.captionText.text;

        Debug.Log(wybrane);
        GISlayer l = null;

        switch (wybrane)
        {
        case "Testowa":
            l = new GISlayerTest();
            break;

        case "Open Street Map":
            l = new GISlayerOSM();
            break;

        case "Bing":
            l = new GISlayerBING();
            break;

        case "OSMXML":
            l = new GISlayerOSMXML();
            break;

        case "HeatMap":
            l = new GISlayerHeatMap();
            break;

        case "2137":
            l = new GISlayer2137();
            break;
        }
        if (l != null)
        {
            l.map = map;
            map.insertLayerAt(l);
        }
        foreach (Transform element in content.transform)
        {
            var button = element.GetComponentInChildren <Button>();
            if (button != null)
            {
                var te = button.GetComponentInChildren <Text>();
                Debug.Log(te.text);
            }
        }
    }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        GISlayer2137.loadResources();
        _destPool  = new Semaphore(1, 1);
        _dataPool  = new Semaphore(1, 1);
        _layerPool = new Semaphore(1, 1);
        //_cachePool = new Semaphore(1, 1);
        //_criticalSection = new Semaphore(1, 1);
        cam.orthographic = true;
        //ghostCameraPosition = new Vector2d(0,0);
        oldzoom = zoom;

        /*insertLayerAt(new GISlayerTest(),0);
         * var l = new GISlayerBING();
         * l.opacity = 0.5f;
         * insertLayerAt(l, 1);*/

        //layers.Add(new GISlayer2137());

        //layers.Add(new GISlayerOSM());
        //var l = new GISlayerBING();
        //l.opacity = 0.5f;
        //layers.Add(l);

        ghostCamera = new Vector3d(cam.transform.position.x, cam.transform.position.y, cam.transform.position.z);
        //doTestowania();
        setView(new Vector3d(0.551701101474401, 0.31931727845227, -1));
        startThread();

        //tu sa testy ktore musze usunac
        //Debug.Log("Init webtest");

        //var osmtest = new GISlayerOSM();
        //osmtest.renderSegment(0,0,1);

        //Debug.Log("Init zakonczony");
        //Bitmap bmp = new Bitmap(@"c:\tmp\BING.1.0.0.png");
        //Debug.Log("Init zakonczony bardziej");
        stworzFolder(GISparser.webImagesPath);
    }