Skip to content

Commit 5a2eed4

Browse files
authored
Docs: Map: Use plural "layers" because of "interactiveLayerIds" (#2303)
1 parent 1cbfcbe commit 5a2eed4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/api-reference/map.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,13 @@ Called when an error occurs.
292292

293293
Called when a pointing device (usually a mouse) is pressed within the map.
294294

295-
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layer.
295+
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layers.
296296

297297
#### `onMouseUp`: (event: [MapLayerMouseEvent](./types.md#maplayermouseevent)) => void {#onmouseup}
298298

299299
Called when a pointing device (usually a mouse) is released within the map.
300300

301-
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layer.
301+
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layers.
302302

303303
#### `onMouseOver`: (event: [MapLayerMouseEvent](./types.md#maplayermouseevent)) => void {#onmouseover}
304304

@@ -312,7 +312,7 @@ Called when a pointing device (usually a mouse) enters a visible portion of the
312312

313313
Called when a pointing device (usually a mouse) is moved while the cursor is inside the map. As you move the cursor across the map, the event will fire every time the cursor changes position within the map.
314314

315-
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layer.
315+
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layers.
316316

317317
#### `onMouseLeave`: (event: [MapLayerMouseEvent](./types.md#maplayermouseevent)) => void {#onmouseleave}
318318

@@ -326,19 +326,19 @@ Called when a point device (usually a mouse) leaves the map's canvas.
326326

327327
Called when a pointing device (usually a mouse) is pressed and released at the same point on the map.
328328

329-
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layer.
329+
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layers.
330330

331331
#### `onDblClick`: (event: [MapLayerMouseEvent](./types.md#maplayermouseevent)) => void {#ondblclick}
332332

333333
Called when a pointing device (usually a mouse) is pressed and released twice at the same point on the map in rapid succession.
334334

335-
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layer.
335+
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layers.
336336

337337
#### `onContextMenu`: (event: [MapLayerMouseEvent](./types.md#maplayermouseevent)) => void {#oncontextmenu}
338338

339339
Called when the right button of the mouse is clicked or the context menu key is pressed within the map.
340340

341-
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layer.
341+
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layers.
342342

343343
#### `onWheel`: (event: [MapWheelEvent](./types.md#mapwheelevent)) => void {#onwheel}
344344

@@ -348,25 +348,25 @@ Called when a wheel event occurs within the map.
348348

349349
Called when a `touchstart` event occurs within the map.
350350

351-
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layer.
351+
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layers.
352352

353353
#### `onTouchEnd`: (event: [MapLayerTouchEvent](./types.md#maplayertouchevent)) => void {#ontouchend}
354354

355355
Called when a `touchend` event occurs within the map.
356356

357-
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layer.
357+
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layers.
358358

359359
#### `onTouchMove`: (event: [MapLayerTouchEvent](./types.md#maplayertouchevent)) => void {#ontouchmove}
360360

361361
Called when a `touchmove` event occurs within the map.
362362

363-
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layer.
363+
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layers.
364364

365365
#### `onTouchCancel`: (event: [MapLayerTouchEvent](./types.md#maplayertouchevent)) => void {#ontouchcancel}
366366

367367
Called when a `touchcancel` event occurs within the map.
368368

369-
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layer.
369+
If `interactiveLayerIds` is specified, the event will contain an additional `features` field that contains features under the cursor from the specified layers.
370370

371371
#### `onMoveStart`: (event: [ViewStateChangeEvent](./types.md#viewstatechangeevent)) => void {#onmovestart}
372372

0 commit comments

Comments
 (0)