1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
function addLayers(map) {
{{if projection==900913:}}
{{if openstreetmap:}}
{{include 'gis/ol_layers_openstreetmap.js'}}
{{pass}}
{{if google:}}
{{include 'gis/ol_layers_google.js'}}
{{pass}}
{{if yahoo:}}
{{include 'gis/ol_layers_yahoo.js'}}
{{pass}}
{{if bing:}}
{{include 'gis/ol_layers_bing.js'}}
{{pass}}
{{else:}}
// Disable other base layers since using a non-sphericalMercator WMS projection
{{pass}}
{{include 'gis/ol_layers_tms.js'}}
{{include 'gis/ol_layers_wms.js'}}
{{include 'gis/ol_layers_xyz.js'}}
var style_marker = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']);
style_marker.graphicOpacity = 1;
var icon_img = new Image();
var max_w = 25;
var max_h = 35;
var width, height;
var iconURL;
var strategy = new OpenLayers.Strategy.Cluster({distance: {{=cluster_distance}}, threshold: {{=cluster_threshold}}});
{{include 'gis/ol_layers_georss.js'}}
{{include 'gis/ol_layers_gpx.js'}}
{{include 'gis/ol_layers_kml.js'}}
{{include 'gis/ol_layers_js.js'}}
}
|