Remove comment.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Sat, 2 Jan 2021 16:57:46 +0000 (17:57 +0100)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Sat, 2 Jan 2021 16:57:46 +0000 (17:57 +0100)
wrmap.js

index 24d4b69b4c31a987838b590cd926b25c6fe9290c..3994c4874834aee9822f3c037a0da8239b2eea5b 100644 (file)
--- a/wrmap.js
+++ b/wrmap.js
@@ -216,120 +216,6 @@ function init_wrmap(i, jq_map) {
        }
 
 
-       /*
-       // point layer
-       // -----------
-       var filter_point_sledrun = new OpenLayers.Filter.Comparison({
-               type: OpenLayers.Filter.Comparison.EQUAL_TO,
-               property: 'type',
-               value: 'sledrun'
-       });
-
-
-       var layer_point = new OpenLayers.Layer.Vector("Point", {
-               styleMap: new OpenLayers.StyleMap({
-                       'default': new OpenLayers.Style({
-                                       graphicZIndex: 12,
-                                       backgroundGraphicZIndex: 11,
-                               }, {
-                                       context: {
-                                               // the following context functions should only be available in the rule that uses them,
-                                               // but the rule dependent contexts are ignored by OpenLayers (I think that's a bug)
-                                               getCondition: get_sledrun_condition,
-                                               getSymbol: function(feature) {
-                                                       var name = feature.attributes.type;
-                                                       return name;
-                                               }
-                                       },
-                                       rules: [
-                                               new OpenLayers.Rule({
-                                                       filter: filter_point_sledrun,
-                                                       symbolizer: {
-                                                               externalGraphic: img_path + '/marker_c_sledrun_${getCondition}nn.png',
-                                                               graphicWidth: 17,
-                                                               graphicHeight: 17,
-                                                               graphicXOffset: -8,
-                                                               graphicYOffset: -8,
-                                                               backgroundGraphic: img_path + '/marker_c_shadow.png',
-                                                               backgroundWidth: 23,
-                                                               backgroundHeight: 23,
-                                                               backgroundXOffset: -8,
-                                                               backgroundYOffset: -8,
-                                                       }
-                                               }),
-                                               new OpenLayers.Rule({
-                                                       elseFilter: true,
-                                                       symbolizer: {
-                                                               externalGraphic: img_path + '/marker_p_${getSymbol}.png',
-                                                               graphicWidth: 20,
-                                                               graphicHeight: 34,
-                                                               graphicXOffset: -10,
-                                                               graphicYOffset: -33,
-                                                       }
-                                               })
-                                       ]
-                               }),
-                       highlight: new OpenLayers.Style({
-                                       label: "${getTitle}",
-                                       labelOutlineColor: "white",
-                                       fontWeight: "bold"
-                               }, {
-                                       context: {
-                                               getCondition: get_sledrun_condition,
-                                               getTitle: function(feature) {
-                                                       var title = '';
-                                                       if (feature.attributes.type != 'point') {
-                                                               title = feature.attributes.type;
-                                                               title = title.charAt(0).toUpperCase() + title.slice(1); // First letter uppercase
-                                                               if (feature.attributes.name !== undefined) title += ': ';
-                                                       }
-                                                       if (feature.attributes.name !== undefined) title += feature.attributes.name;
-                                                       return title;
-                                               }
-                                       },
-                                       rules: [
-                                               new OpenLayers.Rule({
-                                                       filter: filter_point_sledrun,
-                                                       symbolizer: {
-                                                               label: "${name}",
-                                                               labelYOffset: 14,
-                                                               externalGraphic: img_path + '/marker_c_sledrun_${getCondition}nh.png'
-                                                       }
-                                               }),
-                                               new OpenLayers.Rule({
-                                                       elseFilter: true,
-                                                       symbolizer: {
-                                                               labelYOffset: 40
-                                                       }
-                                               })
-                                       ]
-                               }),
-                       select: new OpenLayers.Style({
-                                       fillOpacity: 1.
-                               }, {
-                                       context: {
-                                               getCondition: get_sledrun_condition,
-                                       },
-                                       rules: [
-                                               new OpenLayers.Rule({
-                                                       filter: filter_point_sledrun,
-                                                       symbolizer: {
-                                                               externalGraphic: img_path + '/marker_c_sledrun_${getCondition}nh.png',
-                                                               backgroundGraphic: false,
-                                                               graphicXOffset: -6,
-                                                               graphicYOffset: -6
-                                                       }
-                                               }),
-                                               new OpenLayers.Rule({
-                                                       elseFilter: true
-                                               })
-                                       ]
-                               })
-               }),
-               rendererOptions: {yOrdering: true}
-       });
-
-*/
        // map itself
        // ----------
        var lon = json_js.properties.lon;