blob: 54b88bfe35a26ecb2c9770f60f6c5c3ab8efcfea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Functionality required by all OpenLayers WMS base maps
fixmystreet.maps.setup_wms_base_map = function() {
fixmystreet.map_type = OpenLayers.Layer.WMS;
fixmystreet.map_options = {
maxExtent: this.layer_bounds,
units: 'm'
};
fixmystreet.layer_options = [];
$.each(fixmystreet.wms_config.layer_names, function(i, v) {
fixmystreet.layer_options.push(OpenLayers.Util.extend({
projection: new OpenLayers.Projection(fixmystreet.wms_config.map_projection),
name: v,
layer: v,
url: fixmystreet.wms_config.tile_urls[i]
}, fixmystreet.wms_config));
});
};
|