小编Mel*_*Mel的帖子

使用自定义颜色覆盖Ionic Header

是否可以使用离子定制标题的颜色?根据自定义,我的意思是使用自定义颜色,而不是定义的颜色之一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)

这是一个codePen

我似乎无法改变蓝色.

html css angularjs ionic-framework ionic

5
推荐指数
2
解决办法
2万
查看次数

将具有多种功能的Kml转换为Geojson

我使用此代码将具有单个功能的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)

java gis kml geojson geotools

4
推荐指数
1
解决办法
1798
查看次数

标签 统计

angularjs ×1

css ×1

geojson ×1

geotools ×1

gis ×1

html ×1

ionic ×1

ionic-framework ×1

java ×1

kml ×1