-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #916 from jansule/label-placement
feat: read/write labelplacement
- Loading branch information
Showing
20 changed files
with
227 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld 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>Simple Text</Name> | ||
<UserStyle> | ||
<Name>Simple Text</Name> | ||
<FeatureTypeStyle> | ||
<Rule> | ||
<Name/> | ||
<TextSymbolizer uom="http://www.opengeospatial.org/se/units/pixel"> | ||
<Label>myText</Label> | ||
<LabelPlacement> | ||
<LinePlacement /> | ||
</LabelPlacement> | ||
</TextSymbolizer> | ||
</Rule> | ||
</FeatureTypeStyle> | ||
</UserStyle> | ||
</NamedLayer> | ||
</StyledLayerDescriptor> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld 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>Simple Text</Name> | ||
<UserStyle> | ||
<Name>Simple Text</Name> | ||
<FeatureTypeStyle> | ||
<Rule> | ||
<Name/> | ||
<TextSymbolizer uom="http://www.opengeospatial.org/se/units/pixel"> | ||
<Label>myText</Label> | ||
<LabelPlacement> | ||
<PointPlacement /> | ||
</LabelPlacement> | ||
</TextSymbolizer> | ||
</Rule> | ||
</FeatureTypeStyle> | ||
</UserStyle> | ||
</NamedLayer> | ||
</StyledLayerDescriptor> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<StyledLayerDescriptor version="1.1.0" xsi:schemaLocation="http://www.opengis.net/sld 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" xmlns:se="http://www.opengis.net/se"> | ||
<NamedLayer> | ||
<se:Name>Simple Text</se:Name> | ||
<UserStyle> | ||
<se:Name>Simple Text</se:Name> | ||
<se:FeatureTypeStyle> | ||
<se:Rule> | ||
<se:Name/> | ||
<se:TextSymbolizer uom="http://www.opengeospatial.org/se/units/pixel"> | ||
<se:Label> | ||
<ogc:Literal>myText</ogc:Literal> | ||
</se:Label> | ||
<se:LabelPlacement> | ||
<se:LinePlacement /> | ||
</se:LabelPlacement> | ||
</se:TextSymbolizer> | ||
</se:Rule> | ||
</se:FeatureTypeStyle> | ||
</UserStyle> | ||
</NamedLayer> | ||
</StyledLayerDescriptor> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<StyledLayerDescriptor version="1.1.0" xsi:schemaLocation="http://www.opengis.net/sld 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" xmlns:se="http://www.opengis.net/se"> | ||
<NamedLayer> | ||
<se:Name>Simple Text</se:Name> | ||
<UserStyle> | ||
<se:Name>Simple Text</se:Name> | ||
<se:FeatureTypeStyle> | ||
<se:Rule> | ||
<se:Name/> | ||
<se:TextSymbolizer uom="http://www.opengeospatial.org/se/units/pixel"> | ||
<se:Label> | ||
<ogc:Literal>myText</ogc:Literal> | ||
</se:Label> | ||
<se:LabelPlacement> | ||
<se:PointPlacement /> | ||
</se:LabelPlacement> | ||
</se:TextSymbolizer> | ||
</se:Rule> | ||
</se:FeatureTypeStyle> | ||
</UserStyle> | ||
</NamedLayer> | ||
</StyledLayerDescriptor> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,8 @@ const style: Style = { | |
'Arial' | ||
], | ||
fontWeight: 'bold', | ||
size: 14 | ||
size: 14, | ||
placement: 'point' | ||
} | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Style } from 'geostyler-style'; | ||
|
||
const pointStyledLabel: Style = { | ||
name: 'Simple Text', | ||
rules: [{ | ||
name: '', | ||
symbolizers: [{ | ||
color: '#000000', | ||
opacity: 1, | ||
kind: 'Text', | ||
label: 'myText', | ||
placement: 'line' | ||
}] | ||
}] | ||
}; | ||
|
||
export default pointStyledLabel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Style } from 'geostyler-style'; | ||
|
||
const pointStyledLabel: Style = { | ||
name: 'Simple Text', | ||
rules: [{ | ||
name: '', | ||
symbolizers: [{ | ||
color: '#000000', | ||
opacity: 1, | ||
kind: 'Text', | ||
label: 'myText', | ||
placement: 'point' | ||
}] | ||
}] | ||
}; | ||
|
||
export default pointStyledLabel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.