//ctrlSelectFeature.selectStyle = null

var styleMapDS;

function set_styleMapDS()
{
    var context = {
    };
    var template = {
        strokeColor: "#0000FF",
        strokeOpacity: 1,
        strokeWidth: 3,
        fillColor: "#00AAFF",
        fillOpacity: 1,
        pointRadius: 8,
        pointerEvents: "visiblePainted"
    };

    var templateB = {
        strokeColor: "#FFFF00",
        strokeOpacity: 1,
        strokeWidth: 3,
        fillColor: "#FFFF00",
        fillOpacity: 0.25,
        pointRadius: 5,
        pointerEvents: "visiblePainted"
    };

    styleMapDS = new OpenLayers.StyleMap( { "default" : new OpenLayers.Style(template, {context:context}), "select" : new OpenLayers.Style(templateB, {context:context})} );
}

set_styleMapDS();
//map.layers[map.aktLayer]["styleMap"]=styleMapDS;
//map.layers[map.aktLayer].redraw();

var styleMapLabelDS;

function set_styleMapLabelDS(attribute)
{
    var template = {
        strokeColor: "#0000FF",
        strokeOpacity: 1,
        strokeWidth: 3,
        fillColor: "#00AAFF",
        fillOpacity: 1,
        pointRadius: 5,
        pointerEvents: "visiblePainted",

        label : attribute,

        labelOffsetX: "10",
        labelOffsetY: "-10",
        fontColor: "red",
        fontSize: 10,
        fontFamily: "Arial",
        fontWeight: "bold",
        labelAlign: "lt"
    };
    var templateB = {
        strokeColor: "#FF00FF",
        strokeOpacity: 1,
        strokeWidth: 3,
        fillColor: "#AA00FF",
        fillOpacity: 1,
        pointRadius: 5,
        pointerEvents: "visiblePainted",

        label : attribute,

        labelOffsetX: "10",
        labelOffsetY: "-10",
        fontColor: "blue",
        fontSize: 10,
        fontFamily: "Arial",
        fontWeight: "bold",
        labelAlign: "lt"
    };
    styleMapLabelDS = new OpenLayers.StyleMap( { "default" : new OpenLayers.Style(template), "select" : new OpenLayers.Style(templateB) } );
}
set_styleMapLabelDS("${ADMIN_NAME}");

var styleMapLabelZoomDS;

function set_styleMapLabelZoomDS()
{
    var context = {
        getFontSize : function(){
            var diffZ = map.getZoom() - 14;
            return diffZ > 0 ? 7 + 3*diffZ +"px" : "0px";
        },
        getName : function (ft){
            return ft.attributes.name;
        }
    };
    var template = {
        strokeColor: "#0000FF",
        strokeOpacity: 1,
        strokeWidth: 3,
        fillColor: "#00AAFF",
        fillOpacity: 1,
        pointRadius: 8,
        pointerEvents: "visiblePainted",

        label : "${getName}",

        labelOffsetX: "10",
        labelOffsetY: "-10",
        fontColor: "red",
        fontSize: "${getFontSize}",
        fontFamily: "Arial",
        fontWeight: "bold",
        labelAlign: "lt"
    };

    var templateB = {
        strokeColor: "#FFFF00",
        strokeOpacity: 1,
        strokeWidth: 3,
        fillColor: "#FFFF00",
        fillOpacity: 0.25,
        pointRadius: 5,
        pointerEvents: "visiblePainted",

        label : "${getName}",

        labelOffsetX: "10",
        labelOffsetY: "-10",
        fontColor: "red",
        fontSize: "${getFontSize}",
        fontFamily: "Arial",
        fontWeight: "bold",
        labelAlign: "lt"
    };


    styleMapLabelZoomDS = new OpenLayers.StyleMap( { "default" : new OpenLayers.Style(template, {context:context}), "select" : new OpenLayers.Style(templateB, {context:context})} );
}

set_styleMapLabelZoomDS();
//map.layers[map.aktLayer]["styleMap"]=styleMapLabelZoomDS;
//map.layers[map.aktLayer].redraw();

