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

Markers moving weirdly on zoom

5 Answers 158 Views
Map
This is a migrated thread and some comments may be shown as answers.
Tucker
Top achievements
Rank 1
Tucker asked on 04 Sep 2014, 07:38 AM
 Yo! I'm aware of the problem with the demo where the markers don't really move at all. I've updated to your latest internal build 2014.2.716

I had this problem with the last build too: basically markers are in pretty much the correct place (and exactly correct a certain zoom level), but if I zoom in, they shift south, and if I zoom out, they shift north.

Here's what my code looks like:

01.$("#localMap").kendoMap({
02.    center: [lat, lng],
03.    zoom: 10,
04.    controls: {
05.        zoom: true
06.    },
07.    layerDefaults: {
08.        marker: {
09.            opacity: 0.75
10.        }
11.    },
12.    zoomEnd: function() {
13.        $("#localMap").data("kendoMap").center();
14.    },
15. 
16.    layers: [
17.       {
18.        type: "bing",
19.        imagerySet: "road",
20.        key: "xxx"
21.        },
22. 
23. 
24.        {
25.            type: "marker",
26.            tooltip: {
27.                template: "#= marker.dataItem.name #"
28.            },
29.            shape: 'restaurant',
30.            dataSource: {
31.                data: App.restaurantVenueArray
32.            },
33.            locationField: "latlng",
34.            titleField: "name"
35.        },
36.        {
37.            type: "marker",
38.            tooltip: {
39.                template: "#= marker.dataItem.name # </br> #= marker.dataItem.phone # "
40.            },
41.            shape: 'winery',
42.            dataSource: {
43.                data: App.retailVenueArray
44.            },
45.            locationField: "latlng",
46.            titleField: "name"
47.        }
48.    ],
49.    markers: [
50.        {
51.            location: [lat, lng],
52.            shape: "here",
53.            tooltip: {
54.                content: "Current Location"
55.            }
56.        }
57.    ]
58.});

5 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 04 Sep 2014, 08:21 AM
Hello,

I'm not sure what went wrong with the upgrade, but this issue should be solved in the latest internal builds.

We're in the process of releasing SP1 and updating the site. Once the process is complete the online demos should also be free of this defect.

Can you please upgrade to the SP1 release in order to see if that changes anything?

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Tucker
Top achievements
Rank 1
answered on 05 Sep 2014, 08:41 AM
Soo I upgraded to 2014.2.903 and still getting the same problem. Here're a few screenshots of what's happening during zoom.

You can see the marker starts out above San Vicente Blvd, then is right on it, then is below it.
0
T. Tsonev
Telerik team
answered on 08 Sep 2014, 10:39 AM
Hello,

I'm having trouble reproducing the problem with both static and data bound markers.
I'll have to ask you for assistance with the sample code I'm using to replicate the issue.

Can you spot anything that I might be missing?

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Tucker
Top achievements
Rank 1
answered on 09 Sep 2014, 07:14 AM
Thanks for making that!!

Big whoops on our part--the css for our markers had them in a larger container than their size, which caused the weirdness.
0
T. Tsonev
Telerik team
answered on 09 Sep 2014, 08:38 AM
Hi,

Great, I'm glad to hear this worked out in the end.

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Map
Asked by
Tucker
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Tucker
Top achievements
Rank 1
Share this question
or