Set map Size?

2 posts, 0 answers
  1. Brian
    Brian avatar
    28 posts
    Member since:
    Dec 2008

    Posted 05 Feb 2014 Link to this post

    Hope this is an easy one. How do I set the size of the map? Say I want the map to be  300x300 px.

    thanks,

    Brian
  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2594 posts

    Posted 06 Feb 2014 Link to this post

    Hi Brian,

    In order to achieve this you could set width / height to the <div> element from which the map is initialized. As an example:
    <div id="map"></div>
       
    <script>
    $("#map").kendoMap({
      //....
    });
    </script>
    <style type="text/css">
    #map {
      width: 300px;
      height: 300px;
    }
    </style>
     

    Regards,
    Iliana Nikolova
    Telerik

    Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

  3. Kendo UI is VS 2017 Ready
Back to Top