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

MVVM including tile & marker layers

2 Answers 87 Views
Map
This is a migrated thread and some comments may be shown as answers.
Peter Beyer
Top achievements
Rank 1
Peter Beyer asked on 18 Aug 2015, 08:41 AM

Dear Telerik, 

 

We need to implement maps on our page using MVVM including 'tile' and 'marker' layers, but we couldn't find any related documentation.
The only example we found is this forum thread: http://www.telerik.com/forums/mvvm-support-
that doesn't show how to implement needed layers.

Could you please point me to the needed documentation or make an example where I can see it working, especially urlTemplate of the tile layer.

Regards

 

 Peter Beyer 

ByggeFakta

2 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 20 Aug 2015, 08:59 AM
Hello Peter,

Kendo MVVM do not have exposed bindings that map layers/tiles to a view model therefore you have to set them in a way similar to the one described in the forum post. e.g. data-layers=" /* layers declaration */".

However, if you have a requirement to use pure MVVM you may want to create custom binding for layers/tiles. More details about custom bindings can be found in the create custom bindings help article.

Alternatively, it might be more straightforward to initialize the map the standard way and return the templates url using a function.

Regards,
Genady Sergeev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Peter Beyer
Top achievements
Rank 1
answered on 03 Sep 2015, 01:20 PM

Hi Genary,

 

Thank you for your reply.
It took us some time, but we managed to bind it manually.

 

Regards

 

 

Peter Beyer

Byggefakta

Tags
Map
Asked by
Peter Beyer
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Peter Beyer
Top achievements
Rank 1
Share this question
or