Accessing Attribution

2873
12
Jump to solution
01-05-2016 06:07 AM
TimWitt2
MVP Alum

Good morning everybody,

I am trying to add some text to the ESRI attribution in the bottom right (see attachment).

attribution.png

How would I access this element? When I inspect it, it doesn't have an id, it only has a class.

Thanks!

Tim

Tags (1)
0 Kudos
12 Replies
RobertScheitlin__GISP
MVP Emeritus

Kieren,


  I tested this before posting so I know it works. If your map has stoped working then you have introduced a syntax error.

0 Kudos
KierenTinning2
New Contributor III

Hmmm,

It is entirely possible, I will test again – thank you very much for answering the question and taking the time on this.

I added the

'dojo/dom-construct',

With the comma at the top (and middle), etc. I’ll keep working on this and let you know.

Kieren

Kieren Tinning

TerraFlow Geomatics

Mobile (416) 689-8197

Linkedin profile https://www.linkedin.com/in/kierentinning/

The greatest compliment you can give us is a referral. Please feel free to give my name to a friend or business acquaintance.

P Please consider the environment before printing

0 Kudos
KierenTinning2
New Contributor III

Robert,

Thank you very much for the comments, I never did get the Dojo and DOM insert to work, however I did end up changing the Index.html page adding

.map .esriMapContainer .esriMapLayers:before {
background-image: url(images/XYZLogo.png);
background-size: cover;
background-repeat: no-repeat;
position: absolute;
bottom: 5px;
left: 5px;
z-index: 1000;
height: 30px;
width: 120px;
content: ' ';
}

To the bottom of the CSS section, just ahead of the closing </style> tag.  It places the image in the lower left side of the map page.

0 Kudos