Skip to content

Commit 29da4ae

Browse files
committed
Fix function name
1 parent f68d147 commit 29da4ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/mapml-viewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export class MapViewer extends HTMLElement {
219219

220220
this.setControls(false,false,true);
221221
this._crosshair = M.crosshair().addTo(this._map);
222-
this._featureIndexBox = M.featureIndex().addTo(this._map);
222+
this._featureIndex = M.featureIndex().addTo(this._map);
223223
// https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/274
224224
this.setAttribute('role', 'application');
225225
// Make the Leaflet container element programmatically identifiable

src/web-map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export class WebMap extends HTMLMapElement {
233233

234234
this.setControls(false,false,true);
235235
this._crosshair = M.crosshair().addTo(this._map);
236-
this._featureIndexBox = M.featureIndexBox().addTo(this._map);
236+
this._featureIndex = M.featureIndex().addTo(this._map);
237237

238238
if (this.hasAttribute('name')) {
239239
var name = this.getAttribute('name');

0 commit comments

Comments
 (0)