var styleMapPuzzle;

function set_styleMapPuzzle()
{
    var context = {
        getSize : function(ft){
            return 500/map.getResolution()+1;
        },
        getName : function (ft){
            if(ft.attributes.name)
                return  '/CTemp/OLC_Puzzle/' + ft.attributes.name;
            else
            {   console.log(ft.attributes);
                return "/CTemp/OLC_Puzzle/phpTiles_1001.jpg";
            }
        }
    };
    var template = {
        strokeColor: "#0000FF",
        strokeOpacity: 1,
        strokeWidth: 3,
        fillColor: "#00AAFF",
        fillOpacity: 1,
        pointRadius: 10,
        pointerEvents: "visiblePainted",

        externalGraphic: "${getName}",
        graphicXOffset :  0,
        graphicYOffset :  0,
        graphicWidth   :"${getSize}",
        graphicHeight  :"${getSize}",
        rotation:0
    };

    styleMapPuzzle = new OpenLayers.StyleMap(new OpenLayers.Style(template, {context:context}) );
}
set_styleMapPuzzle();
//_aktLayer["styleMap"]=styleMapPuzzle;
//_aktLayer.redraw();

var styleMapRotation;
// for http://gis.ibbeck.de/ginfo/apps/planwerk/daten/images_1700_thumbs.gml

function set_styleMapRotation()
{
    var context = {
        getRotation : function(ft){
            return ft.attributes.GPSIMGDIRE;
        },
        getName : function (ft){
            if(ft.attributes.FILENAME)
                return ft.attributes.FILENAME.replace(/<img src='http:\/\/srv-arc2\/ginfo\/Mapfiles\/PROJEKTDATEN\/Nordbahntrasse\/thumbs\/rimg/,"").replace(/.jpg'>/,"");
            else
            {   console.log(ft.attributes);
                return "img";
            }
        }
    };
    var template = {
        strokeColor: "#0000FF",
        strokeOpacity: 1,
        strokeWidth: 3,
        fillColor: "#00AAFF",
        fillOpacity: 1,
        pointRadius: 10,
        pointerEvents: "visiblePainted",

        externalGraphic:"etc/images/dreher.png",
        graphicXOffset:-5,
        graphicYOffset:-5,
        rotation:"${getRotation}",

        label : "${getName}",

        labelOffsetX: "0",
        labelOffsetY: "0",
        fontColor: "red",
        fontSize: "10",
        fontFamily: "Arial",
        fontWeight: "bold",
        labelAlign: "lt"
    };

    styleMapRotation = new OpenLayers.StyleMap(new OpenLayers.Style(template, {context:context}) );
}
set_styleMapRotation();

var styleMapLabelZoom7; //WMS LVermA

function set_styleMapLabelZoom7()
{
    var context = {
        getFontSize : function(){
            var diffZ = map.getZoom() - 6;
            return diffZ > 0 ? 7 + 3*diffZ +"px" : "0px";
        },
        getName : function (ft){
            return ft.attributes.name;
        }
    };
    var template = {
        strokeColor: "#0000FF",
        strokeOpacity: 1,
        strokeWidth: 3,
        fillColor: "#00AAFF",
        fillOpacity: 1,
        pointRadius: 8,
        pointerEvents: "visiblePainted",

        label : "${getName}",

        labelOffsetX: "10",
        labelOffsetY: "-10",
        fontColor: "red",
        fontSize: "${getFontSize}",
        fontFamily: "Arial",
        fontWeight: "bold",
        labelAlign: "lt"
    };
    styleMapLabelZoom7 = new OpenLayers.StyleMap(new OpenLayers.Style(template, {context:context}) );
}

set_styleMapLabelZoom7();

var styleMapLabelZoom;

function set_styleMapLabelZoom()
{
    var context = {
        getFontSize : function(){
            var diffZ = map.getZoom() - 14;
            return diffZ > 0 ? 7 + 3*diffZ +"px" : "0px";
        },
        getName : function (ft){
            return ft.attributes.name;
        }
    };
    var template = {
        strokeColor: "#0000FF",
        strokeOpacity: 1,
        strokeWidth: 3,
        fillColor: "#00AAFF",
        fillOpacity: 1,
        pointRadius: 5,
        pointerEvents: "visiblePainted",

        label : "${getName}",

        labelOffsetX: "10",
        labelOffsetY: "-10",
        fontColor: "red",
        fontSize: "${getFontSize}",
        fontFamily: "Arial",
        fontWeight: "bold",
        labelAlign: "lt"
    };
    styleMapLabelZoom = new OpenLayers.StyleMap(new OpenLayers.Style(template, {context:context}) );
}

set_styleMapLabelZoom();
//map.layers[map.aktLayer]["styleMap"]=styleMapLabelZoom;
//map.layers[map.aktLayer].redraw();

//for map.aktLayer!

var styleMapBW;

function set_styleMapBW()
{
    var myStyleProperties = {
        pointRadius : 36,
        label      : "${BWLABEL}",
        fontSize   : "12px",
        fontFamily : "Arial",
        fontWeight : "bold",
        fontColor  : "yellow",
        labelOffsetX : "44",
        labelOffsetY : "-50",
        labelAlign : "cm"
    }

    var imgPath = "http://gis.ibbeck.de/ginfo/apps/Wuppertal/htdocs/Nordbahntrasse/";

    // prepare to style the data
    styleMapBW = new OpenLayers.StyleMap({
        strokeColor: "black",
        strokeWidth: 2,
        strokeOpacity: 0.5,
        fillOpacity: 1.0
    });
    var kategorie = {};
    kategorie["EÜ"]             = OpenLayers.Util.applyDefaults({ labelXOffset : "${LOX}", labelYOffset : "${LOY}", externalGraphic:imgPath + "img/bubble_${POS}_green.gif",     graphicXOffset:"${GOX}", graphicYOffset:"${GOY}" }, myStyleProperties);
    kategorie["Durchlass"]      = OpenLayers.Util.applyDefaults({ labelXOffset : "${LOX}", labelYOffset : "${LOY}", externalGraphic:imgPath + "img/bubble_${POS}_grey.gif",      graphicXOffset:"${GOX}", graphicYOffset:"${GOY}" }, myStyleProperties);
    kategorie["Prallwand"]      = OpenLayers.Util.applyDefaults({ labelXOffset : "${LOX}", labelYOffset : "${LOY}", externalGraphic:imgPath + "img/bubble_${POS}_grey.gif",      graphicXOffset:"${GOX}", graphicYOffset:"${GOY}" }, myStyleProperties);
    kategorie["Kaskade"]        = OpenLayers.Util.applyDefaults({ labelXOffset : "${LOX}", labelYOffset : "${LOY}", externalGraphic:imgPath + "img/bubble_${POS}_grey.gif",      graphicXOffset:"${GOX}", graphicYOffset:"${GOY}" }, myStyleProperties);
    kategorie["Personentunnel"] = OpenLayers.Util.applyDefaults({ labelXOffset : "${LOX}", labelYOffset : "${LOY}", externalGraphic:imgPath + "img/bubble_${POS}_grey.gif",      graphicXOffset:"${GOX}", graphicYOffset:"${GOY}" }, myStyleProperties);
    kategorie["Treppenanlage"]  = OpenLayers.Util.applyDefaults({ labelXOffset : "${LOX}", labelYOffset : "${LOY}", externalGraphic:imgPath + "img/bubble_${POS}_grey.gif",      graphicXOffset:"${GOX}", graphicYOffset:"${GOY}" }, myStyleProperties);
    kategorie["Schachtgebäude"] = OpenLayers.Util.applyDefaults({ labelXOffset : "${LOX}", labelYOffset : "${LOY}", externalGraphic:imgPath + "img/bubble_${POS}_grey.gif",      graphicXOffset:"${GOX}", graphicYOffset:"${GOY}" }, myStyleProperties);
    kategorie["Stützwand"]      = OpenLayers.Util.applyDefaults({ labelXOffset : "${LOX}", labelYOffset : "${LOY}", externalGraphic:imgPath + "img/bubble_${POS}_orange.gif",    graphicXOffset:"${GOX}", graphicYOffset:"${GOY}" }, myStyleProperties);
    kategorie["Tunnel"]         = OpenLayers.Util.applyDefaults({ labelXOffset : "${LOX}", labelYOffset : "${LOY}", externalGraphic:imgPath + "img/bubble_${POS}_lila.gif",      graphicXOffset:"${GOX}", graphicYOffset:"${GOY}" }, myStyleProperties);
    kategorie["SÜ"]             = OpenLayers.Util.applyDefaults({ labelXOffset : "${LOX}", labelYOffset : "${LOY}", externalGraphic:imgPath + "img/bubble_${POS}_blue.gif",      graphicXOffset:"${GOX}", graphicYOffset:"${GOY}" }, myStyleProperties);
    kategorie["Viadukt"]        = OpenLayers.Util.applyDefaults({ labelXOffset : "${LOX}", labelYOffset : "${LOY}", externalGraphic:imgPath + "img/bubble_${POS}_lightblue.gif", graphicXOffset:"${GOX}", graphicYOffset:"${GOY}" }, myStyleProperties);
    kategorie["Bahnsteigdach"]  = OpenLayers.Util.applyDefaults({ labelXOffset : "${LOX}", labelYOffset : "${LOY}", externalGraphic:imgPath + "img/bubble_${POS}_lightred.gif",  graphicXOffset:"${GOX}", graphicYOffset:"${GOY}" }, myStyleProperties);
    kategorie["Bahnsteigzugang"]= OpenLayers.Util.applyDefaults({ labelXOffset : "${LOX}", labelYOffset : "${LOY}", externalGraphic:imgPath + "img/bubble_${POS}_lightred.gif",  graphicXOffset:"${GOX}", graphicYOffset:"${GOY}" }, myStyleProperties);
    kategorie["Bahnsteig"]      = OpenLayers.Util.applyDefaults({ labelXOffset : "${LOX}", labelYOffset : "${LOY}", externalGraphic:imgPath + "img/bubble_${POS}_lightred.gif",  graphicXOffset:"${GOX}", graphicYOffset:"${GOY}" }, myStyleProperties);

    // add unique value rules with your color lookup
    styleMapBW.addUniqueValueRules("default", "BWART", kategorie);

    /* führt bei rules[i].filter zu null?
    var rules = [new OpenLayers.Rule({
    symbolizer: OpenLayers.Util.applyDefaults({ externalGraphic:imgPath + "img/bubble_${POS}_red.gif",      graphicXOffset:0, graphicYOffset:-4 }, myStyleProperties),
    elseFilter: true
    })];
    styleMapBW.styles["default"].addRules(rules);
    */
}

