X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=js%2Fsyp.js;h=8e32d8580d4d7e86d7b0f178cfa46f627d0c8e99;hp=7e60b4e858df70821f0cd2f44b154d99ac558efd;hb=d31c25de8cf1735ca350f55b3520f7bbcb5e2c2e;hpb=7282fabcfef34ef95b8c6bd414f34d77037451e1 diff --git a/js/syp.js b/js/syp.js index 7e60b4e..8e32d85 100644 --- a/js/syp.js +++ b/js/syp.js @@ -1,6 +1,21 @@ /* Copyright (c) 2009 Arnaud Renevier, Inc, published under the modified BSD * license. */ +OpenLayers.Control.SypAttribution = OpenLayers.Class (OpenLayers.Control.Attribution, { + updateAttribution: function() { + var attributions = [SypStrings.propulsedByLink]; + if (this.map && this.map.layers) { + for(var i=0, len=this.map.layers.length; i