Skip to content

Commit c172982

Browse files
chore: replace class with id
1 parent 1362f18 commit c172982

File tree

1 file changed

+6
-6
lines changed
  • packages/jsvectormap/src/js

1 file changed

+6
-6
lines changed

packages/jsvectormap/src/js/map.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import DataVisualization from './dataVisualization'
1515

1616
const JVM_PREFIX = 'jvm-'
1717
const CONTAINER_CLASS = `${JVM_PREFIX}container`
18-
const MARKERS_GROUP_CLASS = `${JVM_PREFIX}markers-group`
19-
const MARKERS_LABELS_GROUP_CLASS = `${JVM_PREFIX}markers-labels-group`
20-
const LINES_GROUP_CLASS = `${JVM_PREFIX}lines-group`
18+
const MARKERS_GROUP_ID = `${JVM_PREFIX}markers-group`
19+
const MARKERS_LABELS_GROUP_ID = `${JVM_PREFIX}markers-labels-group`
20+
const LINES_GROUP_ID = `${JVM_PREFIX}lines-group`
2121
const SERIES_CONTAINER_CLASS = `${JVM_PREFIX}series-container`
2222
const SERIES_CONTAINER_H_CLASS = `${SERIES_CONTAINER_CLASS} ${JVM_PREFIX}series-h`
2323
const SERIES_CONTAINER_V_CLASS = `${SERIES_CONTAINER_CLASS} ${JVM_PREFIX}series-v`
@@ -82,12 +82,12 @@ class Map {
8282
// Lines group must be created before markers
8383
// Otherwise the lines will be drawn on top of the markers.
8484
if (options.lines.elements) {
85-
this._linesGroup = this.canvas.createGroup(LINES_GROUP_CLASS)
85+
this._linesGroup = this.canvas.createGroup(LINES_GROUP_ID)
8686
}
8787

8888
if (options.markers) {
89-
this._markersGroup = this.canvas.createGroup(MARKERS_GROUP_CLASS)
90-
this._markerLabelsGroup = this.canvas.createGroup(MARKERS_LABELS_GROUP_CLASS)
89+
this._markersGroup = this.canvas.createGroup(MARKERS_GROUP_ID)
90+
this._markerLabelsGroup = this.canvas.createGroup(MARKERS_LABELS_GROUP_ID)
9191
}
9292

9393
// Create markers

0 commit comments

Comments
 (0)