728x90
SMALL
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"
xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<NamedLayer>
<Name>layer_sido_edge</Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#0033cc</CssParameter> //배경색노상관
<CssParameter name="fill-opacity">0</CssParameter> //opacity를 0으로 주면됨
</Fill>
<Stroke>
<CssParameter name="stroke">#000000</CssParameter>
<CssParameter name="stroke-width">2</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
<Rule>
<TextSymbolizer> //font를 넣으려면 textsymbolizer를 추가해야함
<Label>
<ogc:PropertyName>emd_kor_nm</ogc:PropertyName>
</Label>
<Font>
<CssParameter name="font-family">NanumSquare ExtraBold</CssParameter>
<CssParameter name="font-size">30</CssParameter>
</Font>
<LabelPlacement>
<PointPlacement>
<AnchorPoint>
<AnchorPointX>0.5</AnchorPointX>
<AnchorPointY>0.5</AnchorPointY>
</AnchorPoint>
</PointPlacement>
</LabelPlacement>
<Halo>
<Radius>2</Radius>
<Fill>
<CssParameter name="fill">#000000</CssParameter>
</Fill>
</Halo>
<Fill>
<CssParameter name="fill">#FFFFFF</CssParameter>
</Fill>
</TextSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
근데 이제 그럼 나눔스퀘어폰트가 있어야겠죠..?
jre나 jdk경로로 가서 (ex:C:\JRE\jre1.8.0_281\lib\fonts)
해당 폰트를 넣어줌
이런식으로
그리고 톰캣을 다시 한번구동해주세요
그럼 완료~
728x90
LIST
댓글