From 3848f54e1bde1afac7fa595822526d6c96b1ff18 Mon Sep 17 00:00:00 2001 From: arno Date: Sun, 19 Jul 2009 23:10:44 +0200 Subject: [PATCH] add links to syp homepage in attribution control --- js/syp.js | 17 ++++++++++++++++- media/syp.css | 3 ++- 2 files changed, 18 insertions(+), 2 deletions(-) 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