Select to view content in your preferred language

FV 3.1 automatic map attribution data

1687
17
Jump to solution
01-10-2013 04:18 PM
RhettZufelt
MVP Notable Contributor
Was noticing this new feature of the FV.

???Automatic map attribution displays the map copyrights at the bottom of the map. If it is long, it will end with "..." and can be clicked to see the full attribution (copyrights).

I like the info showing, but it is appending information onto the descriptions I have in the service.  It is appending our company name and a pipe (|) in front of the actual text from the credits box regardless of where the data comes from.

Wondering where it is getting this extra information from so that I can remove it, otherwise, it tries to give us credit for "any" basemaps.

R_
Tags (2)
0 Kudos
17 Replies
RhettZufelt
MVP Notable Contributor
Rhett,



The text is actually black but it's alpha makes it look gray. Anyway you have to work with the AttributionSkin.mxml from the API


Ok, decided to try it, but not getting any changes.  Is this supposed to automatically pick up the AttributionSkin like it does the PopupRendererSkin or does one need to add an entry to the default.css for this to be utilized?

AttributionSkin.mxml is in /com/esri/ags/skins/

R_
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rhett,

   I would think that it would pick it up automatically. Have you tried closing Flash Builder and clearing your browser cache?
0 Kudos
RhettZufelt
MVP Notable Contributor
You are correct, it appears as if it is being utilized.  Did not look like it as none of the changes I made were taking effect.
Put a trace in there and saw that it was being read, so had to figure out how to modify it.

the one alpha in there (alpha.disabled="0.5") has no effect, no matter what you change it to, if I add alpha.normal="1.0", then it makes the text black.

The glow filter does not get applied, and needs to be copied/moved to the label1 label block, then it will apply it (does not appear as if lable2 is ever used).

Also, to change the font family/size/weight, I put that in the label1 tag as as such:

 <s:Label id="label1"
    left="0" right="0" bottom="0"
    click="label1_clickHandler(event)"
    maxDisplayedLines="1"
    showTruncationTip="false"
    text="{hostComponent.text}"
    textAlign="right"
    color="black"
    fontFamily="Veranda"
    fontWeight="bold"
    fontSize="9"
    visible="true">
 <s:filters>
  <s:GlowFilter blurX="2"
       blurY="2"
       color="0xFFFFFF"
       strength="7"/>
 </s:filters>
 </s:Label>


R_
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rhett,

   I guess it would help you if I explain how this works. Label1 is the label that shows on the map normally, If label1 is truncated then label2 is shown when you click on label1 and is a multiline label with the halo.
0 Kudos
RhettZufelt
MVP Notable Contributor
Thanks Robert,

That makes more sense now.

I saw that it gets switched if truncated, but wasn't sure how it would test for that since I don't really know what is being passed to the skin.  Even tried to trace the info coming in, but no luck.  I had some pretty long labels for testing, must not have hit the truncation threshold to trigger label2.

Now I see that label1.isTruncated must be passed as just a boolean property for label1 from the API?


Thanks again for the clarification,

R_
0 Kudos
GISDev1
Deactivated User
Ok, I figured out where it is coming from.  (layer.copyright)

R_


Where is this copyright populated???
0 Kudos
RhettZufelt
MVP Notable Contributor
It gets populated with the text from the "Credits" box in the ArcMap documents layer properties.

The dataframe and layers within it have thier own "Credits" box.

R_
0 Kudos
GISDev1
Deactivated User
It gets populated with the text from the "Credits" box in the ArcMap documents layer properties.

The dataframe and layers within it have thier own "Credits" box.

R_


Gotcha, thanks for tracking it down and posting back here for everyone else to know.
0 Kudos