- if (feature.geometry.CLASS_NAME == 'OpenLayers.Geometry.Point') {
- if (feature.attributes.type == 'sledrun') {
- var condition = feature.attributes.condition;
- if (condition === undefined) condition = 0;
- feature.attributes.externalGraphic = 'bahnzustand' + condition + '_0.png';
- feature.attributes.graphicWidth = 17;
- feature.attributes.graphicHeight = 17;
- feature.attributes.graphicXOffset = -8;
- feature.attributes.graphicYOffset = -8;
- } else {
- var name = POINT_NAME[feature.attributes.type];
- if (feature.attributes.type == 'point' || name === undefined)
- feature.attributes.externalGraphic = 'gmap.png';
- else
- feature.attributes.externalGraphic = 'gmap' + name + '.png';
- feature.attributes.graphicWidth = 20;
- feature.attributes.graphicHeight = 34;
- feature.attributes.graphicXOffset = -10;
- feature.attributes.graphicYOffset = -33;
- }
- features_point.push(feature);
- } else features_path.push(feature);