PageSourceSearch

https://graal-drilling-map.netlify.app/styles/DDHCollar_11_style.js

js graal-drilling-map.netlify.app collected 2026-10-03 10:51:12 UTC 5,612 bytes, 77 lines download raw bytes

1var size = 0;
2var placement = 'point';
3function categories_DDHCollar_11(feature, value, size, resolution, labelText,
4                       labelFont, labelFill, bufferColor, bufferWidth,
5                       placement) {
6                switch(value.toString()) {case '[\'GRL-22-30\', \'GRL-22-31\', \'GRL-22-32\', \'GRL-22-33\', \'GRL-22-34\', \'GRL-22-35\', \'GRL-22-36\', \'GRL-22-37\', \'GRL-22-37A\', \'GRL-22-38\', \'GRL-22-39\', \'GRL-22-40\', \'GRL-22-41\', \'GRL-22-42\', \'GRL-22-43\', \'GRL-22-44\', \'GRL-22-45\', \'GRL-22-46\', \'GRL-22-47\', \'GRL-22-48\', \'GRL-22-49\', \'GRL-22-50\', \'GRL-22-51\', \'GRL-22-52\', \'GRL-22-53\', \'GRL-22-54\', \'GRL-22-55\', \'GRL-22-56\', \'GRL-22-57\', \'GRL-22-58\', \'GRL-22-59\', \'GRL-22-60\', \'GRL-22-61\']':
7                    return [ new ol.style.Style({
8        image: new ol.style.Circle({radius: 4.0 + size,
9            stroke: new ol.style.Stroke({color: 'rgba(35,35,35,1.0)', lineDash: null, lineCap: 'butt', lineJoin: 'miter', width: 0}), fill: new ol.style.Fill({color: 'rgba(1,255,18,1.0)'})}),
10        text: createTextStyle(feature, resolution, labelText, labelFont,
11                              labelFill, placement, bufferColor,
12                              bufferWidth)
13    }),new ol.style.Style({
14        image: new ol.style.Circle({radius: 1.2 + size,
15            stroke: new ol.style.Stroke({color: 'rgba(35,35,35,1.0)', lineDash: null, lineCap: 'butt', lineJoin: 'miter', width: 0}), fill: new ol.style.Fill({color: 'rgba(1,255,18,1.0)'})}),
16        text: createTextStyle(feature, resolution, labelText, labelFont,
17                              labelFill, placement, bufferColor,
18                              bufferWidth)
19    })];
20                    break;
21case '[\'NRC-21-01\', \'NRC-21-01-W1\', \'NRC-21-01-W2\', \'NRC-21-01-W3\', \'NRC-21-02\', \'NRC-21-03\', \'NRC-21-04\', \'NRC-21-05\', \'NRC-21-06\', \'NRC-21-07\', \'NRC-21-08\', \'NRC-21-09\', \'NRC-21-10\', \'NRC-21-11\', \'NRC-21-12\', \'NRC-21-13\', \'NRC-21-14\', \'NRC-21-15\', \'NRC-21-16\', \'NRC-21-17\', \'NRC-21-18\', \'NRC-21-19\', \'NRC-21-20\', \'NRC-21-21\', \'NRC-21-22\', \'NRC-22-23\', \'NRC-22-24\', \'NRC-22-25\', \'NRC-22-26\', \'NRC-22-27\', \'NRC-22-28\', \'NRC-22-29\']':
22                    return [ new ol.style.Style({
23        image: new ol.style.Circle({radius: 4.0 + size,
24            stroke: new ol.style.Stroke({color: 'rgba(35,35,35,1.0)', lineDash: null, lineCap: 'butt', lineJoin: 'miter', width: 0}), fill: new ol.style.Fill({color: 'rgba(13,158,255,1.0)'})}),
25        text: createTextStyle(feature, resolution, labelText, labelFont,
26                              labelFill, placement, bufferColor,
27                              bufferWidth)
28    }),new ol.style.Style({
29        image: new ol.style.Circle({radius: 1.2 + size,
30            stroke: new ol.style.Stroke({color: 'rgba(35,35,35,1.0)', lineDash: null, lineCap: 'butt', lineJoin: 'miter', width: 0}), fill: new ol.style.Fill({color: 'rgba(13,158,255,1.0)'})}),
31        text: createTextStyle(feature, resolution, labelText, labelFont,
32                              labelFill, placement, bufferColor,
33                              bufferWidth)
34    })];
35                    break;
36case '[\'1279-00-08\', \'1279-00-09\', \'1279-00-10\', \'1279-00-15\', \'1279-00-16\', \'1279-00-17\', \'1279-00-18\', \'1279-00-19\', \'1279-00-20\', \'1279-00-21\', \'1279-00-22\', \'1279-00-23\', \'1279-00-24\', \'1279-00-25\', \'1279-00-26\', \'1279-01-35\', \'1279-01-36\', \'1279-01-37\', \'1279-03-38\', \'1279-03-39\', \'1279-03-39P\', \'1279-03-40\', \'1279-03-41\', \'1279-03-42\', \'1279-03-43\', \'1279-03-44\', \'1279-03-45\', \'1279-04-46\', \'1279-04-47\', \'1279-04-48\', \'1279-04-49\', \'1279-04-50\', \'1279-04-51\', \'MHY-97-01\', \'MHY-97-02\', \'MHY-97-03\', \'NA-97-01\', \'NA-97-02\', \'NA-97-03\', \'NA-97-04\', \'NB-97-01\', \'NB-97-02\']':
37                    return [ new ol.style.Style({
38        image: new ol.style.Circle({radius: 4.0 + size,
39            stroke: new ol.style.Stroke({color: 'rgba(35,35,35,1.0)', lineDash: null, lineCap: 'butt', lineJoin: 'miter', width: 0}
39), fill: new ol.style.Fill({color: 'rgba(255,255,255,1.0)'})}),
40        text: createTextStyle(feature, resolution, labelText, labelFont,
41                              labelFill, placement, bufferColor,
42                              bufferWidth)
43    }),new ol.style.Style({
44        image: new ol.style.Circle({radius: 1.2 + size,
45            stroke: new ol.style.Stroke({color: 'rgba(35,35,35,1.0)', lineDash: null, lineCap: 'butt', lineJoin: 'miter', width: 0}), fill: new ol.style.Fill({color: 'rgba(255,255,255,1.0)'})}),
46        text: createTextStyle(feature, resolution, labelText, labelFont,
47                              labelFill, placement, bufferColor,
48                              bufferWidth)
49    })];
50                    break;}};
51
52var style_DDHCollar_11 = function(feature, resolution){
53    var context = {
54        feature: feature,
55        variables: {}
56    };
57    var value = feature.get("Sondage");
58    var labelText = "";
59    size = 0;
60    var labelFont = "11.700000000000001px \'Arial\', sans-serif";
61    var labelFill = "#323232";
62    var bufferColor = "#fafafa";
63    var bufferWidth = 0.4;
64    var textAlign = "left";
65    var offsetX = 8;
66    var offsetY = 3;
67    var placement = 'point';
68    if ("" !== null) {
69        labelText = String("");
70    }
71    
72var style = categories_DDHCollar_11(feature, value, size, resolution, labelText,
73                          labelFont, labelFill, bufferColor,
74                          bufferWidth, placement);
75
76    return style;
77};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.