[fusion-trac] #437: Tooltip support for all maps in MapGroup

Fusion trac_fusion at osgeo.org
Wed Mar 16 00:10:25 EDT 2011


#437: Tooltip support for all maps in MapGroup
-----------------------+----------------------------------------------------
   Reporter:  jng      |       Owner:  madair   
       Type:  defect   |      Status:  new      
   Priority:  P2       |   Milestone:  2.2      
  Component:  Widgets  |     Version:  2.2 - RC1
   Severity:  Major    |    Keywords:           
External_id:           |       State:  New      
    Browser:  All      |          Os:  All      
-----------------------+----------------------------------------------------
 If you modify the Map Definitions in the sample appdef in #428 so that
 each Map Definition will contain at least one Layer Definition with
 tooltip information, only the tooltip information from the first map of
 the MapGroup will be processed.

 This is because in
 [http://trac.osgeo.org/fusion/browser/branches/fusion-2.2/lib/Map.js#L1422
 Line 1422 of Map.js]

 {{{
 getMapTip: function(oMapTips) {
     //TODO send this to the correct aMap object
     this.aMaps[0].getMapTip(oMapTips);
 },
 }}}

 It only sends the maptip to the first map of the group, instead of all the
 maps in the group.

 Attached is a patch that will do the following:

  1. Pass the tooltip information to each map of the group.
  2. Guard against passing tooltip information to a map in the group that
 has no visible layers.
  3. Add an extra guard in the _display() function that disregards any
 future MAP_MAPTIP_REQ_FINISHED events while the tooltip is still
 displayed. This is a cheap workaround for the fact that without the guard,
 the tooltip for the topmost map in the group will be shown, but will be
 instantly replaced with the tooltip from the map below it.

 With this patch, tooltips from both maps in the group can be displayed. If
 the mouse pointer can produce a tooltip in both maps, only the tooltip for
 the topmost map will be displayed.

 Normal app defs (containing only one MapGuide map in a MapGroup) still
 function as they were with this patch.

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/437>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.


More information about the fusion-trac mailing list