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

Question on the cross-layer integration demo

1 Answer 35 Views
Map
This is a migrated thread and some comments may be shown as answers.
Warren
Top achievements
Rank 1
Warren asked on 16 Sep 2014, 08:43 PM
Hello,

Online you show a demo called cross-layer integration demo. You have a set of markers for places to visit on the map. You also have them connected with a line drawn showing the route. How do you draw the line on there? I saw in code how to add markers but if I want to draw a route on how to get somewhere how do you add that line for the route on the streets?

Thanks,

Warren

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 19 Sep 2014, 03:34 PM
Hello Warren,

If you look at the demo's description you will information on how both layers, the Markers and the Shapes, are bound and where the data is coming from.

For both layers, a RadClientDataSource control retrieving the data from JSON files is used for data-bounding. For the shapes layer you can see the JSON file at the following link:
As you will notice, in this particular example, the routes are represented by MultiLineString objects.

You could find additional information on GeoJSON format and Shape layer at the following articles:

Regards,
Konstantin Dikov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Map
Asked by
Warren
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or