Guest User

Untitled

a guest
Jun 18th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. diff --git a/map_defaults.json b/map_defaults.json
  2. index f229912..a80724c 100644
  3. --- a/map_defaults.json
  4. +++ b/map_defaults.json
  5. @@ -1,5 +1,9 @@
  6. {
  7. "controls": {
  8. + "attribution": {
  9. + "_type": "OpenLayers.Control.Attribution",
  10. + "_value": "Mapbox Attribution Test"
  11. + },
  12. "navigation": {
  13. "_type": "OpenLayers.Control.Navigation",
  14. "_value": [""]
  15. diff --git a/page.map.js b/page.map.js
  16. index b94524b..e682726 100644
  17. --- a/page.map.js
  18. +++ b/page.map.js
  19. @@ -71,7 +71,7 @@ app.get('/map/home', function(req, res) {
  20. 'projection': map_template.spherical_mercator,
  21. 'displayProjection': map_template.spherical_mercator,
  22. 'units': 'm',
  23. - 'controls': [map_template.controls.navigation]
  24. + 'controls': [map_template.controls.navigation,map_template.controls.attribution]
  25. },
  26. 'externals': {
  27. 'blockswitcher': map_template.externals.blockswitcher,
  28. @@ -117,7 +117,7 @@ app.get('/map/agency/:id', function(req, res) {
  29. 'maxResolution': 1.40625,
  30. 'projection': map_template.spherical_mercator,
  31. 'units': 'm',
  32. - 'controls': [map_template.controls.navigation]
  33. + 'controls': [map_template.controls.navigation,map_template.controls.attribution]
  34. },
  35. 'externals': {
  36. 'zoomonload': zoomonload
Add Comment
Please, Sign In to add comment