ThinkGeo.com    |     Documentation    |     Premium Support

Attribution for GridFeatureLayer

Hi,

There is a text property of the GridFeatureLayer called Attribution which the documentation does not say what it is for. I would like to use this property to set a label, but not if it’s going to get overwritten by some other process I don’t know about.

Thanks,
Damian

Hi Damian,

Attribution is from the base class Layer. That string was designed to be something like “Powered by ThinkGeo” and will be drawn on canvas. However this property is not that useful and we kind of obsolete it.

So to answer your question: Layer.Attribution will not be overwritten, but still I suggest you inherit the GridFeatureLayer and create your own Label property. And in fact, we will consider deprecating/removing this property Layer.Attribution to avoid the future confusion.

Thanks,
Ben

Hi Damian,

In fact, we just obsoleted Layer.Attribution in the source, and you will see it in the beta build tonight :slight_smile: Thanks for reporting this issue!

Thanks,
Ben