<div class="line" style="font-family:monospace;font-size:13px"><span class="webkit-html-tag">Copy Attribution.js from trunk to your GeoMoose extensions folder (it looks like I forgot to push it up for 2.6.1) and enable the Attribution.js extension in geomoose.html.</span></div>
<div class="line" style="font-family:monospace;font-size:13px"><span class="webkit-html-tag"><br></span></div><div class="line"><span class="webkit-html-tag"><font face="monospace"><a href="https://svn.osgeo.org/geomoose/geomoose2/trunk/htdocs/extensions/Attribution.js">https://svn.osgeo.org/geomoose/geomoose2/trunk/htdocs/extensions/Attribution.js</a></font></span></div>
<div class="line" style="font-family:monospace;font-size:13px"><span class="webkit-html-tag"><br></span></div><div class="line" style="font-family:monospace;font-size:13px"><span class="webkit-html-tag">Then add the attribution text to the map-source:</span></div>
<div class="line" style="font-family:monospace;font-size:13px"><span class="webkit-html-tag"><br></span></div><div class="line" style="font-family:monospace;font-size:13px"><span class="webkit-html-tag"><map-source<span class="webkit-html-attribute"> <span class="webkit-html-attribute-name">name</span>="<span class="webkit-html-attribute-value">osm</span>"</span><span class="webkit-html-attribute"> <span class="webkit-html-attribute-name">tiled</span>="<span class="webkit-html-attribute-value">true</span>"</span><span class="webkit-html-attribute"> <span class="webkit-html-attribute-name">type</span>="<span class="webkit-html-attribute-value">xyz</span>"</span><span class="webkit-html-attribute"> <span class="webkit-html-attribute-name">reference</span>="<span class="webkit-html-attribute-value">on</span>"</span>></span></div>
<div class="collapsible-content" style="margin-left:1em;font-family:monospace;font-size:13px"><span class="text"></span><div class="line"><span class="webkit-html-tag"><layer<span class="webkit-html-attribute"> <span class="webkit-html-attribute-name">name</span>="<span class="webkit-html-attribute-value">osm</span>"</span><span class="webkit-html-attribute"> <span class="webkit-html-attribute-name">status</span>="<span class="webkit-html-attribute-value">off</span>"</span>/></span></div>
<span class="text"></span><div class="collapsible" id="collapsible28"><div class="expanded"><div class="line"><span class="button collapse-button" style="display:inline-block;width:10px;vertical-align:bottom;height:10px;background-repeat:no-repeat no-repeat"></span><span class="webkit-html-tag"><url></span></div>
<div class="collapsible-content" style="margin-left:1em"><span class="text"><a href="http://otile1.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.png">http://otile1.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.png</a></span></div><div class="line">
<span class="webkit-html-tag"></url></span></div></div></div><span class="text"></span><div class="line"><span class="webkit-html-tag"><param<span class="webkit-html-attribute"> <span class="webkit-html-attribute-name">name</span>="<span class="webkit-html-attribute-value">numZoomLevels</span>"</span><span class="webkit-html-attribute"> <span class="webkit-html-attribute-name">value</span>="<span class="webkit-html-attribute-value">20</span>"</span>/></span></div>
<span class="text"></span><div class="line"><span class="webkit-html-tag"><param<span class="webkit-html-attribute"> <span class="webkit-html-attribute-name">name</span>="<span class="webkit-html-attribute-value">sphericalMercator</span>"</span><span class="webkit-html-attribute"> <span class="webkit-html-attribute-name">value</span>="<span class="webkit-html-attribute-value">true</span>"</span>/></span></div>
<span class="text"></span><div class="line"><span class="webkit-html-tag"><param<span class="webkit-html-attribute"> <span class="webkit-html-attribute-name">name</span>="<span class="webkit-html-attribute-value">attribution</span>"</span><span class="webkit-html-attribute"> <span class="webkit-html-attribute-name">value</span>="<span class="webkit-html-attribute-value">Data, imagery and map information provided by MapQuest, Open Street Map <a href="http://www.openstreetmap.org/">http://www.openstreetmap.org/</a> and contributors, CC-BY-SA <a href="http://creativecommons.org/licenses/by-sa/2.0/">http://creativecommons.org/licenses/by-sa/2.0/</a></span>"</span>/></span></div>
<span class="text"></span></div><div class="line" style="font-family:monospace;font-size:13px"><span class="webkit-html-tag"></map-source></span></div><br><div class="gmail_quote">On Mon, Mar 11, 2013 at 4:56 PM, TC Haddad <span dir="ltr"><<a href="mailto:tchaddad@gmail.com" target="_blank">tchaddad@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Jim,<br>
<br>
If you get a chance to dig up your prior solution that would be great.<br>
I foresee a need to make use of it quite a lot in one of my upcoming<br>
projects. I was hoping that OpenLayers would provide a path towards<br>
solving the attribution problem that wouldn't be too difficult to hook<br>
into from GeoMoose.<br>
<br>
Tanya<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Mar 11, 2013 at 10:49 AM, James Klassen <<a href="mailto:klassen.js@gmail.com">klassen.js@gmail.com</a>> wrote:<br>
> I am not at a computer right now so I can't check...<br>
><br>
> There is a way to do this somewhere.   I implemented it for OSM license<br>
> compliance, but can't remember if I pushed it back upstream.  It uses the<br>
> OpenLayers method.<br>
><br>
> On Mar 11, 2013 12:22 PM, "Eli Adam" <<a href="mailto:eadam@co.lincoln.or.us">eadam@co.lincoln.or.us</a>> wrote:<br>
>><br>
>> Tanya,<br>
>><br>
>> On Fri, Mar 8, 2013 at 5:34 PM, TC Haddad <<a href="mailto:tchaddad@gmail.com">tchaddad@gmail.com</a>> wrote:<br>
>> ><br>
>> > How do you add a line of screen / map credits to a Geomoose application?<br>
>><br>
>> In earlier version you could do something like this with MapServer<br>
>> where it is sort of part of the underlying map image.  This has<br>
>> several limitations and I haven't used it lately.  Here is a mediocre<br>
>> example that is placing it on screen in a hard coded position.<br>
>><br>
>> LAYER<br>
>>   NAME credits<br>
>>   STATUS ON<br>
>>   TRANSFORM UL<br>
>>   TYPE ANNOTATION<br>
>>   FEATURE<br>
>>     POINTS 750 200 END<br>
>>     Text 'For official information, see <a href="http://example.com" target="_blank">http://example.com</a>'<br>
>>   END<br>
>>   CLASS<br>
>>     LABEL<br>
>>       TYPE TrueType<br>
>>       FONT arial<br>
>>       SIZE 10<br>
>>       ANTIALIAS True<br>
>>       COLOR 75 75 75<br>
>>       POSITION UL<br>
>>       BACKGROUNDCOLOR 255 255 255<br>
>>       BUFFER 2<br>
>>     END<br>
>>   END<br>
>> END<br>
>><br>
>> For an onscreen non-layer specific link/credit you can put something<br>
>> in the bottom bar where the coordinates display, check the footer<br>
>> here:<br>
>> <a href="http://trac.osgeo.org/geomoose/browser/geomoose2/trunk/htdocs/geomoose.html#L113" target="_blank">http://trac.osgeo.org/geomoose/browser/geomoose2/trunk/htdocs/geomoose.html#L113</a><br>
>><br>
>> ><br>
>> > I can see from the online demo that some of the base maps have credits<br>
>> > displaying (Google, Yahoo, etc) but others like MapQuest do not. I<br>
>> > looked<br>
>> > through the Mapbook.xml and documentation and didn't see how this was<br>
>> > being<br>
>> > handled.<br>
>><br>
>> I think that these are fairly deeply baked into OL, GM and possibly<br>
>> the provider API.  You can start to get an idea of the origin of these<br>
>> from<br>
>> <a href="http://trac.osgeo.org/geomoose/browser/geomoose2/trunk/htdocs/build/theme/default/google.css" target="_blank">http://trac.osgeo.org/geomoose/browser/geomoose2/trunk/htdocs/build/theme/default/google.css</a><br>

