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

Geolocation

3 Answers 288 Views
Map
This is a migrated thread and some comments may be shown as answers.
Max
Top achievements
Rank 2
Max asked on 09 Nov 2017, 09:49 PM
Has anyone had any luck with finding documentation on geolocation when using the bing layer on the kendo map UI ?  I can't seem to find any documentation.   Basically I am wanting to take advantage of the built in location services now in html 5 using mvc as my framework.

3 Answers, 1 is accepted

Sort by
0
Stamo Gochev
Telerik team
answered on 13 Nov 2017, 12:01 PM
Hello Max,

Can you provide more information about what you want to achieve using the HTML5 Geolocation API and the Map?

What i can think of is displaying a marker on the location of the user, which can be done as in the following documentation example:

https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/map#configuration-markerDefaults

by setting the coordinates of the corresponding location.

Regards,
Stamo Gochev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Max
Top achievements
Rank 2
answered on 13 Nov 2017, 04:23 PM

I was wanting to use the built in functionality (location) of HTML5 to produce a marker on the map to show where the user is located.  I was hoping to use that same information to produce the locations name in a click event with the marker.  I know when I used google maps it was called geolocation so that is what I used in the question

 

0
Stamo Gochev
Telerik team
answered on 14 Nov 2017, 11:24 AM
Hello,

The marker can be placed on the Map in the way described in my previous post.

Regarding the second question - the location of the marker can be obtained by binding to the "markerClick" event and calling the "eventToLocation" method:

https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/map#events-markerClick

https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/map#methods-eventToLocation

This can be seen in the following Dojo example:

http://dojo.telerik.com/izEse

Regards,
Stamo Gochev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Map
Asked by
Max
Top achievements
Rank 2
Answers by
Stamo Gochev
Telerik team
Max
Top achievements
Rank 2
Share this question
or