Can't move the map or see markers.

3 posts, 1 answers
  1. Gonzalo
    Gonzalo avatar
    11 posts
    Member since:
    May 2013

    Posted 15 May 2014 Link to this post

    Hello,

    I just copied the Razor MVC example "basic usage" from the demo page and I can't see the markers.
    Aside of that, the map disappears when I tried to navigate with the mouse to another area (image attached).

    These is the code I have used:

    @(Html.Kendo().Map()
    .Name("map")
    .Center(30.268107, -97.744821)
    .Zoom(3)
    .Layers(layers =>
    {
    layers.Add()
    .Type(MapLayerType.Tile)
    .UrlTemplateId("http://tile2.opencyclemap.org/transport/#= zoom #/#= x #/#= y #.png")
    .Subdomains("a", "b", "c")
    .Attribution("&copy; <a href='http://osm.org/copyright'>OpenStreetMap contributors</a>." +
    "Tiles courtesy of <a href='http://www.opencyclemap.org/'>Andy Allan</a>");
    })
    .Markers(markers =>
    {
    markers.Add()
    .Location(30.268107, -97.744821)
    .Shape(MapMarkersShape.PinTarget)
    .Tooltip(tooltip => tooltip.Content("Austin, TX"));
    })
    )

    Thanks.
  2. Answer
    Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 19 May 2014 Link to this post

    Hello Gonzalo,

    Could you please double check that your css files are loaded?
    You need to load:

    Regards,
    Hristo Germanov
    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. Gonzalo
    Gonzalo avatar
    11 posts
    Member since:
    May 2013

    Posted 30 May 2014 in reply to Hristo Germanov Link to this post

    Thanks! I was missing a reference.
Back to Top