|
@@ -18,7 +18,7 @@ import {AdjusterComponent} from './adjuster/adjuster.component';
|
|
|
import {AdjusterEventService} from './adjuster/adjuster-event.service';
|
|
import {AdjusterEventService} from './adjuster/adjuster-event.service';
|
|
|
import {AdjusterLegendService} from './adjuster/adjuster-legend.service';
|
|
import {AdjusterLegendService} from './adjuster/adjuster-legend.service';
|
|
|
import {AdjusterService} from './adjuster/adjuster.service';
|
|
import {AdjusterService} from './adjuster/adjuster.service';
|
|
|
-import {krajeLayer, obceIndexLayer, okresyLayer} from './app.config';
|
|
|
|
|
|
|
+import {krajeLayer, obceIndexLayer, okresyLayer, masLayer} from './app.config';
|
|
|
|
|
|
|
|
@Injectable({providedIn: 'root'})
|
|
@Injectable({providedIn: 'root'})
|
|
|
export class AppService {
|
|
export class AppService {
|
|
@@ -92,8 +92,10 @@ export class AppService {
|
|
|
// obceIndexLayer, okresyLayer and krajeLayer must be pushed in this order
|
|
// obceIndexLayer, okresyLayer and krajeLayer must be pushed in this order
|
|
|
// so they will display in correct order
|
|
// so they will display in correct order
|
|
|
this.hsConfig.default_layers.push(obceIndexLayer);
|
|
this.hsConfig.default_layers.push(obceIndexLayer);
|
|
|
|
|
+ //There is something rotten in these lines. .getSource() makes thing even more unpredictable
|
|
|
obceIndexLayer.on('featuresloadend', this.adjusterService.init());
|
|
obceIndexLayer.on('featuresloadend', this.adjusterService.init());
|
|
|
obceIndexLayer.getSource().legend_categories = this.adjusterLegendService.createIndexLegend();
|
|
obceIndexLayer.getSource().legend_categories = this.adjusterLegendService.createIndexLegend();
|
|
|
|
|
+ this.hsConfig.default_layers.push(masLayer);
|
|
|
this.hsConfig.default_layers.push(okresyLayer);
|
|
this.hsConfig.default_layers.push(okresyLayer);
|
|
|
this.hsConfig.default_layers.push(krajeLayer);
|
|
this.hsConfig.default_layers.push(krajeLayer);
|
|
|
}
|
|
}
|