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

maps on Jiterz Coffee House sample

1 Answer 16 Views
Sample Applications
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Calin
Top achievements
Rank 1
Calin asked on 03 Mar 2016, 09:43 PM

Hi,

I have deployed a copy of this sample using the Blue button "Try in AppBuilder" from the following link
https://github.com/Icenium/Sample-JiterzCoffeehouse
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,

Thanks

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 08 Mar 2016, 02:33 PM
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>


Regards,
Tsvetina
Telerik
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
Tags
Sample Applications
Asked by
Calin
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or