-
Notifications
You must be signed in to change notification settings - Fork 18
Enable edit mode
bartvtende edited this page Dec 22, 2014
·
3 revisions
We need to make changes to both csWeb and csMap in order to enable this functionality. Please follow these steps:
- Copy the folders FeatureTypes and PropertyTypes from the Development branch into your project. The folders are located at csWeb/csComp/directives.
- Add the following code to the IAppScope of app.ts
editMode: boolean;
enableEditMode;
disableEditMode;
- Add the following code to the constructor of app.ts
$scope.editMode = false;
$scope.enableEditMode = () => {
$scope.editMode = true;
this.$messageBusService.publish("editmode", "enable");
}
$scope.disableEditMode = () => {
$scope.editMode = false;
this.$messageBusService.publish("editmode", "disable");
}
3. Add the following code to Angular's dependencies in _app.ts_
`'angularSpectrumColorpicker'`
### index.hmtl
```html
<link href="bower_components/spectrum/spectrum.css" rel="stylesheet" />
<script src="bower_components/spectrum/spectrum.js"></script>
<script src="js/cs/angular-spectrum-colorpicker.min.js"></script>```