是否可以使用离子定制标题的颜色?根据自定义,我的意思是使用自定义颜色,而不是定义的颜色之一bar-something.我试过这个,但它似乎没有用
<ion-nav-bar class="bar-positive custom-dark">
</ion-nav-bar>
Run Code Online (Sandbox Code Playgroud)
在CSS中:
.custom-dark{
color : #30393A;
}
Run Code Online (Sandbox Code Playgroud)
我似乎无法改变蓝色.
我使用此代码将具有单个功能的kml文件转换为GeoJson文件。
String kmlToGeoJson(String fileName)
throws IOException, ParserConfigurationException, SAXException, XMLStreamException {
FileInputStream reader = new FileInputStream(fileName);
PullParser parser = new PullParser(new KMLConfiguration(),reader, SimpleFeature.class);
FeatureJSON fjson = new FeatureJSON();
FileWriter tmp = new FileWriter(fileName + ".geojson");
BufferedWriter writer = new BufferedWriter(tmp);
SimpleFeature simpleFeature = (SimpleFeature) parser.parse();
while (simpleFeature != null) {
fjson.writeFeature(simpleFeature, writer);
simpleFeature = (SimpleFeature) parser.parse();
}
return "success";
}
Run Code Online (Sandbox Code Playgroud)
但是,当我使用具有多种功能的Kml文件时:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>KmlFile</name>
<Style id="west_campus_style">
<IconStyle>
<Icon>
<href>https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png
</href>
</Icon>
</IconStyle>
<BalloonStyle>
<text>$[video]</text>
</BalloonStyle>
</Style>
<Placemark> …Run Code Online (Sandbox Code Playgroud)