# MapEventBuilder

## Methods

### BeforeReset(System.String)

Defines the handler of the BeforeReset client-side event. Fired immediately before the map is reset. This event is typically used for cleanup by layer implementers.

For more information see [BeforeReset](https://docs.telerik.com/kendo-ui/api/ui/map/events/beforereset) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the BeforeReset event.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.BeforeReset("onBeforeReset"))
             )
             
```

### BeforeReset(System.Func)

Defines the handler of the BeforeReset client-side event. Fired immediately before the map is reset. This event is typically used for cleanup by layer implementers.

For more information see [BeforeReset](https://docs.telerik.com/kendo-ui/api/ui/map/events/beforereset) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.BeforeReset(@<text>
                  function(e) {
                      // Handle the BeforeReset event inline.
                  }
                  </text>)
               )
             )
             
```

### Click(System.String)

Defines the handler of the Click client-side event. Fired when the user clicks on the map.

For more information see [Click](https://docs.telerik.com/kendo-ui/api/ui/map/events/click) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the Click event.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.Click("onClick"))
             )
             
```

### Click(System.Func)

Defines the handler of the Click client-side event. Fired when the user clicks on the map.

For more information see [Click](https://docs.telerik.com/kendo-ui/api/ui/map/events/click) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.Click(@<text>
                  function(e) {
                      // Handle the Click event inline.
                  }
                  </text>)
               )
             )
             
```

### KendoKeydown(System.String)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Map is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [KendoKeydown](https://docs.telerik.com/kendo-ui/api/ui/map/events/kendokeydown) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the KendoKeydown event.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

### KendoKeydown(System.Func)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Map is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [KendoKeydown](https://docs.telerik.com/kendo-ui/api/ui/map/events/kendokeydown) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

### MarkerActivate(System.String)

Defines the handler of the MarkerActivate client-side event. Fired when a marker has been displayed and has a DOM element assigned.

For more information see [MarkerActivate](https://docs.telerik.com/kendo-ui/api/ui/map/events/markeractivate) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the MarkerActivate event.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.MarkerActivate("onMarkerActivate"))
             )
             
```

### MarkerActivate(System.Func)

Defines the handler of the MarkerActivate client-side event. Fired when a marker has been displayed and has a DOM element assigned.

For more information see [MarkerActivate](https://docs.telerik.com/kendo-ui/api/ui/map/events/markeractivate) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.MarkerActivate(@<text>
                  function(e) {
                      // Handle the MarkerActivate event inline.
                  }
                  </text>)
               )
             )
             
```

### MarkerCreated(System.String)

Defines the handler of the MarkerCreated client-side event. Fired when a marker has been created and is about to be displayed. Cancelling the event will prevent the marker from being shown.Use markerActivate if you need to access the marker DOM element.

For more information see [MarkerCreated](https://docs.telerik.com/kendo-ui/api/ui/map/events/markercreated) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the MarkerCreated event.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.MarkerCreated("onMarkerCreated"))
             )
             
```

### MarkerCreated(System.Func)

Defines the handler of the MarkerCreated client-side event. Fired when a marker has been created and is about to be displayed. Cancelling the event will prevent the marker from being shown.Use markerActivate if you need to access the marker DOM element.

For more information see [MarkerCreated](https://docs.telerik.com/kendo-ui/api/ui/map/events/markercreated) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.MarkerCreated(@<text>
                  function(e) {
                      // Handle the MarkerCreated event inline.
                  }
                  </text>)
               )
             )
             
```

### MarkerClick(System.String)

Defines the handler of the MarkerClick client-side event. Fired when a marker has been clicked or tapped.

For more information see [MarkerClick](https://docs.telerik.com/kendo-ui/api/ui/map/events/markerclick) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the MarkerClick event.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.MarkerClick("onMarkerClick"))
             )
             
