This is a migrated thread and some comments may be shown as answers.

RadClientDataSource from Sql

1 Answer 136 Views
Map
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 23 Nov 2016, 11:47 PM

Trying to use the Bubble Type layer on a map.

Have successfully downloaded the urban-areas.json file using the WebServiceDataSourceSettings inside the RadClientDataSource and referencing the appropriate ClientDataSourceID in the MapLayer referencing the Bubble type.

I am trying to duplicate generating the GeoJason data, not from a file, but, from vb.net code behind using <WebServiceDataSourceSettings Select-DataType="JSON" Select-RequestType="POST" Select-ContentType="application/json" ServiceType="GeoJSON" Select-Url="testHeatMap.aspx/jsonsalesdata"></WebServiceDataSourceSettings>, where testHeatMap.asxp/jsonsalesdata is a public function that produces the same formatted json text.

While using the sample urban-areas.json file inside the RadClientDataSource produces the correct bubbles, not matter what I try in the code behind to produce the same json string, my Bubble layer will not render.

 

Any ideas or suggestions or examples?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 25 Nov 2016, 10:41 AM

Hello Tom,

You can check out this article here: http://docs.telerik.com/devtools/aspnet-ajax/controls/clientdatasource/connecting-to-web-service

Web services should be handled as OData  ServiceType. 

If you have further difficulties you can get  the client-side object of the RadClientDataSource control and check what data is being consumed.

Regards,
Ianko
Telerik by Progress
Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.
Tags
Map
Asked by
Tom
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or