Changeset 6987
- Timestamp:
- 04/21/08 13:19:31 (5 months ago)
- Files:
-
- trunk/openlayers/examples/attribution.html (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/examples/attribution.html
r6497 r6987 12 12 </style> 13 13 <script src="../lib/OpenLayers.js"></script> 14 14 15 <script type="text/javascript"> 15 16 var map; … … 21 22 {'attribution': 'Provided by <a href="http://labs.metacarta.com/">MetaCarta</a>'}); 22 23 23 var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",24 "http://t1.hypercube.telascience.org/cgi-bin/landsat7",25 {layers: "landsat7"},{attribution:"Provided by Telascience"});24 var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic", 25 "http://t1.hypercube.telascience.org/cgi-bin/landsat7", 26 {layers: "landsat7"},{attribution:"Provided by Telascience"}); 26 27 27 map.addLayers([ol_wms, jpl_wms]); 28 var vector = new OpenLayers.Layer.Vector("Simple Geometry", 29 {attribution:"Vector Attibution in 2nd arg"}); 30 31 map.addLayers([ol_wms, jpl_wms, vector]); 32 28 33 map.addControl(new OpenLayers.Control.LayerSwitcher()); 29 34 map.addControl(new OpenLayers.Control.Attribution()); … … 37 42 38 43 <div id="tags"> 44 copyright watermark logo attribution 39 45 </div> 40 46 … … 48 54 This is an example of how to add an attribution block to the OpenLayers window. In order to use an 49 55 attribution block, an attribution parameter must be set in each layer that requires attribution. In 50 addition, an attribution control must be added to the map. 56 addition, an attribution control must be added to the map, though one is added to all OpenLayers Maps by default. 57 Be aware that this is a layer *option*: the options hash goes in 58 different places depending on the layer type you are using. 51 59 </div> 52 60 </body>
