Markers moving weirdly on zoom

6 posts, 0 answers
  1. Tucker
    Tucker avatar
    7 posts
    Member since:
    Aug 2014

    Posted 04 Sep 2014 Link to this post

     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.});
  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 04 Sep 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Tucker
    Tucker avatar
    7 posts
    Member since:
    Aug 2014

    Posted 05 Sep 2014 Link to this post

    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.
  5. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 08 Sep 2014 Link to this post

    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!
     
  6. Tucker
    Tucker avatar
    7 posts
    Member since:
    Aug 2014

    Posted 09 Sep 2014 in reply to T. Tsonev Link to this post

    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.
  7. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 09 Sep 2014 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready