Hello,
I am new to this component and for the life of me cannot get the map to size to it's parent container. It is in a StackPanel that is in a Grid. If I set the height property explicitly it works, otherwise it stays at about an inch. I am looking at the demos and see a RadMap sizing right with no code for sizing it. So why my map is remaining an inch high is a mystery.
Here is the code.
I hope you can point out what I am doing wrong.
Thanks,
Reid
I am new to this component and for the life of me cannot get the map to size to it's parent container. It is in a StackPanel that is in a Grid. If I set the height property explicitly it works, otherwise it stays at about an inch. I am looking at the demos and see a RadMap sizing right with no code for sizing it. So why my map is remaining an inch high is a mystery.
<
telerik:RadTabItem
Header
=
"Map"
Margin
=
"0,5,0,0"
VerticalAlignment
=
"Top"
Height
=
"21.96"
Width
=
"107.974"
Cursor
=
"Hand"
>
<
Grid
Name
=
"MapTabGrid"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
Height
=
"Auto"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"48"
></
RowDefinition
>
<
RowDefinition
Height
=
"Auto"
></
RowDefinition
>
</
Grid.RowDefinitions
>
<
StackPanel
Orientation
=
"Horizontal"
ForceCursor
=
"True"
IsHitTestVisible
=
"True"
Grid.Row
=
"0"
Margin
=
"10"
>
<
Label
VerticalAlignment
=
"Center"
>Location Longitude :</
Label
>
<
TextBox
Width
=
"200"
Background
=
"#E3EFE3"
></
TextBox
>
<
Label
VerticalAlignment
=
"Center"
>Location Latitude :</
Label
>
<
TextBox
Width
=
"200"
Background
=
"#E3EFE3"
></
TextBox
>
<
Button
Width
=
"86"
Cursor
=
"Hand"
VerticalAlignment
=
"Stretch"
Height
=
"30"
>Go</
Button
>
<
telerik:RadDropDownButton
Width
=
"86"
Cursor
=
"Hand"
VerticalAlignment
=
"Stretch"
Height
=
"30"
>Route
<
telerik:RadDropDownButton.DropDownContent
>
<
ListBox
>
<
ListBoxItem
Content
=
"Route from Selected"
Width
=
"150"
Height
=
"25"
Background
=
"#E3EFE3"
Cursor
=
"Hand"
Margin
=
"2"
></
ListBoxItem
>
<
ListBoxItem
Content
=
"Route from Current"
Width
=
"150"
Height
=
"25"
Background
=
"#E3EFE3"
Cursor
=
"Hand"
Margin
=
"2"
></
ListBoxItem
>
<
ListBoxItem
Content
=
"Route from Home"
Width
=
"150"
Height
=
"25"
Background
=
"#E3EFE3"
Cursor
=
"Hand"
Margin
=
"2"
></
ListBoxItem
>
<
ListBoxItem
Content
=
"Route to Home"
Width
=
"150"
Height
=
"25"
Background
=
"#E3EFE3"
Cursor
=
"Hand"
Margin
=
"2"
></
ListBoxItem
>
<
ListBoxItem
Content
=
"Store Route"
Width
=
"150"
Height
=
"25"
Background
=
"#E3EFE3"
Cursor
=
"Hand"
Margin
=
"2"
></
ListBoxItem
>
</
ListBox
>
</
telerik:RadDropDownButton.DropDownContent
>
</
telerik:RadDropDownButton
>
</
StackPanel
>
<
telerik:RadMap
Width
=
"Auto"
Name
=
"radMapRoute1"
Grid.Row
=
"1"
Grid.RowSpan
=
"2"
VerticalAlignment
=
"Stretch"
HorizontalAlignment
=
"Stretch"
ZoomLevel
=
"13"
MinZoomLevel
=
"10"
MaxZoomLevel
=
"14"
Margin
=
"15,15,15,413"
Center
=
"40.083319, -105.3505482"
Background
=
"{x:Null}"
ClipToBounds
=
"False"
HorizontalContentAlignment
=
"Stretch"
UseDefaultLayout
=
"True"
>
<
telerik:RadMap.Provider
>
<
telerik:UriImageProvider
GeoBounds
=
"42.786, 23.17, 25, 14"
/>
</
telerik:RadMap.Provider
>
</
telerik:RadMap
>
</
Grid
>
</
telerik:RadTabItem
>
Here is the code.
I hope you can point out what I am doing wrong.
Thanks,
Reid