Skip to content

Commit fd9ef8c

Browse files
Hide references to the Measure tool
This hides some references to the Measure tool, which stopped working after an update to the Leaflet library in SMK (bcgov/smk#188).
1 parent d45ea64 commit fd9ef8c

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

docs/edit-an-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ The following tools are currently available to add to your application.
384384
- List Menu
385385
- Location
386386
- Markup
387-
- Measure
387+
<!-- - Measure -->
388388
- Pan
389389
- Scale
390390
- Search

docs/edit-tool.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Several tools have unique configurations that allow you to tailor their behaviou
1010
- [Identify](#identify)
1111
- [Layers](#layers)
1212
- [List Menu](#list-menu)
13-
- [Measure](#measure)
13+
<!-- - [Measure](#measure) -->
1414
- [Scale](#scale)
1515
- [Search](#search)
1616
- [Select](#select)
@@ -251,7 +251,7 @@ List Menu enables the "hamburger" menu option that displays on the top-left of t
251251

252252
List menu allows you to modify the common settings for tools only.
253253

254-
## Measure
254+
<!-- ## Measure
255255
256256
**Deprecated** - This tool does not work properly in SMK versions 1.1.2 and later.
257257
@@ -260,7 +260,7 @@ The Measure tool adds a measure utility to your application that allows users to
260260
Measure tool allows you to modify the common settings for tools only.
261261
262262
![Measure Tool](measure-panel.png)
263-
263+
-->
264264
## Scale
265265

266266
The Scale tool adds a scalebar to the bottom right corner of your application.

smk-edit/static/components/presentation.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ export const toolTypePresentation = {
116116
details: false,
117117
default: {}
118118
},
119-
'measure': {
120-
title: 'Measure',
121-
details: 'edit-tool-details',
122-
default: {
123-
icon: 'straighten',
124-
}
125-
},
119+
// 'measure': {
120+
// title: 'Measure',
121+
// details: 'edit-tool-details',
122+
// default: {
123+
// icon: 'straighten',
124+
// }
125+
// },
126126
// 'menu': {
127127
// title: 'Menu',
128128
// position: true,

smk-edit/static/store/config-tool-search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
showLocation: true,
1212
command: {
1313
identify: true,
14-
measure: true,
14+
// measure: true,
1515
directions: true,
1616
}
1717
}, tool )

smk-edit/static/store/config-tools.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import configToolIdentify from './config-tool-identify.js'
77
import configToolLayers from './config-tool-layers.js'
88
import configToolListMenu from './config-tool-list-menu.js'
99
import configToolLocation from './config-tool-location.js'
10-
import configToolMeasure from './config-tool-measure.js'
10+
// import configToolMeasure from './config-tool-measure.js'
1111
import configToolQuery from './config-tool-query.js'
1212
import configToolScale from './config-tool-scale.js'
1313
import configToolSearch from './config-tool-search.js'
@@ -26,7 +26,7 @@ export default mix( [
2626
configToolLayers,
2727
configToolListMenu,
2828
configToolLocation,
29-
configToolMeasure,
29+
// configToolMeasure,
3030
configToolQuery,
3131
configToolScale,
3232
configToolSearch,

0 commit comments

Comments
 (0)