add todos
This commit is contained in:
@@ -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
|
* 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
|
* 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.
|
* 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({
|
@Component({
|
||||||
selector: 'lm-feature-manager',
|
selector: 'lm-feature-manager',
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import {FeatureManagerComponent} from '../feature-management/feature-manager/fea
|
|||||||
* - define the data structure to create for use on mobile devices
|
* - define the data structure to create for use on mobile devices
|
||||||
* - define how the color format should look like to use it with mapbox
|
* - define how the color format should look like to use it with mapbox
|
||||||
* - extend feature manager to handle many properties
|
* - extend feature manager to handle many properties
|
||||||
* - design?
|
* - The desing und ux of the whole application has to be improved.
|
||||||
*/
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-map',
|
selector: 'app-map',
|
||||||
@@ -302,9 +302,13 @@ export class MapComponent implements OnInit {
|
|||||||
layer.setVisible(!layer.getVisible());
|
layer.setVisible(!layer.getVisible());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO add description (currently it is not complety clear what this function is goint to do)
|
||||||
|
*/
|
||||||
public saveLayers(): RawLayer[] {
|
public saveLayers(): RawLayer[] {
|
||||||
const rawLayers = [];
|
const rawLayers = [];
|
||||||
this.customLayerCollection.forEach(layer => rawLayers.push(RawLayer.fromVectorLayer(layer)));
|
this.customLayerCollection.forEach(layer => rawLayers.push(RawLayer.fromVectorLayer(layer)));
|
||||||
|
console.log('Created RawLayers[]', rawLayers);
|
||||||
return rawLayers;
|
return rawLayers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user