radmap's GeoBounds doesn't work properly

6 posts, 0 answers
  1. Jun Tang
    Jun Tang avatar
    5 posts
    Member since:
    Dec 2009

    Posted 12 May 2011 Link to this post

    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.
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 17 May 2011 Link to this post

    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
  3. DevCraft banner
  4. drLich
    drLich avatar
    2 posts
    Member since:
    May 2011

    Posted 18 May 2011 Link to this post

    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.
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 23 May 2011 Link to this post

    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
  6. Jun Tang
    Jun Tang avatar
    5 posts
    Member since:
    Dec 2009

    Posted 25 May 2011 Link to this post

    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>
  7. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 27 May 2011 Link to this post

    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
Back to Top
DevCraft banner