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