if (!Prototype) throw new Error('Dependent library not found'); // Needs to be nicer, possibly iSharemaps-wide library error? if (!Astun) var Astun = {}; if (!Astun.iSharemaps) Astun.iSharemaps = {}; if (!Astun.iSharemaps.myNeighbourhood) Astun.iSharemaps.myNeighbourhood = {}; Astun.iSharemaps.myNeighbourhood.getSettings = function () { var settings = {} settings.forceThematic = true; settings.copyrght = '© Crown copyright. All rights reserved 10018816 2011.' settings.mapScales = [300000,150000,75000,37500,18750,9375] // these are the elements of the OpenLayers map settings.elements = {'map': 'atMap', 'layers': 'atLayers', 'thematics': 'atThematics'}; //this is the bounding box left, bottom, right, top settings.bounds = [400000,350000,490000,450000]; // this is the TileCache URL //settings.rasterUrl = 'http://davidc/tilecache/tilecache.py?'; //settings.rasterUrl = ['http://tc1.lasos.org.uk/Cache','http://tc2.lasos.org.uk/Cache','http://tc3.lasos.org.uk/Cache','http://tc4.lasos.org.uk/Cache','http://tc5.lasos.org.uk/Cache','http://tc6.lasos.org.uk/Cache']; //settings.rasterUrl = 'http://localhost/tilecache/Cache'; settings.rasterUrl = ['http://tc1.fluenttechnology.com/Cache/OSMap','http://tc2.fluenttechnology.com/Cache/OSMap','http://tc3.fluenttechnology.com/Cache/OSMap','http://tc4.fluenttechnology.com/Cache/OSMap','http://tc5.fluenttechnology.com/Cache/OSMap','http://tc6.fluenttechnology.com/Cache/OSMap']; // this tells OpenLayers that the rasters are coming from a Web Mapping Service - Can be change to TileCache once cache has been seeded settings.rasterType = 'TileCache'; //settings.rasterType = 'WMS'; settings.rasterOptions = {'format': 'image/jpeg'}; settings.ismUrl = 'MapGetImage.aspx'; settings.dataUrl = 'get/getData.aspx'; settings.queryDistances = '804~Half a mile|1609~1 mile|3218~2 miles|8047~5 miles|16094~10 miles'.split('|'); settings.queryResults = '1~One result|2~Two results|5~Five results|10~Ten results'.split('|'); settings.latestDate = '2009-01-31'; return settings; };