Any examples of  esri.dijit.Attribution?

1465
5
04-30-2013 07:01 AM
AdrianMarsden
Occasional Contributor III
Title says it all, I can't seem to find any examples of the Attribute Widget - I'm sure I saw one when it was new in 3.1

Cheers

ACM
0 Kudos
5 Replies
DianaBenedict
Occasional Contributor III
When you say Attribution you mean the AttributeInsector widget for editing attributes?

If so, the examples can be found in the Editing heading:
http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/ed_attributeinspectorvalidate.html
http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/ed_attribute_inspector.html
0 Kudos
AdrianMarsden
Occasional Contributor III
0 Kudos
derekswingley1
Frequent Contributor
Yes, it's used in most of our samples as it is on by default. Take a look at the simple create a map sample:  http://developers.arcgis.com/en/javascript/samples/map_simple/

The attribution widget is in the lower-right next to the esri logo.
0 Kudos
DianaBenedict
Occasional Contributor III
Nope the Attribution Widget - added at 3.1

http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/new_v31.html


Intresting .. didn't realize there was such a dijit. Usually I set my map.attribution: false because my current client is not interested in seeing this information for an internal web editing tool. But I see it's use now.  Aside from map.attribution property, there is also an attribution property for the layers so you can control the layers that will actually show attribution .. the default is true (I believe). If you find an example let me know...
0 Kudos
AdrianMarsden
Occasional Contributor III
Thanks - although on the sample given I can't see any reference - there isn't a "require" part.  from the API notes I thought you'd need a "dojo.require("esri.dijit.Attribution");" then create it with

var attribution = new esri.dijit.Attribution({  map: map
}, "attributionDiv");


And then, have a div somewhere with that ID.

So, even more confused now.

Also, is it clever enough, if two layers have the same attribution not to repeat itself?

Cheers

ACM
0 Kudos