yes of course, i have tried that like this ..

/**
 * Class for iQuery (Tool Tips)
 */
PM.QueryIQuery = PM.Class(PM.Query, {
        
        getActiveMsGroups: function(){
        return [PM.UI.QuerySelectBox.selectedItem];
    },
    
    
    /**
     * Display result in DIV and postion it correctly
     * @param 
     */
    showResult: function(queryResult) {
        // Show in deafult query window if not defined differently
        if (PM.QueryConfig.iQueryResultDefaultDisplay) {
                PM.Query.prototype.showResult.apply(this, arguments);
        } else {
        
                // console.log(queryResult);
                var self = this;
                        var iQL = $('#iqueryContainer');
            // iQL.css('height','auto');
            // iQL.css('top','0px');
                        
                        if (queryResult) {
                                var IQueryResult = 
self.parseResult(queryResult, 'iquery', false);
                        } else {
                                return false;
                        }
                        var mapCont = $('#map');
        
                        if (PM.QueryConfig.iqueryFollowMouse){
                                // border limits
                                var limitRG = mapCont.iwidth() - iQL.iwidth() - 
4; // Right
                                var limitLF = 0;                // Left
                                var limitTP = 0;                // Top
                                
                var limitDN = mapCont.iheight() - iQL.iheight() - 4;    //
Down
                                var moveX = PM.ZoomBox.x;
                                var moveY = PM.ZoomBox.y;
        
                                //gap between mouse pointer and iqueryLayer:
                                var gap = 10;
                       // console.log('width:'+iQL.iwidth());
                                // // right:
                                if (moveX >= limitRG){
                                        iQL.css({'left': moveX - iQL.iwidth() - 
gap +'px'});
                                } else {
                                        iQL.css({'left': +moveX + gap +'px'});
                                }
        
                                // // down:
                                if (moveY >= limitDN){
                                        iQL.css({'top': moveY - iQL.iheight() - 
gap + 'px'});
                                } else {
                                        iQL.css({'top': moveY + gap +'px'});    
      
                                }

                // iQL.css('left',moveX + gap +'px');
                // iQL.css('top',moveY + gap +'px');
                // console.log(IQueryResult);
        
                                if (IQueryResult) {
                                        
                                        
                    $('#iqueryContainer').html(IQueryResult).showv().show();
                    setTimeout(this.hideIQL,10000);
                                        // this.startCount();
                                } else {
                                        iQL.html('').height(0).hidev().hide();
                    // console.log('no results');
                                        // clearTimeout(this.timer_t);
                                        // clearTimeout(this.iquery_timer);
                                }
               
                                // no follow, display on fixed position
                        } else {
                                if (IQueryResult) {
                                        iQL.html(IQueryResult).show();
                                } else {
                                        iQL.html('').hide();
                                }
                        }
        }
    },

    startCount: function(){
                    if(!this.iquery_timer) {
                        
                        this.iquery_timer = 1;
                       
                        this.timedCount();
                    }else
                    {
                        clearTimeout(this.timer_t);
                        //this.hideIQL();
                        this.timer_c =0;
                        this.iquery_timer = 0;
                        this.startCount();
                    }
    },
    /**
     * TIMER FOR OAUTO_IDENTIFY ACTION 
     * indicates for how much time the cursor remains firm on the map [by
Natalia]
     */
    timedCount: function() {  
       
        if (this.timer_c == 2){
             console.log('exit');
            clearTimeout(this.timer_t);
            console.log('stop '+this.timer_t);
            this.iquery_timer = 0;
            // this.hideIQL();
            $('#iqueryContainer').hidev().hide();
            this.timer_c = 0;
            
        }else{
            // console.log(this.timer_c);
            $('#iqueryContainer').html('IQueryResult').showv().show();
            this.timer_c += 1;
            this.timer_t = setTimeout(this.timedCount,1000);
            console.log('running '+this.timer_t);
        }
        
    },

    hideIQL: function(){
        // console.log('hide');
        // clearTimeout(this.iquery_timer);
        // this.timerW = -1;
        var iQL = $('#iqueryContainer');
        iQL.hidev().hide();
    },
    
    
        CLASS_NAME: "PM.QueryIQuery"
            
});




may be, it will help you.

suman



--
View this message in context: 
http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Pmapper5-iquery-window-type-tp4025709p4025710.html
Sent from the pmapper-users -- p.mapper users mailing list mailing list archive 
at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to