예제 #1
0
        public GlobeTile CreateTile(Transform parent, Wmts coords)
        {
            GameObject tileGo = Instantiate(tileTemplate);

            tileGo.transform.SetParentClearRelativeTransform(parent);
            tileGo.name = coords.ToString();

            GlobeTile tile = tileGo.GetComponent <GlobeTile>();

            tile.coords = coords;
            tile.globe  = globe;
            tile.bBox   = Layer.Wmts2DefaultBbox(coords);
            tile.SetVisible(false);
            return(tile);
        }
예제 #2
0
        private void CreateTile(GlobeTile parent, Wmts coords)
        {
            GameObject tileGo = Instantiate(tileTemplate);

            tileGo.transform.SetParentClearRelativeTransform(parent.transform);
            tileGo.name = coords.ToString();

            GlobeTile tile = tileGo.GetComponent <GlobeTile>();

            tile.coords = coords;
            tile.globe  = globe;
            tile.bBox   = globe.CurrentLayer.Wmts2Bbox(coords);

            tile.SetVisible(false);

            parent.AddChild(tile);
        }