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

RadMap with "Region" not showing controls

1 Answer 80 Views
Map
This is a migrated thread and some comments may be shown as answers.
figueiredorj
Top achievements
Rank 1
figueiredorj asked on 02 May 2011, 09:42 AM
Edit post name: RadMap with "Region" not showing navigation controls

Hi.

I am trying RadMap with Bing provider.

Besides that I am also doing some experimentation on Prism.

Being SalesDashboard a flag for Priism, I have tried to do a kind of sample where I use Mapping. However when I deploy a "Map Module" on to a region inside a layout (Grid in this case) there is no showing of controls. One thing that I could notice was that if I set the "Heigth" controls are shown which leaves me the idea that if try to set "auto" on Height while inside a region the control assumes an height superior to which it should. Also there is a demo on salesdashboard for map control where it happens what I think it is the same thing: the map controls are not shown.

Is there any workaround?

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 04 May 2011, 08:18 AM
Hi figueiredorj,

There are few causes when the navigational controls do not appear on the map. It is quite difficult to answer your question without your code (XAML and C#), but I can suppose the following:
First, please check the container you use for the map control. The RadMap control does not specify its default size when it is used inside a container like stack panel. But according to its content it uses specified value of the defined width or height of its container (standard behavior of MS MultiscaleImage control).
For example, in the case with vertical stack panel it gets specified value as a width and infinity as a height. When the control measured then it specifies its height from the width value.
As result when the browser window width is greater than height then the control has the height that greater than the visible height of the page. So, the navigation and zoom bar controls do not appear because they are in invisible area at the bottom of map.
In this case I would recommend you to specify a size of the RadMap control.

The map controls are not shown on the salesdashboard example because it just sets the UseDefaultLayout property of RadMap to "False".


All the best,
Andrey Murzov
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Map
Asked by
figueiredorj
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or