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

Set map Size?

1 Answer 387 Views
Map
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 2
Brian asked on 06 Feb 2014, 02:55 AM
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

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 06 Feb 2014, 01:40 PM
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).

Tags
Map
Asked by
Brian
Top achievements
Rank 2
Answers by
Iliana Dyankova
Telerik team
Share this question
or