add todos

This commit is contained in:
Fabian Jeglinski
2019-09-08 12:50:31 +02:00
parent 55e0fca470
commit 55a511e9f1
2 changed files with 9 additions and 1 deletions
@@ -9,6 +9,10 @@ import {RawLayer} from 'src/app/models/RawLayer';
* property or a custom property (custom properties are special properties that are just understand by life map
* like the color of the feature). All changes that were made to the properties are saved in the geo json of
* the RawLayer object from which the open layer feature based.
*
* TODO:
* - If a layer with many properties is selected, the list of these properties is too long. A better design has to be used.
* -
*/
@Component({
selector: 'lm-feature-manager',
+5 -1
View File
@@ -27,7 +27,7 @@ import {FeatureManagerComponent} from '../feature-management/feature-manager/fea
* - define the data structure to create for use on mobile devices
* - define how the color format should look like to use it with mapbox
* - extend feature manager to handle many properties
* - design?
* - The desing und ux of the whole application has to be improved.
*/
@Component({
selector: 'app-map',
@@ -302,9 +302,13 @@ export class MapComponent implements OnInit {
layer.setVisible(!layer.getVisible());
}
/**
* TODO add description (currently it is not complety clear what this function is goint to do)
*/
public saveLayers(): RawLayer[] {
const rawLayers = [];
this.customLayerCollection.forEach(layer => rawLayers.push(RawLayer.fromVectorLayer(layer)));
console.log('Created RawLayers[]', rawLayers);
return rawLayers;
}