GeoJsonDataSourceBuilder
Methods
Read(System.Action)
Configures the Read operation of the GeoJSON DataSource.
Parameters
configurator - System.Action<CrudOperationBuilder>
The action that configures the Read operation settings.
Example
@(Html.Kendo().Map()
.Name("map")
.Layers(layers =>
{
layers.Add().DataSource(dataSource => dataSource
.GeoJson()
.Read(read => read.Url(Url.Content("~/data.geo.json")))
);
})
)
Read(System.String,System.String,System.Object)
Sets the Controller, Action, and route values for the Read operation of the GeoJSON DataSource.
Parameters
actionName - System.String
Action name
controllerName - System.String
Controller Name
routeValues - System.Object
Route values
Example
@(Html.Kendo().Map()
.Name("map")
.Layers(layers =>
{
layers.Add().DataSource(dataSource => dataSource
.GeoJson()
.Read(read => read.Action("ActionName","ControllerName", new { id = 1 }))
);
})
)
Read(System.String,System.String)
Sets the Controller and Action for the Read operation of the GeoJSON DataSource.
Parameters
actionName - System.String
Action name
controllerName - System.String
Controller Name
Example
@(Html.Kendo().Map()
.Name("map")
.Layers(layers =>
{
layers.Add().DataSource(dataSource => dataSource
.GeoJson()
.Read(read => read.Action("ActionName","ControllerName"))
);
})
)