set_styleMapBW();
//var lyr = map.layers[map.aktLayer];
//lyr.styleMap = styleMapBW;
//lyr.refresh();

var styleMapCapitols;
/*
function setStyleMapCapitols()
{
    styleMapCapitols = new OpenLayers.StyleMap({fillColor: '#FFAADD', pointRadius: 5});

    var popArrO = [0.5      ,     0.5  , 0.5      , 0.5      , 0.5      , 0.5      , 0.5      , 0.5      , 0.75     , 0.75     , 0.75];
    var popArrW = [1        ,     1    , 1        , 1        , 1        , 1        , 2        , 2        , 2        , 2        , 2 ];
    var popArrR = [2        ,     2    , 3        , 3        , 4        , 4        , 5        , 5        , 6        , 7        , 10];
    var popArrC = ['#FFFF00', '#00FF00', '#AA00FF', '#0000FF', '#FF8800', '#FF0000', '#FFAAAA', '#AAFFAA', '#AAAAFF', '#FF00FF', '#FF00AA'];

    var lookup = {};  //popclass beginnt mit 1!
    for(var i=0;i<11;i++)
        lookup[i+1]    = {pointRadius: popArrR[i], fillColor: popArrC[i], fillOpacity: popArrO[i], strokeWidth: popArrW[i], strokeColor: popArrC[i]};

    styleMapCapitols.addUniqueValueRules("default", "popclass", lookup);
}
setStyleMapCapitols();
*/

