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

radmap's GeoBounds doesn't work properly

5 Answers 206 Views
Map
This is a migrated thread and some comments may be shown as answers.
Jun Tang
Top achievements
Rank 1
Jun Tang asked on 12 May 2011, 05:10 AM
i set Radmap's  GeoBoundsNW and       GeoBoundsSE properties to restrict the geographical bounds of a map.
the top ,right and bottom bounds work correctly ,but the left bound doesn't. 
i can  drag  the  map  out of the left bound set by GeoBoundsNW property.

5 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 17 May 2011, 12:16 PM
Hi Jun Tang,

Unfortunately I was not able to reproduce the problem. All boundaries set by GeoBoundsNW and GeoBoundsSE properties work fine. Could you, please create small solution which we can use to reproduce the problem?

Here it is my XAML I've used to test the feature:

<telerik:RadMap Name="radMap" 
        ZoomLevel="10"
        Center="36.5,-109.5"
        GeoBoundsNW="37,-110"
        GeoBoundsSE="36.5,-109.5">      
    <telerik:RadMap.Provider>
        <telerik:OpenStreetMapProvider />
    </telerik:RadMap.Provider>
    <telerik:InformationLayer x:Name="informationLayer">
        <telerik:MapPolygon Points="37,-110 37,-109.5 36.5,-109.5 36.5,-110" 
                Stroke="Red"
                StrokeThickness="4" />
    </telerik:InformationLayer>
</telerik:RadMap>


Regards,
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
0
drLich
Top achievements
Rank 1
answered on 18 May 2011, 10:27 AM

I have the same problem. I want to restrict region only to Poland. My code:

<telerik:RadMap x:Name="RadMap1" 
                            ZoomLevel="10"
                            Center="51, 19"
                            GeoBoundsSE="48, 24.5"
                            GeoBoundsNW="55.3, 14"
                            MinZoomLevel="6">
                <telerik:RadMap.Provider>
                    <telerik:OpenStreetMapProvider />
                </telerik:RadMap.Provider>
                <telerik:DynamicLayer x:Name="dynamicLayer">
                    <telerik:DynamicLayer.ZoomGridList>
                        <telerik:ZoomGrid
                            LatitudesCount="2"
                            LongitudesCount="2"
                            MinZoom="6" />
                        <telerik:ZoomGrid 
                            LatitudesCount="4"
                            LongitudesCount="4"
                            MinZoom="8" />
                        <telerik:ZoomGrid
                            LatitudesCount="6"
                            LongitudesCount="6"
                            MinZoom="11" />
                    </telerik:DynamicLayer.ZoomGridList>
                </telerik:DynamicLayer>
            </telerik:RadMap>

But in my case the bottom bound doesn't work correctly.
0
Andrey
Telerik team
answered on 23 May 2011, 08:49 AM
Hi drLich,

Thank you for the information. We were able to reproduce the problem using your XAML. We will fix it ASAP. Most probably fix will be available in the nearest internal build. You can check when it will be fixed using our PITS:

http://www.telerik.com/support/pits.aspx#/public/silverlight/6142

Kind regards,
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
0
Jun Tang
Top achievements
Rank 1
answered on 25 May 2011, 09:35 AM
my xaml code
<telerik:RadMap x:Name="RadMap1"
                        ZoomLevel="9"
                        MinZoomLevel="7"
                        MaxZoomLevel="9"
                        Center="30.1, 114.3"
                        NavigationVisibility="Collapsed"
                        ZoomBarVisibility="Visible"
                        CommandBarVisibility="Collapsed"
                        MouseLocationIndicatorVisibility="Visible"
                        GeoBoundsNW="33.3,108.4"
                        GeoBoundsSE="29,116.3"
                        MouseClickMode="Center">
  
              
            <telerik:RadMap.Provider>
                <telerik:UriImageProvider GeoBoundsNW="33.3, 108.3"
                                          GeoBoundsSE="29,116.3"
                                          Uri="map/hb_{zoom}_j.jpg">
  
                </telerik:UriImageProvider>
  
            </telerik:RadMap.Provider>
            <telerik:InformationLayer x:Name="ilayer"
                                      ItemTemplate="{StaticResource AutoStationItemDataTemplate}"
                                      ItemsSource="{Binding ElementName=autoStationInfoDomainDataSource, Path=Data}">
              
                  
                  
            </telerik:InformationLayer>
        </telerik:RadMap>
0
Andrey
Telerik team
answered on 27 May 2011, 12:34 PM
Hi Jun Tang,

This problem has been fixed already. The fix will be available in the nearest internal build.

Greetings,
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
Jun Tang
Top achievements
Rank 1
Answers by
Andrey
Telerik team
drLich
Top achievements
Rank 1
Jun Tang
Top achievements
Rank 1
Share this question
or