>> and<br>
>> <a href="http://trac.osgeo.org/geomoose/browser/geomoose2/trunk/htdocs/build/theme/default/style.css" target="_blank">http://trac.osgeo.org/geomoose/browser/geomoose2/trunk/htdocs/build/theme/default/style.css</a><br>

>><br>
>> Perhaps someone else can shed more light on the specifics of how these<br>
>> credits are sourced and propagated onto the screen?<br>
>><br>
>> ><br>
>> > Technically the OSM data in the MapQuest layer requires a screen credit<br>
>> > to<br>
>> > comply with the OSM license, which is what got me started on this. But<br>
>> > it<br>
>> > would also be nice to know how to add a credit line for any other sorts<br>
>> > of<br>
>> > layers too.<br>
>> ><br>
>><br>
>> Right now, the MapQuest layers seem to be accessed by generic TMS and<br>
>> Google, Yahoo, etc are accessed through their APIs.  There may be a<br>
>> similar method for MapQuest as Google, Yahoo, etc.<br>
>> <a href="http://developer.mapquest.com/web/products/open/map#openlayers" target="_blank">http://developer.mapquest.com/web/products/open/map#openlayers</a> and<br>
>> <a href="http://developer.mapquest.com/web/products/open/sdk" target="_blank">http://developer.mapquest.com/web/products/open/sdk</a> may be good places<br>
>> to start for that.<br>
>><br>
>> You may want to separate out just the MapQuest/OSM attribution issue<br>
>> and open a ticket so that it doesn't get forgotten.<br>
>><br>
>> Best Regards, Eli<br>
>> _______________________________________________<br>
>> Geomoose-users mailing list<br>
>> <a href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>
</div></div></blockquote></div><br>