kushaldsouza

Geoexplorer publish WMS 1.1.1

Jan 16th, 2013
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.     "proxy" : "../proxy/?url=",
  3.     "printService" : "/geoserver/pdf/",
  4.     "about" : {
  5.         "title" : "Map",
  6.         "abstract" : "This is a demonstration of GeoExplorer, an application for assembling and publishing web-based maps. After adding layers to the map, use the 'Publish map' tool to embed this map in any web page.",
  7.         "contact" : "For more information, contact <a href='http://opengeo.org'>OpenGeo</a>."
  8.     },
  9.     "defaultSourceType" : "gxp_wmscsource",
  10.     "sources" : {
  11.         "local" : {
  12.             "ptype" : "gxp_wmscsource",
  13.             "url" : "/geoserver/wms",
  14.             "version" : "1.1.1",
  15.             "id" : "local",
  16.             "projection" : "EPSG:4326",
  17.             "baseParams" : {
  18.                 "SERVICE" : "WMS",
  19.                 "REQUEST" : "GetCapabilities",
  20.                 "TILED" : true,
  21.                 "VERSION" : "1.1.1"
  22.             }
  23.         },
  24.         "osm" : {
  25.             "ptype" : "gxp_osmsource",
  26.             "id" : "osm",
  27.             "projection" : "EPSG:4326"
  28.         },
  29.         "ol" : {
  30.             "ptype" : "gxp_olsource",
  31.             "id" : "ol",
  32.             "projection" : "EPSG:4326"
  33.         },
  34.         "OpenLayers_Layer_WMS_116" : {
  35.             "url" : "http://lasigpublic.nerc-lancaster.ac.uk:80/ArcGIS/services/Biogeochemistry/CumbrianUplandWatersChemistry/MapServer/WMSServer",
  36.             "id" : "OpenLayers_Layer_WMS_116",
  37.             "baseParams" : {
  38.                 "SERVICE" : "WMS",
  39.                 "REQUEST" : "GetCapabilities",
  40.                 "TILED" : true,
  41.                 "VERSION" : "1.1.1"
  42.             },
  43.             "title" : "Cumbria Upland Waters Chemistry - sample locations web map service"
  44.         }
  45.     },
  46.     "map" : {
  47.         "projection" : "EPSG:4326",
  48.         "center" : [-3.15, 54.43],
  49.         "zoom" : 10,
  50.         "layers" : [{
  51.                 "source" : "ol",
  52.                 "type" : "OpenLayers.Layer.WMS",
  53.                 "args" : ["World map", "http://vmap0.tiles.osgeo.org/wms/vmap0", {
  54.                         "layers" : "basic"
  55.                     }
  56.                 ],
  57.                 "group" : "background"
  58.             }, {
  59.                 "source" : "ol",
  60.                 "type" : "OpenLayers.Layer",
  61.                 "args" : ["Blank"],
  62.                 "visibility" : false,
  63.                 "group" : "background"
  64.             }, {
  65.                 "source" : "OpenLayers_Layer_WMS_116",
  66.                 "name" : "0",
  67.                 "title" : "Streams",
  68.                 "visibility" : true,
  69.                 "opacity" : 1,
  70.                 "selected" : false,
  71.                 "capability" : {
  72.                     "styles" : [{
  73.                             "name" : "default",
  74.                             "title" : "Streams",
  75.                             "legend" : {
  76.                                 "width" : "17",
  77.                                 "height" : "17",
  78.                                 "format" : "image/png",
  79.                                 "href" : "http://lasigpublic.nerc-lancaster.ac.uk/Legends/Biogeochemistry/CumbrianUplandWatersChemistryStreams.png"
  80.                             }
  81.                         }
  82.                     ],
  83.                     "srs" : {
  84.                         "EPSG:4326" : true,
  85.                         "EPSG:4258" : true,
  86.                         "EPSG:27700" : true
  87.                     },
  88.                     "bbox" : {
  89.                         "EPSG:27700" : {
  90.                             "bbox" : [308800, 497200, 351400, 515200],
  91.                             "srs" : "EPSG:27700"
  92.                         }
  93.                     },
  94.                     "llbox" : [-3.409243, 54.362003, -2.748113, 54.529617],
  95.                     "queryable" : true,
  96.                     "cascaded" : 0,
  97.                     "opaque" : false,
  98.                     "noSubsets" : false,
  99.                     "fixedWidth" : 0,
  100.                     "fixedHeight" : 0,
  101.                     "minScale" : 1250064.448918,
  102.                     "maxScale" : 0,
  103.                     "name" : "0",
  104.                     "title" : "Streams",
  105.                     "abstract" : "Streams",
  106.                     "prefix" : "0",
  107.                     "formats" : ["image/bmp", "image/jpeg", "image/tiff", "image/png", "image/gif", "image/svg+xml"],
  108.                     "infoFormats" : ["application/vnd.ogc.wms_xml", "text/xml", "text/html", "text/plain"]
  109.                 },
  110.                 "minScale" : 1250064.448918,
  111.                 "maxScale" : 0
  112.             }, {
  113.                 "source" : "OpenLayers_Layer_WMS_116",
  114.                 "name" : "1",
  115.                 "title" : "Lakes",
  116.                 "visibility" : true,
  117.                 "opacity" : 1,
  118.                 "selected" : false,
  119.                 "capability" : {
  120.                     "styles" : [{
  121.                             "name" : "default",
  122.                             "title" : "Lakes",
  123.                             "legend" : {
  124.                                 "width" : "17",
  125.                                 "height" : "17",
  126.                                 "format" : "image/png",
  127.                                 "href" : "http://lasigpublic.nerc-lancaster.ac.uk/Legends/Biogeochemistry/CumbrianUplandWatersChemistryLakes.png"
  128.                             }
  129.                         }
  130.                     ],
  131.                     "srs" : {
  132.                         "EPSG:4326" : true,
  133.                         "EPSG:4258" : true,
  134.                         "EPSG:27700" : true
  135.                     },
  136.                     "bbox" : {
  137.                         "EPSG:27700" : {
  138.                             "bbox" : [308800, 497200, 351400, 515200],
  139.                             "srs" : "EPSG:27700"
  140.                         }
  141.                     },
  142.                     "llbox" : [-3.409243, 54.362003, -2.748113, 54.529617],
  143.                     "queryable" : true,
  144.                     "cascaded" : 0,
  145.                     "opaque" : false,
  146.                     "noSubsets" : false,
  147.                     "fixedWidth" : 0,
  148.                     "fixedHeight" : 0,
  149.                     "minScale" : 1250064.448918,
  150.                     "maxScale" : 0,
  151.                     "name" : "1",
  152.                     "title" : "Lakes",
  153.                     "abstract" : "Lakes",
  154.                     "prefix" : "1",
  155.                     "formats" : ["image/bmp", "image/jpeg", "image/tiff", "image/png", "image/gif", "image/svg+xml"],
  156.                     "infoFormats" : ["application/vnd.ogc.wms_xml", "text/xml", "text/html", "text/plain"]
  157.                 },
  158.                 "minScale" : 1250064.448918,
  159.                 "maxScale" : 0
  160.             }, {
  161.                 "source" : "OpenLayers_Layer_WMS_116",
  162.                 "name" : "2",
  163.                 "title" : "Location",
  164.                 "visibility" : true,
  165.                 "opacity" : 1,
  166.                 "selected" : false,
  167.                 "capability" : {
  168.                     "styles" : [],
  169.                     "srs" : {
  170.                         "EPSG:4326" : true,
  171.                         "EPSG:4258" : true,
  172.                         "EPSG:27700" : true
  173.                     },
  174.                     "bbox" : {
  175.                         "EPSG:27700" : {
  176.                             "bbox" : [275589.3734, 455460.084, 375589.3734, 555460.084],
  177.                             "srs" : "EPSG:27700"
  178.                         }
  179.                     },
  180.                     "llbox" : [-3.939321, 53.980009, -2.372387, 54.893196],
  181.                     "queryable" : true,
  182.                     "cascaded" : 0,
  183.                     "opaque" : false,
  184.                     "noSubsets" : false,
  185.                     "fixedWidth" : 0,
  186.                     "fixedHeight" : 0,
  187.                     "minScale" : 0,
  188.                     "maxScale" : 1250064.448918,
  189.                     "name" : "2",
  190.                     "title" : "Location",
  191.                     "abstract" : "Location",
  192.                     "prefix" : "2",
  193.                     "formats" : ["image/bmp", "image/jpeg", "image/tiff", "image/png", "image/gif", "image/svg+xml"],
  194.                     "infoFormats" : ["application/vnd.ogc.wms_xml", "text/xml", "text/html", "text/plain"]
  195.                 },
  196.                 "minScale" : 0,
  197.                 "maxScale" : 1250064.448918
  198.             }
  199.         ]
  200.     },
  201.     "viewerTools" : [{
  202.             "leaf" : true,
  203.             "text" : "Pan map",
  204.             "checked" : true,
  205.             "iconCls" : "gxp-icon-pan",
  206.             "ptype" : "gxp_navigation",
  207.             "toggleGroup" : "navigation"
  208.         }, {
  209.             "leaf" : true,
  210.             "text" : "Zoom in / Zoom out",
  211.             "checked" : true,
  212.             "iconCls" : "gxp-icon-zoom-in",
  213.             "ptype" : "gxp_zoom"
  214.         }, {
  215.             "leaf" : true,
  216.             "text" : "Zoom to previous extent / Zoom to next extent",
  217.             "checked" : true,
  218.             "iconCls" : "gxp-icon-zoom-previous",
  219.             "ptype" : "gxp_navigationhistory"
  220.         }, {
  221.             "leaf" : true,
  222.             "text" : "Zoom to max extent",
  223.             "checked" : true,
  224.             "iconCls" : "gxp-icon-zoomtoextent",
  225.             "ptype" : "gxp_zoomtoextent"
  226.         }
  227.     ]
  228. }
Advertisement
Add Comment
Please, Sign In to add comment