Opened 14 years ago

Last modified 14 years ago

#3450 new defect

Allowing layer items to be availabe at draw time

Reported by: assefa Owned by: sdlime
Priority: normal Milestone: 6.0 release
Component: MapServer C Library Version: unspecified
Severity: normal Keywords:
Cc:

Description

Drivers such as kml or flash need to get access to attributes at draw time so they can dump the attribute values as they draw the feature.

For flash output, we has an explicit case allowing to use a metedata on the layer level (SWFDUMPATTRIBUTES) that was used when calling msLayerWhichItems. I think we should have a general mechanism where we can trigger all (or maybe some items) to be available at draw time. If we have al least something general that allows to retrieve all items, each driver can then deal with the presentation part.

Change History (2)

comment:1 by sdlime, 14 years ago

The mechanism already exists since the function msLayerWhichItems() has a flag to trigger the retrieval of all items. Rather than mucking with the drawing code, I'd suggest we just modify that function to do that automatically for certain drivers. The INLINE driver already does this so all we need to do is expand that if-then...

Steve

comment:2 by assefa, 14 years ago

good enough for me, I will add a case also for the kml driver in that function. Thanks

Note: See TracTickets for help on using tickets.