```

### MarkerClick(System.Func)

Defines the handler of the MarkerClick client-side event. Fired when a marker has been clicked or tapped.

For more information see [MarkerClick](https://docs.telerik.com/kendo-ui/api/ui/map/events/markerclick) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.MarkerClick(@<text>
                  function(e) {
                      // Handle the MarkerClick event inline.
                  }
                  </text>)
               )
             )
             
```

### Pan(System.String)

Defines the handler of the Pan client-side event. Fired while the map viewport is being moved.

For more information see [Pan](https://docs.telerik.com/kendo-ui/api/ui/map/events/pan) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the Pan event.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.Pan("onPan"))
             )
             
```

### Pan(System.Func)

Defines the handler of the Pan client-side event. Fired while the map viewport is being moved.

For more information see [Pan](https://docs.telerik.com/kendo-ui/api/ui/map/events/pan) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.Pan(@<text>
                  function(e) {
                      // Handle the Pan event inline.
                  }
                  </text>)
               )
             )
             
```

### PanEnd(System.String)

Defines the handler of the PanEnd client-side event. Fires after the map viewport has been moved.

For more information see [PanEnd](https://docs.telerik.com/kendo-ui/api/ui/map/events/panend) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the PanEnd event.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.PanEnd("onPanEnd"))
             )
             
```

### PanEnd(System.Func)

Defines the handler of the PanEnd client-side event. Fires after the map viewport has been moved.

For more information see [PanEnd](https://docs.telerik.com/kendo-ui/api/ui/map/events/panend) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.PanEnd(@<text>
                  function(e) {
                      // Handle the PanEnd event inline.
                  }
                  </text>)
               )
             )
             
```

### Reset(System.String)

Defines the handler of the Reset client-side event. Fired when the map is reset. This typically occurs on initial load and after a zoom/center change.

For more information see [Reset](https://docs.telerik.com/kendo-ui/api/ui/map/events/reset) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the Reset event.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.Reset("onReset"))
             )
             
```

### Reset(System.Func)

Defines the handler of the Reset client-side event. Fired when the map is reset. This typically occurs on initial load and after a zoom/center change.

For more information see [Reset](https://docs.telerik.com/kendo-ui/api/ui/map/events/reset) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.Reset(@<text>
                  function(e) {
                      // Handle the Reset event inline.
                  }
                  </text>)
               )
             )
             
```

### ShapeClick(System.String)

Defines the handler of the ShapeClick client-side event. Fired when a shape is clicked or tapped.

For more information see [ShapeClick](https://docs.telerik.com/kendo-ui/api/ui/map/events/shapeclick) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the ShapeClick event.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.ShapeClick("onShapeClick"))
             )
             
```

### ShapeClick(System.Func)

Defines the handler of the ShapeClick client-side event. Fired when a shape is clicked or tapped.

For more information see [ShapeClick](https://docs.telerik.com/kendo-ui/api/ui/map/events/shapeclick) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.ShapeClick(@<text>
                  function(e) {
                      // Handle the ShapeClick event inline.
                  }
                  </text>)
               )
             )
             
```

### ShapeCreated(System.String)

Defines the handler of the ShapeCreated client-side event. Fired when a shape is created, but is not rendered yet.

For more information see [ShapeCreated](https://docs.telerik.com/kendo-ui/api/ui/map/events/shapecreated) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the ShapeCreated event.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.ShapeCreated("onShapeCreated"))
             )
             
```

### ShapeCreated(System.Func)

Defines the handler of the ShapeCreated client-side event. Fired when a shape is created, but is not rendered yet.

For more information see [ShapeCreated](https://docs.telerik.com/kendo-ui/api/ui/map/events/shapecreated) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.ShapeCreated(@<text>
                  function(e) {
                      // Handle the ShapeCreated event inline.
                  }
                  </text>)
               )
             )
             
```

### ShapeFeatureCreated(System.String)

Defines the handler of the ShapeFeatureCreated client-side event. Fired when a GeoJSON Feature is created on a shape layer.

