Jump to content

Onmouseover tooltip on map in detail view


Bartosz Dawida

Recommended Posts

I want to attach onmouseover event to listing titles to show map Tooltip in detail page - as it works on blogview page.

(in detail page I created map with nearby listings and list from the markers which are shown on the map, described  in this thread: http://www.reviewsforjoomla.com/forum/index.php?topic=13961.0)

 

I added class and id  to link in listing titles  exactly as in blogview page.

 

id="jr_listing[iD]" class="jr_listingTitle" 

 

and I coppied code from:

com_jreviews_addons/geomaps/views/themes/geomaps/geomaps/map_results_thtm

to:

com_jreviews_addons/geomaps/views/themes/geomaps/modules/geomaps.thtml

   

jQuery('.jr_listingTitle').each(function(i){
        jQuery('#'+this.id)
        .bind('mouseover',function(){
                GeomapsResults.panToCenter();
                var id = this.id.replace('jr_listing','');
                GeomapsResults.switchMarkerImageById(id,'_hover');
                GeomapsResults.showTooltipById(id);
                GeomapsResults.getStreetViewById(id);
        })
        .bind('mouseout',function(){
                var id = this.id.replace('jr_listing','');
                GeomapsResults.switchMarkerImageById(id,'');
                GeomapsResults.closeTooltip();
            }); 
        }
    );   
}

 

But nothing happens. Can I get help?

Link to comment
×
×
  • Create New...