Skip to content

Commit 73c189d

Browse files
committed
rename set style epic for annotations, remove a commented code
1 parent 8a34b89 commit 73c189d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

web/client/components/map/openlayers/DrawSupport.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ class DrawSupport extends React.Component {
288288
if (newProps.style) {
289289
this.drawLayer.setStyle((ftOl) => {
290290
let originalFeature = find(head(newProps.features).features, ftTemp => ftTemp.properties.id === ftOl.getProperties().id);
291-
// let originalFeatureOLD = find(head(this.props.features).features, ftTemp => ftTemp.properties.id === ftOl.getProperties().id);
292291
if (originalFeature) {
293292
let promises = createStylesAsync(castArray(originalFeature.style));
294293
axios.all(promises).then((styles) => {

web/client/epics/__tests__/annotations-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ const {editAnnotation, confirmRemoveAnnotation, saveAnnotation, cancelEditAnnota
2323
const {TOGGLE_CONTROL, toggleControl, SET_CONTROL_PROPERTY} = require('../../actions/controls');
2424
const {addAnnotationsLayerEpic, editAnnotationEpic, removeAnnotationEpic, saveAnnotationEpic, newAnnotationEpic, addAnnotationEpic,
2525
disableInteractionsEpic, cancelEditAnnotationEpic, startDrawingMultiGeomEpic, endDrawGeomEpic, endDrawTextEpic, cancelTextAnnotationsEpic,
26-
setStyleEpic, restoreStyleEpic, highlighAnnotationEpic, cleanHighlightAnnotationEpic, closeAnnotationsEpic, confirmCloseAnnotationsEpic,
26+
setAnnotationStyleEpic, restoreStyleEpic, highlighAnnotationEpic, cleanHighlightAnnotationEpic, closeAnnotationsEpic, confirmCloseAnnotationsEpic,
2727
downloadAnnotations, onLoadAnnotations, onChangedSelectedFeatureEpic, onBackToEditingFeatureEpic, redrawOnChangeRadiusEpic, redrawOnChangeTextEpic,
2828
editSelectedFeatureEpic, editCircleFeatureEpic, purgeMapInfoEpic, closeMeasureToolEpic, openEditorEpic
2929
} = require('../annotations')({});
3030
const rootEpic = combineEpics(addAnnotationsLayerEpic, editAnnotationEpic, removeAnnotationEpic, saveAnnotationEpic, newAnnotationEpic, addAnnotationEpic,
3131
disableInteractionsEpic, cancelEditAnnotationEpic, startDrawingMultiGeomEpic, endDrawGeomEpic, endDrawTextEpic, cancelTextAnnotationsEpic,
32-
setStyleEpic, restoreStyleEpic, highlighAnnotationEpic, cleanHighlightAnnotationEpic, closeAnnotationsEpic, confirmCloseAnnotationsEpic,
32+
setAnnotationStyleEpic, restoreStyleEpic, highlighAnnotationEpic, cleanHighlightAnnotationEpic, closeAnnotationsEpic, confirmCloseAnnotationsEpic,
3333
downloadAnnotations, onLoadAnnotations, onChangedSelectedFeatureEpic, onBackToEditingFeatureEpic, redrawOnChangeRadiusEpic, redrawOnChangeTextEpic,
3434
editSelectedFeatureEpic, editCircleFeatureEpic, purgeMapInfoEpic, closeMeasureToolEpic, openEditorEpic
3535
);

web/client/epics/annotations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ module.exports = (viewer) => ({
343343
}, assign({}, style, {highlight: false}))
344344
]);
345345
}),
346-
setStyleEpic: (action$, store) => action$.ofType(SET_STYLE)
346+
setAnnotationStyleEpic: (action$, store) => action$.ofType(SET_STYLE)
347347
.switchMap( () => {
348348
// TODO verify if we need to override the style here or in the store
349349
const features = store.getState().annotations.editing.features;

0 commit comments

Comments
 (0)