Skip to content

Instantly share code, notes, and snippets.

@ajashton
Created October 18, 2010 15:32
Show Gist options
  • Save ajashton/632412 to your computer and use it in GitHub Desktop.
Save ajashton/632412 to your computer and use it in GitHub Desktop.
diff --git a/map_defaults.json b/map_defaults.json
index f229912..a80724c 100644
--- a/map_defaults.json
+++ b/map_defaults.json
@@ -1,5 +1,9 @@
{
"controls": {
+ "attribution": {
+ "_type": "OpenLayers.Control.Attribution",
+ "_value": "Mapbox Attribution Test"
+ },
"navigation": {
"_type": "OpenLayers.Control.Navigation",
"_value": [""]
diff --git a/page.map.js b/page.map.js
index b94524b..e682726 100644
--- a/page.map.js
+++ b/page.map.js
@@ -71,7 +71,7 @@ app.get('/map/home', function(req, res) {
'projection': map_template.spherical_mercator,
'displayProjection': map_template.spherical_mercator,
'units': 'm',
- 'controls': [map_template.controls.navigation]
+ 'controls': [map_template.controls.navigation,map_template.controls.attribution]
},
'externals': {
'blockswitcher': map_template.externals.blockswitcher,
@@ -117,7 +117,7 @@ app.get('/map/agency/:id', function(req, res) {
'maxResolution': 1.40625,
'projection': map_template.spherical_mercator,
'units': 'm',
- 'controls': [map_template.controls.navigation]
+ 'controls': [map_template.controls.navigation,map_template.controls.attribution]
},
'externals': {
'zoomonload': zoomonload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment