Geolocation

4 posts, 0 answers
  1. Max
    Max avatar
    8 posts
    Member since:
    Oct 2017

    Posted 09 Nov Link to this post

    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.
  2. Stamo Gochev
    Admin
    Stamo Gochev avatar
    189 posts

    Posted 13 Nov Link to this post

    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.
  3. Max
    Max avatar
    8 posts
    Member since:
    Oct 2017

    Posted 13 Nov in reply to Stamo Gochev Link to this post

    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

     

  4. Stamo Gochev
    Admin
    Stamo Gochev avatar
    189 posts

    Posted 14 Nov Link to this post

    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.
Back to Top