Skip to content
Snippets Groups Projects
Commit 5b85d41e authored by Glenn Vorhes's avatar Glenn Vorhes
Browse files

add caching url generator

parent c25cf398
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ exports.makeServiceUrl = makeServiceUrl;
function localCacheUrl(folder, service) {
var loc = window.location.href;
var url = "/mapserver/" + folder + "/" + service;
if (loc.indexOf('http://transportal.cee.wisc.edu') > -1) {
if (loc.indexOf('transportal.cee.wisc.edu') > -1) {
if (loc.toLowerCase().indexOf('webmapsstage') > -1) {
url = 'https://transportal.cee.wisc.edu/gis/webmapsstage' + url;
}
......
This diff is collapsed.
......@@ -27,7 +27,7 @@ export function localCacheUrl(folder: string, service: string): string{
let url = `/mapserver/${folder}/${service}`;
if (loc.indexOf('http://transportal.cee.wisc.edu') > -1){
if (loc.indexOf('transportal.cee.wisc.edu') > -1){
if (loc.toLowerCase().indexOf('webmapsstage') > -1){
url = 'https://transportal.cee.wisc.edu/gis/webmapsstage' + url;
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment