Map markers no showing in Bing Map

4 posts, 0 answers
  1. Claudia
    Claudia avatar
    13 posts
    Member since:
    Jun 2017

    Posted 19 Mar Link to this post

    Hi

    i'm new using kendo and i'm trying to use the markers in the map and I juts got the example from https://demos.telerik.com/kendo-ui/map/remote-markers (copy) and put it in my project and the markers don't show in the map. Using same datasource https://demos.telerik.com/kendo-ui/content/dataviz/map/store-locations.json What am I missing?

  2. Stefan
    Admin
    Stefan avatar
    2056 posts

    Posted 21 Mar Link to this post

    Hello, Claudia,

    Thank you for the details.

    Based on the provided details I can assume that there is an issue loading the store locations and some JavaScript error in the console.

    Could you please check in the network tab if the response is successfully retrieving the same data.

    Also, if this is placed in a brand new project is the same issue reproducible, as some of the additional code in the current project(the styles for example) could be interfering with it.

    I made an example using the same markers and the Bing map as a layer which can be used for reference:

    https://dojo.telerik.com/eDafUCOF

    If additional assistance is needed, please provide more details or a runnable example and I will gladly assist.

    Regards,
    Stefan
    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. Claudia
    Claudia avatar
    13 posts
    Member since:
    Jun 2017

    Posted 21 Mar in reply to Stefan Link to this post

    Hi Stefan

    Thank you for your answer. I check and the url for your datasource is getting me this json:

    [{"latlng":[30.2675,-97.7409], "name": "Zevo Toys"},
    {"latlng": [30.2707,-97.7490],"name": "Foo Bars"},
    {"latlng": [30.2705,-97.7409],"name": "Mainway Toys"},
    {"latlng": [30.2686,-97.7494], "name": "Acme Toys"}]

    if I use that link the markers don't show in my map, so I tried to get the same json from an API in my project and worked. The only thing I change was the url and i'm pretty sure that I was getting the right json from your source. So no idea why the markers didn't show.

    Now if I want to get one of those latlng to be the center of my map, what should I do? I tried couple of thing and nothing work for me. "center" has to be an static value?.

    Thank you!!!!

  4. Claudia
    Claudia avatar
    13 posts
    Member since:
    Jun 2017

    Posted 21 Mar in reply to Claudia Link to this post

    I found it thank you!!!
Back to Top