MapEventBuilder
Methods
BeforeReset(System.String)
Defines the handler of the BeforeReset client-side event. The event triggers immediately before the Map is reset. Usually, the event is used for cleanup by layer implementers.
For more information see 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 .
Example
@(Html.Kendo().Map()
.Name("map")
.Events(events => events.BeforeReset("onBeforeReset"))
)
BeforeReset(System.Func)
Defines the handler of the BeforeReset client-side event. The event triggers immediately before the Map is reset. Usually, the event is used for cleanup by layer implementers.
For more information see BeforeReset event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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. The event triggers when the user clicks on the Map.
For more information see 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 .
Example
@(Html.Kendo().Map()
.Name("map")
.Events(events => events.Click("onClick"))
)
Click(System.Func)
Defines the handler of the Click client-side event. The event triggers when the user clicks on the Map.
For more information see Click event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of MapEventBuilder .
Example
@(Html.Kendo().Map()
.Name("map")
.Events(events => events.Click(@<text>
function(e) {
// Handle the Click event inline.
}
</text>)
)
)
MarkerActivate(System.String)
Defines the handler of the MarkerActivate client-side event. The event triggers when a marker has been displayed and has a DOM element assigned.
For more information see 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 .
Example
@(Html.Kendo().Map()
.Name("map")
.Events(events => events.MarkerActivate("onMarkerActivate"))
)
MarkerActivate(System.Func)
Defines the handler of the MarkerActivate client-side event. The event triggers when a marker has been displayed and has a DOM element assigned.
For more information see MarkerActivate event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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. The event triggers when a marker has been created and is about to be displayed. Canceling the event will prevent the marker from being shown. Use the MarkerActivate event to access the marker DOM element.
For more information see 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 .
Example
@(Html.Kendo().Map()
.Name("map")
.Events(events => events.MarkerCreated("onMarkerCreated"))
)
MarkerCreated(System.Func)
Defines the handler of the MarkerCreated client-side event. The event triggers when a marker has been created and is about to be displayed. Canceling the event will prevent the marker from being shown. Use the MarkerActivate event to access the marker DOM element.
For more information see MarkerCreated event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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. The event triggers when a marker has been clicked or tapped.
For more information see 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 .
Example
@(Html.Kendo().Map()
.Name("map")
.Events(events => events.MarkerClick("onMarkerClick"))
)
MarkerClick(System.Func)
Defines the handler of the MarkerClick client-side event. The event triggers when a marker has been clicked or tapped.
For more information see MarkerClick event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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. The event triggers while the Map viewport is being moved.
For more information see 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 .
Example
@(Html.Kendo().Map()
.Name("map")
.Events(events => events.Pan("onPan"))
)
Pan(System.Func)
Defines the handler of the Pan client-side event. The event triggers while the Map viewport is being moved.
For more information see Pan event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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. The event triggers after the Map viewport has been moved.
For more information see 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 .
Example
@(Html.Kendo().Map()
.Name("map")
.Events(events => events.PanEnd("onPanEnd"))
)
PanEnd(System.Func)
Defines the handler of the PanEnd client-side event. The event triggers after the Map viewport has been moved.
For more information see PanEnd event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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. The event triggers when the Map is reset. It typically occurs on the initial load and after a zoom/center change.
For more information see 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 .
Example
@(Html.Kendo().Map()
.Name("map")
.Events(events => events.Reset("onReset"))
)
Reset(System.Func)
Defines the handler of the Reset client-side event. The event triggers when the Map is reset. It typically occurs on the initial load and after a zoom/center change.
For more information see Reset event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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. The event triggers when a shape is clicked or tapped.
For more information see 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 .
Example
@(Html.Kendo().Map()
.Name("map")
.Events(events => events.ShapeClick("onShapeClick"))
)
ShapeClick(System.Func)
Defines the handler of the ShapeClick client-side event. The event triggers when a shape is clicked or tapped.
For more information see ShapeClick event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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. The event triggers when a shape is created, but is not rendered yet.
For more information see 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 .
Example
@(Html.Kendo().Map()
.Name("map")
.Events(events => events.ShapeCreated("onShapeCreated"))
)
ShapeCreated(System.Func)
Defines the handler of the ShapeCreated client-side event. The event triggers when a shape is created, but is not rendered yet.
For more information see ShapeCreated event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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. The event triggers when the GeoJSON feature object is created on a shape layer.
For more information see 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 .
Example
@(Html.Kendo().Map()
.Name("map")
.Events(events => events.ShapeFeatureCreated("onShapeFeatureCreated"))
)
ShapeFeatureCreated(System.Func)
Defines the handler of the ShapeFeatureCreated client-side event. The event triggers when the GeoJSON feature object is created on a shape layer.
For more information see ShapeFeatureCreated event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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. The event triggers when the mouse enters a shape.
For more information see 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 .
Example
@(Html.Kendo().Map()
.Name("map")
.Events(events => events.ShapeMouseEnter("onShapeMouseEnter"))
)
ShapeMouseEnter(System.Func)
Defines the handler of the ShapeMouseEnter client-side event. The event triggers when the mouse enters a shape.
For more information see ShapeMouseEnter event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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. The event triggers when the mouse leaves a shape.
For more information see 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 .
Example
@(Html.Kendo().Map()
.Name("map")
.Events(events => events.ShapeMouseLeave("onShapeMouseLeave"))
)
ShapeMouseLeave(System.Func)
Defines the handler of the ShapeMouseLeave client-side event. The event triggers when the mouse leaves a shape.
For more information see ShapeMouseLeave event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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. The event triggers when the Map zoom level is about to change. Canceling the event will prevent the user's action.
For more information see 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 .
Example
@(Html.Kendo().Map()
.Name("map")
.Events(events => events.ZoomStart("onZoomStart"))
)
ZoomStart(System.Func)
Defines the handler of the ZoomStart client-side event. The event triggers when the Map zoom level is about to change. Canceling the event will prevent the user's action.
For more information see ZoomStart event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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. The event triggers when the Map zoom level has changed.
For more information see 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 .
Example
@(Html.Kendo().Map()
.Name("map")
.Events(events => events.ZoomEnd("onZoomEnd"))
)
ZoomEnd(System.Func)
Defines the handler of the ZoomEnd client-side event. The event triggers when the Map zoom level has changed.
For more information see ZoomEnd event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of MapEventBuilder .
Example
@(Html.Kendo().Map()
.Name("map")
.Events(events => events.ZoomEnd(@<text>
function(e) {
// Handle the ZoomEnd event inline.
}
</text>)
)
)