Skip to content
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:

csWeb

  1. Copy the folders FeatureTypes and PropertyTypes from the Development branch into your project. The folders are located at csWeb/csComp/directives.

csMap

app.ts

  1. Add the following code to the IAppScope of app.ts
editMode: boolean;
enableEditMode;
disableEditMode;
  1. 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>```