Skip to content

Commit 36759a3

Browse files
authored
Merge pull request #110801 from stevemunk/map-events-CodePen
removed CodePen samples from map events article
2 parents 540e1e1 + 6970c75 commit 36759a3

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

articles/azure-maps/map-events.md

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
---
22
title: Handle map events | Microsoft Azure Maps
33
description: Learn which events are fired when users interact with maps. View a list of all supported map events. See how to use the Azure Maps Web SDK to handle events.
4-
author: eriklindeman
5-
ms.author: eriklind
6-
ms.date: 09/10/2019
7-
ms.topic: conceptual
4+
author: dubiety
5+
ms.author: yuchungchen
6+
ms.date: 06/12/2023
7+
ms.topic: how-to
88
ms.service: azure-maps
9-
ms.custom: codepen
109
---
1110

1211
# Interact with the map
@@ -15,30 +14,36 @@ This article shows you how to use [map events class](/javascript/api/azure-maps-
1514

1615
## Interact with the map
1716

18-
Play with the map below, and see the corresponding mouse events highlighted on the right. You can click on the **JS tab** to view and edit the JavaScript code. You can also click on **Edit on CodePen** to modify the code on CodePen.
17+
The [Map Events] sample highlights the name of the events that are firing as you interact with the map.
1918

20-
<br/>
19+
:::image type="content" source="./media/map-events/map-events.png"alt-text="A screenshot showing a map with a list of map events that are highlighted anytime your actions on the map trigger that event.":::
2120

21+
<!-----------------------------------------------------------------------
2222
<iframe height='600' scrolling='no' title='Interacting with the map – mouse events' src='//codepen.io/azuremaps/embed/bLZEWd/?height=600&theme-id=0&default-tab=js,result&embed-version=2&editable=true' frameborder='no' loading="lazy" allowtransparency='true' allowfullscreen='true'>See the Pen <a href='https://codepen.io/azuremaps/pen/bLZEWd/'>Interact with the map – mouse events</a> by Azure Maps (<a href='https://codepen.io/azuremaps'>@azuremaps</a>) on <a href='https://codepen.io'>CodePen</a>.
2323
</iframe>
24+
----------------------------------------------------------------------->
2425

2526
## Interact with map layers
2627

27-
The following code highlights the fired event as you interact with the Symbol Layer. The symbol, bubble, line, and polygon layer all support the same set of events. The heat map and tile layers don't support any of these events.
28+
The [Layer Events] sample highlights the name of the events that are firing as you interact with the Symbol Layer. The symbol, bubble, line, and polygon layer all support the same set of events. The heat map and tile layers don't support any of these events.
2829

29-
<br/>
30+
:::image type="content" source="./media/map-events/layer-events.png"alt-text="A screenshot showing a map with a list of layer events that are highlighted anytime you interact with the Symbol Layer.":::
3031

32+
<!-----------------------------------------------------------------------
3133
<iframe height='600' scrolling='no' title='Interacting with the map – Layer Events' src='//codepen.io/azuremaps/embed/bQRRPE/?height=600&theme-id=0&default-tab=js,result&embed-version=2&editable=true' frameborder='no' loading="lazy" allowtransparency='true' allowfullscreen='true'>See the Pen <a href='https://codepen.io/azuremaps/pen/bQRRPE/'>Interacting with the map – Layer Events</a> by Azure Maps (<a href='https://codepen.io/azuremaps'>@azuremaps</a>) on <a href='https://codepen.io'>CodePen</a>.
3234
</iframe>
35+
----------------------------------------------------------------------->
3336

3437
## Interact with HTML Marker
3538

36-
The following code adds JavaScript map events to an HTML marker. It also highlights the name of the events that get fired up as you interact with the HTML marker.
39+
The [HTML marker layer events] sample highlights the name of the events that are firing as you interact with the HTML marker layer.
3740

38-
<br/>
41+
:::image type="content" source="./media/map-events/html-marker-layer-events.png"alt-text="A screenshot showing a map with a list of HTML marker layer events that are highlighted anytime your actions on the map trigger that event.":::
3942

43+
<!-----------------------------------------------------------------------
4044
<iframe height='500' scrolling='no' title='Interacting with the map - HTML Marker events' src='//codepen.io/azuremaps/embed/VVzKJY/?height=500&theme-id=0&default-tab=js,result&embed-version=2&editable=true' frameborder='no' loading="lazy" allowtransparency='true' allowfullscreen='true'>See the Pen <a href='https://codepen.io/azuremaps/pen/VVzKJY/'>Interacting with the map - HTML Marker events</a> by Azure Maps (<a href='https://codepen.io/azuremaps'>@azuremaps</a>) on <a href='https://codepen.io'>CodePen</a>.
4145
</iframe>
46+
----------------------------------------------------------------------->
4247

4348
The following table lists all supported map class events.
4449

@@ -101,7 +106,6 @@ The following table lists all supported map class events.
101106
| `zoomend` | Fired just after the map completes a transition from one zoom level to another, as the result of either user interaction or methods.|
102107
| `zoomstart` | Fired just before the map begins a transition from one zoom level to another, as the result of either user interaction or methods.|
103108

104-
105109
## Next steps
106110

107111
See the following articles for full code examples:
@@ -111,3 +115,7 @@ See the following articles for full code examples:
111115
112116
> [!div class="nextstepaction"]
113117
> [Code samples](/samples/browse/?products=azure-maps)
118+
119+
[Map Events]: https://samples.azuremaps.com/?search=interact%20with&sample=map-events
120+
[Layer Events]: https://samples.azuremaps.com/?search=interact%20with&sample=layer-events
121+
[HTML marker layer events]: https://samples.azuremaps.com/?search=interact%20with&sample=html-marker-layer-events
493 KB
Loading
494 KB
Loading
395 KB
Loading

0 commit comments

Comments
 (0)