MapEventBuilder
Defines the fluent API for configuring the Kendo UI Map for ASP.NET MVC events.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class MapEventBuilder : EventBuilder
Inheritance: objectEventBuilderMapEventBuilder
Inherited Members
Constructors
Initializes a new instance of the MapEventBuilder class.
public MapEventBuilder(IDictionary<string, object> events)
The Map event handlers.
Methods
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.
public MapEventBuilder BeforeReset(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MapEventBuilder .
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.
public MapEventBuilder BeforeReset(string handler)
The name of the JavaScript function that will handle the BeforeReset event.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the Click client-side event. Fired when the user clicks on the map.
public MapEventBuilder Click(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the Click client-side event. Fired when the user clicks on the map.
public MapEventBuilder Click(string handler)
The name of the JavaScript function that will handle the Click event.
Returns:Returns the current instance of MapEventBuilder .
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.
public MapEventBuilder KendoKeydown(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MapEventBuilder .
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.
public MapEventBuilder KendoKeydown(string handler)
The name of the JavaScript function that will handle the KendoKeydown event.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the MarkerActivate client-side event. Fired when a marker has been displayed and has a DOM element assigned.
public MapEventBuilder MarkerActivate(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the MarkerActivate client-side event. Fired when a marker has been displayed and has a DOM element assigned.
public MapEventBuilder MarkerActivate(string handler)
The name of the JavaScript function that will handle the MarkerActivate event.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the MarkerClick client-side event. Fired when a marker has been clicked or tapped.
public MapEventBuilder MarkerClick(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the MarkerClick client-side event. Fired when a marker has been clicked or tapped.
public MapEventBuilder MarkerClick(string handler)
The name of the JavaScript function that will handle the MarkerClick event.
Returns:Returns the current instance of MapEventBuilder .
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.
public MapEventBuilder MarkerCreated(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MapEventBuilder .
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.
public MapEventBuilder MarkerCreated(string handler)
The name of the JavaScript function that will handle the MarkerCreated event.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the Pan client-side event. Fired while the map viewport is being moved.
public MapEventBuilder Pan(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the Pan client-side event. Fired while the map viewport is being moved.
public MapEventBuilder Pan(string handler)
The name of the JavaScript function that will handle the Pan event.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the PanEnd client-side event. Fires after the map viewport has been moved.
public MapEventBuilder PanEnd(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the PanEnd client-side event. Fires after the map viewport has been moved.
public MapEventBuilder PanEnd(string handler)
The name of the JavaScript function that will handle the PanEnd event.
Returns:Returns the current instance of MapEventBuilder .
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.
public MapEventBuilder Reset(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MapEventBuilder .
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.
public MapEventBuilder Reset(string handler)
The name of the JavaScript function that will handle the Reset event.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the ShapeClick client-side event. Fired when a shape is clicked or tapped.
public MapEventBuilder ShapeClick(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the ShapeClick client-side event. Fired when a shape is clicked or tapped.
public MapEventBuilder ShapeClick(string handler)
The name of the JavaScript function that will handle the ShapeClick event.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the ShapeCreated client-side event. Fired when a shape is created, but is not rendered yet.
public MapEventBuilder ShapeCreated(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the ShapeCreated client-side event. Fired when a shape is created, but is not rendered yet.
public MapEventBuilder ShapeCreated(string handler)
The name of the JavaScript function that will handle the ShapeCreated event.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the ShapeFeatureCreated client-side event. Fired when a GeoJSON Feature is created on a shape layer.
public MapEventBuilder ShapeFeatureCreated(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the ShapeFeatureCreated client-side event. Fired when a GeoJSON Feature is created on a shape layer.
public MapEventBuilder ShapeFeatureCreated(string handler)
The name of the JavaScript function that will handle the ShapeFeatureCreated event.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the ShapeMouseEnter client-side event. Fired when the mouse enters a shape.
public MapEventBuilder ShapeMouseEnter(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the ShapeMouseEnter client-side event. Fired when the mouse enters a shape.
public MapEventBuilder ShapeMouseEnter(string handler)
The name of the JavaScript function that will handle the ShapeMouseEnter event.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the ShapeMouseLeave client-side event. Fired when the mouse leaves a shape.
public MapEventBuilder ShapeMouseLeave(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the ShapeMouseLeave client-side event. Fired when the mouse leaves a shape.
public MapEventBuilder ShapeMouseLeave(string handler)
The name of the JavaScript function that will handle the ShapeMouseLeave event.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the ZoomEnd client-side event. Fired when the map zoom level has changed.
public MapEventBuilder ZoomEnd(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MapEventBuilder .
Defines the handler of the ZoomEnd client-side event. Fired when the map zoom level has changed.
public MapEventBuilder ZoomEnd(string handler)
The name of the JavaScript function that will handle the ZoomEnd event.
Returns:Returns the current instance of MapEventBuilder .
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.
public MapEventBuilder ZoomStart(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MapEventBuilder .
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.
public MapEventBuilder ZoomStart(string handler)
The name of the JavaScript function that will handle the ZoomStart event.
Returns:Returns the current instance of MapEventBuilder .