kushaldsouza

Geoxplorer publish wms 1.3.0

Jan 16th, 2013
228
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.3.0"
  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" : "null",
  77.                                 "height" : "null",
  78.                                 "format" : "image/png",
  79.                                 "href" : "http://lasigpublic.nerc-lancaster.ac.uk/Legends/Biogeochemistry/CumbrianUplandWatersChemistryStreams.png"
  80.                             }
  81.                         }
  82.                     ],
  83.                     "srs" : {
  84.                         "CRS:84" : true,
  85.                         "EPSG:4326" : true,
  86.                         "EPSG:4258" : true,
  87.                         "EPSG:27700" : true
  88.                     },
  89.                     "bbox" : {
  90.                         "CRS:84" : {
  91.                             "bbox" : [-3.409243, 54.362003, -2.748113, 54.529617],
  92.                             "srs" : "CRS:84"
  93.                         },
  94.                         "EPSG:4326" : {
  95.                             "bbox" : [54.362003, -3.409243, 54.529617, -2.748113],
  96.                             "srs" : "EPSG:4326"
  97.                         },
  98.                         "EPSG:4258" : {
  99.                             "bbox" : [54.362003, -3.409243, 54.529617, -2.748113],
  100.                             "srs" : "EPSG:4258"
  101.                         },
  102.                         "EPSG:27700" : {
  103.                             "bbox" : [308800, 497200, 351400, 515200],
  104.                             "srs" : "EPSG:27700"
  105.                         }
  106.                     },
  107.                     "llbox" : [-3.409243, 54.362003, -2.748113, 54.529617],
  108.                     "queryable" : true,
  109.                     "cascaded" : 0,
  110.                     "opaque" : false,
  111.                     "noSubsets" : false,
  112.                     "fixedWidth" : 0,
  113.                     "fixedHeight" : 0,
  114.                     "minScale" : 1181175.595238000,
  115.                     "maxScale" : 0,
  116.                     "name" : "0",
  117.                     "title" : "Streams",
  118.                     "abstract" : "Streams",
  119.                     "prefix" : "0",
  120.                     "formats" : ["image/bmp", "image/jpeg", "image/tiff", "image/png", "image/gif", "image/svg+xml"],
  121.                     "infoFormats" : ["application/vnd.ogc.wms_xml", "text/xml", "text/html", "text/plain"]
  122.                 },
  123.                 "minScale" : 1181175.595238000,
  124.                 "maxScale" : 0
  125.             }, {
  126.                 "source" : "OpenLayers_Layer_WMS_116",
  127.                 "name" : "1",
  128.                 "title" : "Lakes",
  129.                 "visibility" : true,
  130.                 "opacity" : 1,
  131.                 "selected" : false,
  132.                 "capability" : {
  133.                     "styles" : [{
  134.                             "name" : "default",
  135.                             "title" : "Lakes",
  136.                             "legend" : {
  137.                                 "width" : "null",
  138.                                 "height" : "null",
  139.                                 "format" : "image/png",
  140.                                 "href" : "http://lasigpublic.nerc-lancaster.ac.uk/Legends/Biogeochemistry/CumbrianUplandWatersChemistryLakes.png"
  141.                             }
  142.                         }
  143.                     ],
  144.                     "srs" : {
  145.                         "CRS:84" : true,
  146.                         "EPSG:4326" : true,
  147.                         "EPSG:4258" : true,
  148.                         "EPSG:27700" : true
  149.                     },
  150.                     "bbox" : {
  151.                         "CRS:84" : {
  152.                             "bbox" : [-3.409243, 54.362003, -2.748113, 54.529617],
  153.                             "srs" : "CRS:84"
  154.                         },
  155.                         "EPSG:4326" : {
  156.                             "bbox" : [54.362003, -3.409243, 54.529617, -2.748113],
  157.                             "srs" : "EPSG:4326"
  158.                         },
  159.                         "EPSG:4258" : {
  160.                             "bbox" : [54.362003, -3.409243, 54.529617, -2.748113],
  161.                             "srs" : "EPSG:4258"
  162.                         },
  163.                         "EPSG:27700" : {
  164.                             "bbox" : [308800, 497200, 351400, 515200],
  165.                             "srs" : "EPSG:27700"
  166.                         }
  167.                     },
  168.                     "llbox" : [-3.409243, 54.362003, -2.748113, 54.529617],
  169.                     "queryable" : true,
  170.                     "cascaded" : 0,
  171.                     "opaque" : false,
  172.                     "noSubsets" : false,
  173.                     "fixedWidth" : 0,
  174.                     "fixedHeight" : 0,
  175.                     "minScale" : 1181175.595238000,
  176.                     "maxScale" : 0,
  177.                     "name" : "1",
  178.                     "title" : "Lakes",
  179.                     "abstract" : "Lakes",
  180.                     "prefix" : "1",
  181.                     "formats" : ["image/bmp", "image/jpeg", "image/tiff", "image/png", "image/gif", "image/svg+xml"],
  182.                     "infoFormats" : ["application/vnd.ogc.wms_xml", "text/xml", "text/html", "text/plain"]
  183.                 },
  184.                 "minScale" : 1181175.595238000,
  185.                 "maxScale" : 0
  186.             }, {
  187.                 "source" : "OpenLayers_Layer_WMS_116",
  188.                 "name" : "2",
  189.                 "title" : "Location",
  190.                 "visibility" : true,
  191.                 "opacity" : 1,
  192.                 "selected" : false,
  193.                 "capability" : {
  194.                     "styles" : [],
  195.                     "srs" : {
  196.                         "CRS:84" : true,
  197.                         "EPSG:4326" : true,
  198.                         "EPSG:4258" : true,
  199.                         "EPSG:27700" : true
  200.                     },
  201.                     "bbox" : {
  202.                         "CRS:84" : {
  203.                             "bbox" : [-3.939321, 53.980009, -2.372387, 54.893196],
  204.                             "srs" : "CRS:84"
  205.                         },
  206.                         "EPSG:4326" : {
  207.                             "bbox" : [53.980009, -3.939321, 54.893196, -2.372387],
  208.                             "srs" : "EPSG:4326"
  209.                         },
  210.                         "EPSG:4258" : {
  211.                             "bbox" : [53.980009, -3.939321, 54.893196, -2.372387],
  212.                             "srs" : "EPSG:4258"
  213.                         },
  214.                         "EPSG:27700" : {
  215.                             "bbox" : [275589.3734, 455460.084, 375589.3734, 555460.084],
  216.                             "srs" : "EPSG:27700"
  217.                         }
  218.                     },
  219.                     "llbox" : [-3.939321, 53.980009, -2.372387, 54.893196],
  220.                     "queryable" : true,
  221.                     "cascaded" : 0,
  222.                     "opaque" : false,
  223.                     "noSubsets" : false,
  224.                     "fixedWidth" : 0,
  225.                     "fixedHeight" : 0,
  226.                     "minScale" : 0,
  227.                     "maxScale" : 1181175.595238000,
  228.                     "name" : "2",
  229.                     "title" : "Location",
  230.                     "abstract" : "Location",
  231.                     "prefix" : "2",
  232.                     "formats" : ["image/bmp", "image/jpeg", "image/tiff", "image/png", "image/gif", "image/svg+xml"],
  233.                     "infoFormats" : ["application/vnd.ogc.wms_xml", "text/xml", "text/html", "text/plain"]
  234.                 },
  235.                 "minScale" : 0,
  236.                 "maxScale" : 1181175.595238000
  237.             }
  238.         ]
  239.     },
  240.     "viewerTools" : [{
  241.             "leaf" : true,
  242.             "text" : "Pan map",
  243.             "checked" : true,
  244.             "iconCls" : "gxp-icon-pan",
  245.             "ptype" : "gxp_navigation",
  246.             "toggleGroup" : "navigation"
  247.         }, {
  248.             "leaf" : true,
  249.             "text" : "Zoom in / Zoom out",
  250.             "checked" : true,
  251.             "iconCls" : "gxp-icon-zoom-in",
  252.             "ptype" : "gxp_zoom"
  253.         }, {
  254.             "leaf" : true,
  255.             "text" : "Zoom to previous extent / Zoom to next extent",
  256.             "checked" : true,
  257.             "iconCls" : "gxp-icon-zoom-previous",
  258.             "ptype" : "gxp_navigationhistory"
  259.         }, {
  260.             "leaf" : true,
  261.             "text" : "Zoom to max extent",
  262.             "checked" : true,
  263.             "iconCls" : "gxp-icon-zoomtoextent",
  264.             "ptype" : "gxp_zoomtoextent"
  265.         }
  266.     ]
  267. }
Advertisement
Add Comment
Please, Sign In to add comment