//output=fmtJSON(styleMapCapitols);
function setStyleMapCapitols()
{
    var context = {
        getFontSize : function(ft){

            var diffZ = map.getZoom() - 4;
            var popclass = parseInt(ft.attributes.popclass);

            if(popclass > 10 && map.getZoom() > 1)
                return(map.getZoom() + 7 + "px");
            else if(diffZ > 0 && popclass>9)
                return (10 + 1*diffZ +"px")
            else if(diffZ > 0)
                return (8 + 1*diffZ +"px")
            else
                return("0px");
        },
        getName : function (ft){
            return ft.attributes.name;
        }
    };
    var template = {
        strokeColor: "#0000FF",
        strokeOpacity: 1,
        strokeWidth: 3,
        fillColor: "#00AAFF",
        fillOpacity: 1,
        pointRadius: 5,
        pointerEvents: "visiblePainted",

        label : "${getName}",

        labelOffsetX: "10",
        labelOffsetY: "-10",
        fontColor: "red",
        fontSize: "${getFontSize}",
        fontFamily: "Arial",
        fontWeight: "bold",
        labelAlign: "lt"
    };
    styleMapCapitols = new OpenLayers.StyleMap(new OpenLayers.Style(template, {context:context}) );

    //styleMapCapitols = new OpenLayers.StyleMap();
    var tata = {fillColor: '#FFAADD', pointRadius: 5, label : "${getName}",labelOffsetX: "10",labelOffsetY: "20",fontColor: "yellow",fontSize: "${getFontSize}",fontFamily: "Arial",fontWeight: "bold",labelAlign: "lt"}

    var popArrO = [0.5      ,     0.5  , 0.5      , 0.5      , 0.5      , 0.5      , 0.5      , 0.5      , 0.75     , 0.75     , 0.75];
    var popArrW = [1        ,     1    , 1        , 1        , 1        , 1        , 2        , 2        , 2        , 2        , 2 ];
    var popArrR = [2        ,     2    , 3        , 3        , 4        , 4        , 5        , 5        , 6        , 7        , 10];
    var popArrC = ['#FFFF00', '#00FF00', '#AA00FF', '#0000FF', '#FF8800', '#FF0000', '#FFAAAA', '#AAFFAA', '#AAAAFF', '#FF00FF', '#FF00AA'];

    var lookup = {};  //popclass beginnt mit 1!
    for(var i=0;i<11;i++)
        //lookup[i+1]    = {pointRadius: popArrR[i], fillColor: popArrC[i], fillOpacity: popArrO[i], strokeWidth: popArrW[i], strokeColor: popArrC[i]};
        lookup[i+1]    = new OpenLayers.Util.applyDefaults({pointRadius: popArrR[i], fillColor: popArrC[i], fillOpacity: popArrO[i], strokeWidth: popArrW[i], strokeColor: popArrC[i]}, tata);

    styleMapCapitols.addUniqueValueRules("default", "popclass", lookup);
}
setStyleMapCapitols();
//map.layers[map.aktLayer]["styleMap"]=styleMapCapitols;
//map.layers[map.aktLayer].redraw();

var styleMapLabel = new OpenLayers.StyleMap({'default':{
    externalGraphic: "/g-info/apps/Wuppertal/htdocs/Astropfad/Tafeln/IMG_TAFEL.gif",
    pointRadius: 10,

    label : "${name}",

    labelOffsetX: "16",
    labelOffsetY: "-22",
    fontColor: "yellow",
    fontSize: "14px",
    fontFamily: "Arial",
    fontWeight: "bold",
    labelAlign: "lt"
}});

var styleMapLabelA = new OpenLayers.StyleMap({'default':{
    strokeColor: "#FF0000",
    strokeOpacity: 1,
    strokeWidth: 3,
    fillColor: "#FF5500",
    fillOpacity: 0,
    pointRadius: 10,
    pointerEvents: "visiblePainted",

    label : "${name}",

    labelOffsetX: "10",
    labelOffsetY: "20",
    fontColor: "black",
    fontSize: "10px",
    fontFamily: "Arial",
    fontWeight: "bold",
    labelAlign: "lt"
}});

