Converts a CSS literal which has been converted to a map to KML and appends it to the XML produced by the writer.
88 if(geomtype.equals(
"Polygon")) {
89 writer.writeStartElement(
"PolyStyle");
90 if(cssMap.containsKey(
"color")) {
91 writer.writeStartElement(
"color");
92 writer.writeCharacters(cssMap.get(
"color"));
93 writer.writeEndElement();
94 writer.writeStartElement(
"colorMode");
95 writer.writeCharacters(
"normal");
96 writer.writeEndElement();
98 if(cssMap.containsKey(
"fill")) {
99 writer.writeStartElement(
"fill");
100 writer.writeCharacters(cssMap.get(
"fill").replace(
"\\\"",
"").replace(
"^",
"").replace(
"http",
"").replace(
"true",
"1").replace(
"false",
"0").trim());
101 writer.writeEndElement();
103 if(cssMap.containsKey(
"stroke")) {
104 writer.writeStartElement(
"outline");
105 writer.writeCharacters(cssMap.get(
"stroke").replace(
"\\\"",
"").replace(
"^",
"").replace(
"http",
"").replace(
"true",
"1").replace(
"false",
"0").trim());
106 writer.writeEndElement();
108 writer.writeEndElement();
109 }
else if(geomtype.equals(
"LineString")) {
110 writer.writeStartElement(
"LineStyle");
111 if(cssMap.containsKey(
"color")) {
112 writer.writeStartElement(
"color");
113 writer.writeCharacters(cssMap.get(
"color"));
114 writer.writeEndElement();
115 writer.writeStartElement(
"colorMode");
116 writer.writeCharacters(
"normal");
117 writer.writeEndElement();
119 if(cssMap.containsKey(
"stroke-width")) {
120 writer.writeStartElement(
"width");
121 writer.writeCharacters(cssMap.get(
"stroke-width"));
122 writer.writeEndElement();
124 writer.writeEndElement();
125 }
else if(geomtype.equals(
"Point")) {
126 if(cssMap.containsKey(
"color")) {
127 writer.writeStartElement(
"color");
128 writer.writeCharacters(cssMap.get(
"color"));
129 writer.writeEndElement();
130 writer.writeStartElement(
"colorMode");
131 writer.writeCharacters(
"normal");
132 writer.writeEndElement();
134 if(cssMap.containsKey(
"stroke-width")) {
135 writer.writeStartElement(
"width");
136 writer.writeCharacters(cssMap.get(
"stroke-width"));
137 writer.writeEndElement();