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

Map markers no showing in Bing Map

3 Answers 84 Views
Map
This is a migrated thread and some comments may be shown as answers.
Claudia
Top achievements
Rank 1
Claudia asked on 19 Mar 2018, 08:23 PM

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?

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 21 Mar 2018, 07:29 AM
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.
0
Claudia
Top achievements
Rank 1
answered on 21 Mar 2018, 01:53 PM

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!!!!

0
Claudia
Top achievements
Rank 1
answered on 21 Mar 2018, 03:11 PM
I found it thank you!!!
Tags
Map
Asked by
Claudia
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Claudia
Top achievements
Rank 1
Share this question
or