For more information see [ShapeFeatureCreated](https://docs.telerik.com/kendo-ui/api/ui/map/events/shapefeaturecreated) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the ShapeFeatureCreated event.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.ShapeFeatureCreated("onShapeFeatureCreated"))
             )
             
```

### ShapeFeatureCreated(System.Func)

Defines the handler of the ShapeFeatureCreated client-side event. Fired when a GeoJSON Feature is created on a shape layer.

For more information see [ShapeFeatureCreated](https://docs.telerik.com/kendo-ui/api/ui/map/events/shapefeaturecreated) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.ShapeFeatureCreated(@<text>
                  function(e) {
                      // Handle the ShapeFeatureCreated event inline.
                  }
                  </text>)
               )
             )
             
```

### ShapeMouseEnter(System.String)

Defines the handler of the ShapeMouseEnter client-side event. Fired when the mouse enters a shape.

For more information see [ShapeMouseEnter](https://docs.telerik.com/kendo-ui/api/ui/map/events/shapemouseenter) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the ShapeMouseEnter event.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.ShapeMouseEnter("onShapeMouseEnter"))
             )
             
```

### ShapeMouseEnter(System.Func)

Defines the handler of the ShapeMouseEnter client-side event. Fired when the mouse enters a shape.

For more information see [ShapeMouseEnter](https://docs.telerik.com/kendo-ui/api/ui/map/events/shapemouseenter) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.ShapeMouseEnter(@<text>
                  function(e) {
                      // Handle the ShapeMouseEnter event inline.
                  }
                  </text>)
               )
             )
             
```

### ShapeMouseLeave(System.String)

Defines the handler of the ShapeMouseLeave client-side event. Fired when the mouse leaves a shape.

For more information see [ShapeMouseLeave](https://docs.telerik.com/kendo-ui/api/ui/map/events/shapemouseleave) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the ShapeMouseLeave event.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.ShapeMouseLeave("onShapeMouseLeave"))
             )
             
```

### ShapeMouseLeave(System.Func)

Defines the handler of the ShapeMouseLeave client-side event. Fired when the mouse leaves a shape.

For more information see [ShapeMouseLeave](https://docs.telerik.com/kendo-ui/api/ui/map/events/shapemouseleave) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.ShapeMouseLeave(@<text>
                  function(e) {
                      // Handle the ShapeMouseLeave event inline.
                  }
                  </text>)
               )
             )
             
```

### ZoomStart(System.String)

Defines the handler of the ZoomStart client-side event. Fired when the map zoom level is about to change. Cancelling the event will prevent the user action.

For more information see [ZoomStart](https://docs.telerik.com/kendo-ui/api/ui/map/events/zoomstart) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the ZoomStart event.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.ZoomStart("onZoomStart"))
             )
             
```

### ZoomStart(System.Func)

Defines the handler of the ZoomStart client-side event. Fired when the map zoom level is about to change. Cancelling the event will prevent the user action.

For more information see [ZoomStart](https://docs.telerik.com/kendo-ui/api/ui/map/events/zoomstart) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.ZoomStart(@<text>
                  function(e) {
                      // Handle the ZoomStart event inline.
                  }
                  </text>)
               )
             )
             
```

### ZoomEnd(System.String)

Defines the handler of the ZoomEnd client-side event. Fired when the map zoom level has changed.

For more information see [ZoomEnd](https://docs.telerik.com/kendo-ui/api/ui/map/events/zoomend) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the ZoomEnd event.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.ZoomEnd("onZoomEnd"))
             )
             
```

### ZoomEnd(System.Func)

Defines the handler of the ZoomEnd client-side event. Fired when the map zoom level has changed.

For more information see [ZoomEnd](https://docs.telerik.com/kendo-ui/api/ui/map/events/zoomend) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [MapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/mapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Map()
               .Name("map")
               .Events(events => events.ZoomEnd(@<text>
                  function(e) {
                      // Handle the ZoomEnd event inline.
                  }
                  </text>)
               )
             )
             
```
