From bff91d251c0a272d7b16a2bb2ec329908dfcb126 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 8 Oct 2009 17:00:40 +0000 Subject: [PATCH] The attribution control no longer shows duplicate attribution text. r=crschmidt (closes #2300) git-svn-id: http://svn.openlayers.org/trunk/openlayers@9731 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- .../attribution-eliminated-duplicates.html | 78 ------------------- lib/OpenLayers/Control/Attribution.js | 12 +-- tests/Control/Attribution.html | 18 ++--- 3 files changed, 10 insertions(+), 98 deletions(-) diff --git a/examples/attribution-eliminated-duplicates.html b/examples/attribution-eliminated-duplicates.html index 8bf184e1d8..e69de29bb2 100644 --- a/examples/attribution-eliminated-duplicates.html +++ b/examples/attribution-eliminated-duplicates.html @@ -1,78 +0,0 @@ - - - OpenLayers Attribution Example (attribute eliminateDuplicates) - - - - - - -

OpenLayers Attribution Example (attribute eliminateDuplicates)

-
-

- Demonstrates the use of the attribute eliminateDuplicates for Attribution-controls -

-

Standard Usage of the control

-
-

Use the attribute eliminateDuplicates to get rid of redundant Information

-
-
- - diff --git a/lib/OpenLayers/Control/Attribution.js b/lib/OpenLayers/Control/Attribution.js index 6cb8a48ddf..e73b8cc1f2 100644 --- a/lib/OpenLayers/Control/Attribution.js +++ b/lib/OpenLayers/Control/Attribution.js @@ -23,12 +23,6 @@ OpenLayers.Control.Attribution = */ separator: ", ", - /** - * APIProperty: eliminateDuplicates - * {Boolean} shall already present attribution strings be eliminated when other layers have the same attribution string? - */ - eliminateDuplicates: false, - /** * Constructor: OpenLayers.Control.Attribution * @@ -87,9 +81,9 @@ OpenLayers.Control.Attribution = for(var i=0, len=this.map.layers.length; i