Skip to content

Commit 7cd09e6

Browse files
authored
Merge pull request #446 from jansule/no-olflat-target
docs: remove ol-flat from list of target parsers
2 parents 3e2b68e + 196bba1 commit 7cd09e6

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ For a file leave this empty to write to `stdout`. [string]
112112
If not given, it will be guessed from the extension of the input file.
113113
Mandatory if the target is a directory.
114114
* `-t` / `--target` Target parser, either `mapbox`, `sld`,
115-
`qgis` or `qml` for QGIS QML files, or `ol-flat` for OpenLayers FlatStyles.
115+
`qgis` or `qml` for QGIS QML files.
116116
If not given, it will be guessed from the extension of the output file.
117117
Mapfiles are not currently supported as target.
118118
Mandatory if the target is a directory.

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ async function writeFile(
189189
if (targetParser instanceof MapfileParser) {
190190
throw new Error('MapfileParser is not supported as target parser.');
191191
}
192+
if (targetParser instanceof OlFlatStyleParser) {
193+
throw new Error('OlFlatStyleParser is not supported as target parser.');
194+
}
192195
const indicator = oraIndicator; // for linter.
193196

194197
try {

src/logHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const logHelp = (): void => {
3434
If not given, it will be guessed from the extension of the input file.
3535
Mandatory if the the target is a directory.
3636
-t / --target : Target parser, either "mapbox", "sld",
37-
"qgis" or "qml" for QGIS QML files, or "ol-flat" for OpenLayers FlatStyles.
37+
"qgis" or "qml" for QGIS QML files.
3838
If not given, it will be guessed from the extension of the output file.
3939
Mapfiles are not currently supported as target.
4040
Mandatory if the the target is a directory.

0 commit comments

Comments
 (0)