[mapguide-internals] RFC15 - Addendum 3
Trevor Wekel
trevor.wekel at autodesk.com
Thu Mar 29 19:54:00 EDT 2007
Hi Jason,
I don't think this addendum will cover the performance hit. Chris will
probably hate me but I wonder if it makes sense to add a bitmask?
QueryFeatures/QueryFeatureProperties(MgMap* map,
MgStringCollection* layerNames,
MgGeometry* filterGeometry,
INT32 selectionVariant,
CREFSTRING featureFilter,
INT32 maxFeatures,
INT32 layerAttributes);
Where layerAttributes would be the sum of any/all
isWithinScaleRange = 1, // layer must be visible at current scale to be
included
isVisible = 2, // visibility flag must be checked for layer to be
included
isSelectable = 4, // layer must be selectable to be included
hasTooltip = 8, // layer must have a tooltip defined to be included
Examples:
layerAttributes = (nothing)
Queries every single layer on the map.
layerAttributes = hasTooltip
Queries any layers with a tooltip regardless of whether the layer is
currently visible or is within scale
layerAttributes = isSelectable + isWithinScaleRange
Query only selectable layers visible at the current scale range. Layers
turned off by the user will be included.
layerAttributes = isWithinScaleRange + isVisible + hasTooltip
Queries currently visible layers with a tooltip. Layers turned off by
the user will not be included. This will result in a performance
improvement because only layers at the current scale, and visible, with
a tooltip will be included.
I suspect this will be a pain to implement but it is more flexible.
Thanks,
Trevor
-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Jason
Birch
Sent: Thursday, March 29, 2007 5:01 PM
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] RFC15 - Addendum 3
Is this going to deal with some of the problems that this (unpopulated)
RFC was to cover:
http://trac.osgeo.org/mapguide/wiki/MapGuideRfc7
Which was the result of this email thread:
http://www.nabble.com/Tooltip-performance-tf2652498s16610.html#a7401729
Jason
-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Chris
Claydon
Sent: Thursday, March 29, 2007 15:52
To: MapGuide Internals Mail List
Subject: [mapguide-internals] RFC15 - Addendum 3
Yet another addendum to this RFC...
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
More information about the mapguide-internals
mailing list