Ejemplo n.º 1
0
        /// <summary>
        /// Adds the query-by-map-location display to the query terms list
        /// </summary>
        private void AddQbLDisplay()
        {
            if (qbl != null)
            {
                RemoveQbL();
            }

            qbl = Instantiate(QbLDisplayPrefab);
            AttachToScroll(qbl);
            QbLDisplay disp = qbl.GetComponent <QbLDisplay>();

            if (disp != null)
            {
                disp.builder    = this;
                disp.title.text = "Map Location";
                disp.DisplayLocation(location.latitude, location.longitude);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Adds the query-by-current-position display to the query terms list
        /// </summary>
        public void AddQbP()
        {
            if (qbl != null)
            {
                RemoveQbL();
            }

            qbl = Instantiate(QbLDisplayPrefab);
            AttachToScroll(qbl);
            QbLDisplay disp = qbl.GetComponent <QbLDisplay>();

            if (disp != null)
            {
                disp.title.text = "Current Position";
                disp.builder    = this;
                disp.DisplayLocation(GetCurrentLatitude(), GetCurrentLongitude());
                SetLocationTerm(GetCurrentLatitude(), GetCurrentLongitude());
            }
        }