var styleMapLabelB = new OpenLayers.StyleMap({'default':{
    strokeColor: "#0000FF",
    strokeOpacity: 1,
    strokeWidth: 3,
    fillColor: "#00AAFF",
    fillOpacity: 1,
    pointRadius: 5,
    pointerEvents: "visiblePainted",

    label : "${name}",

    labelOffsetX: "10",
    labelOffsetY: "-10",
    fontColor: "red",
    fontSize: "10px",
    fontFamily: "Arial",
    fontWeight: "bold",
    labelAlign: "lt"
}});

var styleMapGeoPoints;
var styleMapGeoPoints_;

var styleMapGeoPointsD;
var styleMapGeoPointsT;
var styleMapGeoPointsK;
var styleMapGeoPointsS;
var styleMapGeoPointsM;
var styleMapGeoPointsI;

function set_styleMapGeoPoints_()
{
    // prepare to style the data
    styleMapGeoPoints_ = new OpenLayers.StyleMap({
        strokeColor: "black",
        strokeWidth: 2,
        strokeOpacity: 0.5,
        fillOpacity: 0.2
    });
    var kategorie = {};
    kategorie["MARKER"]   = {fillColor: "#FF0000", fillOpacity:0.75, graphicName:"square",    pointRadius:6, label:"${name}"   , fontColor: "blue", fontSize: "14px", fontFamily: "Arial", fontWeight: "bold", labelAlign: "lt"};
    kategorie["TURM"]     = {fillColor: "#00FFFF", fillOpacity:0.75, graphicName:"circle",    pointRadius:8, label:"${name}"   , fontColor: "red", fontSize: "14px", fontFamily: "Arial", fontWeight: "bold", labelAlign: "lt"};
    kategorie["DENKMAL"]  = {fillColor: "#00FF00", fillOpacity:0.75, graphicName:"star",      pointRadius:10, label : "${name}", fontColor: "yellow", fontSize: "14px", fontFamily: "Arial", fontWeight: "bold", labelAlign: "lt"};
    kategorie["KIRCHE"]   = {fillColor: "#FF00FF", fillOpacity:0.75, graphicName:"cross",     pointRadius:8, label:"${name}",    fontColor: "cyan", fontSize: "14px", fontFamily: "Arial", fontWeight: "bold", labelAlign: "lt"};
    kategorie["HINWEIS"]  = {fillColor: "#FF8000", fillOpacity:0.75, graphicName:"triangle",  pointRadius:8, label:"${name}",  fontColor: "orange", fontSize: "14px", fontFamily: "Arial", fontWeight: "bold", labelAlign: "lt"};
    kategorie["SIEDLUNG"] = {fillColor: "#AACCFF", fillOpacity:0.45, graphicName:"square",    pointRadius:14, strokeColor:"#AACCFF", label:"${name}", fontColor: "yellow", fontSize: "14px", fontFamily: "Arial", fontWeight: "bold", labelAlign: "lt"};

    // add unique value rules with your color lookup
    styleMapGeoPoints_.addUniqueValueRules("default", "kategorie", kategorie);

    var rules = [new OpenLayers.Rule({
    symbolizer: {strokeColor:"#FF0000",strokeWidth: 2, pointRadius:5},
    elseFilter: true
    })];
    //styleMapGeoPoints.styles["default"].addRules(rules);
}

