Select to view content in your preferred language

Need the capability to display a copyright notice on the map...

1324
6
10-07-2010 02:01 AM
MiguelParedes
Esri Contributor
Greetings all,

I have requested this before, and posted it as an idea for an addition to the FlexViewer.  However, I'm in a bit of a pickle because I need this capability now, but have no idea how to implement it.
Basically, I would like to be able to read the "Copyright Text:" parameter from the REST endpoint of a map service, and render it on the map.  Ideally, each map would have then the capability to display its own copyright.
Has anyone develop something of the sort?  Would any Flex guru's out there be able to provide me with some hints on how I would approach the coding of this functionality?

See the attached images for an example.


Many thanks in advance,

Miguel
Miguel
0 Kudos
6 Replies
by Anonymous User
Not applicable
Original User: bjorn

Not specific to the viewer, but the API sample for OpenStreetMap shows one example (hardcoded copyright):
http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=OpenStreetMap

This example shows how to dynamically use the "description" from a tiled service:
http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=agol
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Miguel,

   Here is a copyright widget for FlexViewer 2.1 Let me know if it works for your needs.

http://www.arcgis.com/home/item.html?id=3893f396489344aa9f8fcdef15b3fe1b
0 Kudos
by Anonymous User
Not applicable
Original User: Vincewarwick

Robert, I've tried your widget and put the copyright information in the credits on the map document that the service is based on and refreshed the service but don't get any copyright displayed. Am I missing anything obvious?

Vince
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Vince,

   Strangely enough the copyright text comes from the credits section of the data frame in ArcMap and not the document's credits. So in ArcMap right click on the data frame and choose properties and set the credits text field, save the MXD, re-export the MSD (if you are using one), re-start the Map Service, Clear the REST cache.
0 Kudos
by Anonymous User
Not applicable
Original User: Miguel

Miguel,

   Here is a copyright widget for FlexViewer 2.1 Let me know if it works for your needs.

http://www.arcgis.com/home/item.html?id=3893f396489344aa9f8fcdef15b3fe1b


Greetings Robert,

This is brilliant!  It works a treat. I would like to suggest that you publish this widget to the Code Gallery.  If you do this, I would suggest adding an instruction for placing the widget definition outside the <widgetcontainer /> section.  Newbies to the new viewer, like me, may include it within, following in line with the rest of the widgets already defined in the config.xml.

In any case, thank you very much for implementing this code.  As I see it, here in Europe, it is a bit of functionality that ought to be part of the viewer.  I guess I can create a UK version of the Viewer with the functionality built into it, but I think it would be a much 'cleaner implementation if esri Inc. would do this. After all, it is a piece of functionality that could be of use to some US users too.

Thanks again,

Miguel
0 Kudos
VinceWarwick
Emerging Contributor
Thanks again Robert, after some issues with my service the copyright is displaying as it should.

All the best

Vince
0 Kudos