File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/groovy/geoscript/style Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class NestedDirectoryStyleRepository implements StyleRepository {
4141 if (layerDirectory. exists()) {
4242 layerDirectory. listFiles(new StyleFileNameFilter ()). collect { File file ->
4343 [
44- layerName : FilenameUtils . getBaseName(file . name) ,
44+ layerName : layerName ,
4545 styleName : FilenameUtils . getBaseName(file. name),
4646 style : file. text
4747 ]
@@ -57,7 +57,7 @@ class NestedDirectoryStyleRepository implements StyleRepository {
5757 this . directory. listFiles(new DirectoryFileFilter ()). each { File dir ->
5858 dir. listFiles(new StyleFileNameFilter ()). each { File file ->
5959 styles. add([
60- layerName : FilenameUtils . getBaseName(file . name) ,
60+ layerName : dir . name,
6161 styleName : FilenameUtils . getBaseName(file. name),
6262 style : file. text
6363 ])
You can’t perform that action at this time.
0 commit comments