function set_styleMapGeoPoints()
{
    // prepare to style the data
    styleMapGeoPoints = new OpenLayers.StyleMap({
        strokeColor: "black",
        strokeWidth: 2,
        strokeOpacity: 0.5,
        fillOpacity: 0.2
    });
    var kategorie = {};
    kategorie["MARKER"]   = {fillColor: "#FF0000", fillOpacity:0.75, graphicName:"square",    pointRadius:6};
    kategorie["TURM"]     = {fillColor: "#00FFFF", fillOpacity:0.75, graphicName:"circle",    pointRadius:8};
    kategorie["DENKMAL"]  = {fillColor: "#00FF00", fillOpacity:0.75, graphicName:"star",      pointRadius:10};
    kategorie["KIRCHE"]   = {fillColor: "#FF00FF", fillOpacity:0.75, graphicName:"cross",     pointRadius:8};
    kategorie["HINWEIS"]  = {fillColor: "#FF8000", fillOpacity:0.75, graphicName:"triangle",  pointRadius:8};
    kategorie["SIEDLUNG"] = {fillColor: "#AACCFF", fillOpacity:0.45, graphicName:"square",    pointRadius:14, strokeColor:"#AACCFF"};

    // add unique value rules with your color lookup
    styleMapGeoPoints.addUniqueValueRules("default", "kategorie", kategorie);

    var rules = [new OpenLayers.Rule({
    symbolizer: {strokeColor:"#FF0000",strokeWidth: 2, pointRadius:5},
    elseFilter: true
    })];
    //styleMapGeoPoints.styles["default"].addRules(rules);
}

function set_styleMapGeoPointsI()
{
    styleMapGeoPointsD = new OpenLayers.StyleMap({
        strokeColor: "black",
        strokeWidth: 2,
        strokeOpacity: 0.5,
        fillOpacity: 0.2
    });
    var kategorie = {};
    kategorie["DENKMAL"]  = {fillColor: "#00FF00", fillOpacity:0.75, graphicName:"star",      pointRadius:10};
    styleMapGeoPointsD.addUniqueValueRules("default", "kategorie", kategorie);

    styleMapGeoPointsT = new OpenLayers.StyleMap({
        strokeColor: "black",
        strokeWidth: 2,
        strokeOpacity: 0.5,
        fillOpacity: 0.2
    });
    var kategorie = {};
    kategorie["TURM"]     = {fillColor: "#00FFFF", fillOpacity:0.75, graphicName:"circle",    pointRadius:8};
    styleMapGeoPointsT.addUniqueValueRules("default", "kategorie", kategorie);

    styleMapGeoPointsK = new OpenLayers.StyleMap({
        strokeColor: "black",
        strokeWidth: 2,
        strokeOpacity: 0.5,
        fillOpacity: 0.2
    });
    var kategorie = {};
    kategorie["KIRCHE"]   = {fillColor: "#FF00FF", fillOpacity:0.75, graphicName:"cross",     pointRadius:8};
    styleMapGeoPointsK.addUniqueValueRules("default", "kategorie", kategorie);

    styleMapGeoPointsI = new OpenLayers.StyleMap({
        strokeColor: "black",
        strokeWidth: 2,
        strokeOpacity: 0.5,
        fillOpacity: 0.2
    });
    var kategorie = {};
    kategorie["HINWEIS"]  = {fillColor: "#FF8000", fillOpacity:0.75, graphicName:"triangle",  pointRadius:8};
    styleMapGeoPointsI.addUniqueValueRules("default", "kategorie", kategorie);

    styleMapGeoPointsS = new OpenLayers.StyleMap({
        strokeColor: "black",
        strokeWidth: 2,
        strokeOpacity: 0.5,
        fillOpacity: 0.2
    });
    var kategorie = {};
    kategorie["SIEDLUNG"] = {fillColor: "#AACCFF", fillOpacity:0.45, graphicName:"square",    pointRadius:14, strokeColor:"#AACCFF"};
    styleMapGeoPointsS.addUniqueValueRules("default", "kategorie", kategorie);

    styleMapGeoPointsM = new OpenLayers.StyleMap({
        strokeColor: "black",
        strokeWidth: 2,
        strokeOpacity: 0.5,
        fillOpacity: 0.2
    });
    var kategorie = {};
    kategorie["MARKER"]   = {fillColor: "#FF0000", fillOpacity:0.75, graphicName:"square",    pointRadius:6};
    styleMapGeoPointsM.addUniqueValueRules("default", "kategorie", kategorie);
}

set_styleMapGeoPoints();
set_styleMapGeoPoints_();
set_styleMapGeoPointsI();


