Skip to content

Commit

Permalink
make geoserver url configurable since SFMTA now has it at the root level
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart van den Eijnden committed Jul 18, 2014
1 parent ccaebed commit f25c6c4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
7 changes: 4 additions & 3 deletions app/static/image-browser/index.html
Expand Up @@ -32,6 +32,7 @@
OpenLayers.ImgPath = "../externals/openlayers/img/";
OpenLayers.Layer.WMS.prototype.DEFAULT_PARAMS.transparent = true;
OpenLayers.DOTS_PER_INCH = 25.4 / 0.28;
var geoserver = '/geoserver';
var app = new gxp.Viewer({
listeners: {
'portalready': function() {
Expand Down Expand Up @@ -130,15 +131,15 @@
anchored: false,
layerName: "asbuilt:images",
rectifiedLayerName: "asbuilt:sfmta_rectified_images",
url: "/geoserver/wms",
url: geoserver + "/wms",
width: 600,
height: 400
}
}, {
ptype: "app_geocoder",
outputTarget: "paneltbar",
outputConfig: {
url: "/geoserver/wfs",
url: geoserver + "/wfs",
featureType: "SFADDRESSPOINTS",
featurePrefix: "asbuilt",
srsName: "EPSG:900913",
Expand Down Expand Up @@ -223,7 +224,7 @@
defaultSourceType: "gxp_wmssource",
sources: {
local: {
url: "/geoserver/ows",
url: geoserver + "/ows",
title: "Local GeoServer",
version: "1.1.1"
},
Expand Down
3 changes: 2 additions & 1 deletion app/static/image-rectifier/index.html
Expand Up @@ -31,6 +31,7 @@
OpenLayers.ImgPath = "../externals/openlayers/img/";
OpenLayers.Layer.WMS.prototype.DEFAULT_PARAMS.transparent = true;
OpenLayers.DOTS_PER_INCH = 25.4 / 0.28;
var geoserver = "/geoserver";

var portalsReady = 0;
var createViewport = function() {
Expand All @@ -48,7 +49,7 @@
}
};

var localGeoserver = "/geoserver/ows";
var localGeoserver = geoserver + "/ows";
var layerName = "asbuilt:images";
// this is the base path on the server where rectified images will be saved
var saveBasePath = "/usr/share/opengeo-suite-data/geoserver_data/sfmta_rectified_images/"
Expand Down
7 changes: 4 additions & 3 deletions app/static/image-tagger/index.html
Expand Up @@ -33,6 +33,7 @@
OpenLayers.ImgPath = "../externals/openlayers/img/";
OpenLayers.Layer.WMS.prototype.DEFAULT_PARAMS.transparent = true;
OpenLayers.DOTS_PER_INCH = 25.4 / 0.28;
var geoserver = "/geoserver";
var app = new gxp.Viewer({
listeners: {
'portalready': function() {
Expand Down Expand Up @@ -130,7 +131,7 @@
anchored: false,
layerName: "asbuilt:images",
rectifiedLayerName: "asbuilt:sfmta_rectified_images",
url: "/geoserver/ows",
url: geoserver + "/ows",
readOnly: false,
width: 600,
height: 400
Expand All @@ -139,7 +140,7 @@
ptype: "app_geocoder",
outputTarget: "paneltbar",
outputConfig: {
url: "/geoserver/wfs",
url: geoserver + "/wfs",
featureType: "SFADDRESSPOINTS",
featurePrefix: "asbuilt",
srsName: "EPSG:900913",
Expand Down Expand Up @@ -230,7 +231,7 @@
defaultSourceType: "gxp_wmssource",
sources: {
local: {
url: "/geoserver/ows",
url: geoserver + "/ows",
title: "Local GeoServer",
version: "1.1.1"
},
Expand Down

0 comments on commit f25c6c4

Please sign in to comment.