maps on Jiterz Coffee House sample

2 posts, 0 answers
  1. Calin
    Calin avatar
    11 posts
    Member since:
    Feb 2016

    Posted 03 Mar 2016 Link to this post


    I have deployed a copy of this sample using the Blue button "Try in AppBuilder" from the following link
    When I run in simulator the demo inside AppBuilder or on web, the map is only displayed for Android devices.

    Do you know if there are any issues about this demo,


  2. Tsvetina
    Tsvetina avatar
    2101 posts

    Posted 08 Mar 2016 Link to this post

    Hi Calin,

    This happens because the Map doesn't have an initial height and it defaults to 0. There are two options to address this:

    1) If the view won't be scrollable, set data-stretch="true" in the view definition:
    <div id="stores"
         data-role="view" data-title="Stores"
         data-init="storesInit" data-show="onStoresShow"
         data-model="storesListViewModel" data-stretch="true">

    If the view will be scrollable, set a height to the map:
    <div id="map" style="height: 300px"></div>

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top