[mapguide-trac] #639: Performance: Tooltips are evaluated
unnecessarily when rendering the map image
MapGuide Open Source
trac_mapguide at osgeo.org
Mon Jul 21 18:52:16 EDT 2008
#639: Performance: Tooltips are evaluated unnecessarily when rendering the map
image
---------------------------------+------------------------------------------
Reporter: chrisclaydon | Owner: chrisclaydon
Type: defect | Status: new
Priority: medium | Milestone: 2.1
Component: Rendering Service | Version: 2.0.1
Severity: minor | Keywords:
External_id: |
---------------------------------+------------------------------------------
Various different renderers are used with the default stylizer in order to
achieve different results, such as rendering the map image, querying
properties, and determining tooltips and hyperlinks.
The current code evaluates tooltips for all features on a layer that has a
tooltip defined, regardless of whether the tooltips are actually required
by the specified renderer. This results in unnecessary processing overhead
when the tooltips are not required.
The fix for this is to add two new virtual methods to the renderers to
allow them to declare whether or not they support tooltip and hyperlink
processing. The methods are called !SupportsTooltips() and
!SupportsHyperlinks() respectively. They default to false, but may be
overridden in a specific renderer to indicate that the necessary data
should be processed.
They will be implemented to return true in the !FeatureInfoRenderer, which
is used to determine tooltips and hyperlinks.
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/639>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list