X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=js%2Fsyp.js;h=8e32d8580d4d7e86d7b0f178cfa46f627d0c8e99;hp=c9f637aa78f615f4fed291c6e4daa11305dfa721;hb=4acc8da49e3d4083fd9906388dd8fe0212bb9f42;hpb=57511b4efd7402ef58de66ac1fe2c01ed1b1d7b5 diff --git a/js/syp.js b/js/syp.js index c9f637a..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