From: arno Date: Sun, 19 Jul 2009 21:10:44 +0000 (+0200) Subject: add links to syp homepage in attribution control X-Git-Tag: v0.1~14 X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=commitdiff_plain;h=3848f54e1bde1afac7fa595822526d6c96b1ff18;hp=2e576d1f8797170e606e40bedf6b56415d8b1f43 add links to syp homepage in attribution control --- diff --git a/js/syp.js b/js/syp.js index c9f637a..3228e62 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 = ['propulsed by syp']; + if (this.map && this.map.layers) { + for(var i=0, len=this.map.layers.length; i