Calibration problem with images

2 posts, 0 answers
  1. Nishant
    Nishant avatar
    3 posts
    Member since:
    Nov 2012

    Posted 20 Nov 2012 Link to this post

    1. Hi I love this product and I am trying to exploit as much possible. Now I am facing this problem with raster images.

    2. I have downloaded calibrated Google image using this software gmapmaker (http://damiendebin.net/archives/gMapMaker/). I can open the PNG/JPEG file in software OziExplorer and it is calibrated properly. But when I use the same image with radmap, it does not show correct zoom and also mappoints at wrong locations. Slide 1 shows the location on the google map and slide 2 shows same location on radmap. The zoom in both case are also not matching.

    3. Also I have used Geobounds , I still can pan beyond the image. See slide 3. My XAML code is given below :

    UserControl x:Class="Airport.MainPage"
            mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
        <Grid x:Name="LayoutRoot">
            <telerik:RadMap x:Name="RadMap1"
                    ZoomLevel="10"
                    MinZoomLevel="10"
                    MaxZoomLevel="11"
                    Center="34.885931,73.828125"
                    NavigationVisibility="Collapsed"
                    ZoomBarVisibility="Collapsed"
                    CommandBarVisibility="Collapsed">
                <telerik:RadMap.Provider>
                    <telerik:UriImageProvider GeoBoundsNW="34.649025753526985,72.9876708984375" GeoBoundsSE="33.4978881668521,76.5692138671875" Uri="DataSources/airport-{zoom}.jpg" MaxZoomLevel="11" MinZoomLevel="1" />
                </telerik:RadMap.Provider>
     
                <telerik:InformationLayer>
     
     
                    <telerik:MapPinPoint telerik:MapLayer.Location="33.98778,74.772949"
                        Background="#80808080"
                        Foreground="White"
                        BorderBrush="Black"
                        BorderThickness="1"
                        Text="Airport">
                    </telerik:MapPinPoint>
     
     
                </telerik:InformationLayer>
     
     
     
            </telerik:RadMap>
     
        </Grid>
    </UserControl>
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 22 Nov 2012 Link to this post

    Hi Nishant,

    First I should note that the image you use must correspond to the geographical region which you specify using GeoBounds or using the GeoBoundsNW and GeoBoundsSE properties of the UriImageProvider. I think the image does not show correct zoom because the image does not correspond them. The map points are placed at wrong locations relatively the image for the same reason.

    You can restrict the panning region using the RadMap.GeoBounds property or using the GeoBoundsNW and GeoBoundsSE properties of RadMap. You should specify these properties for the RadMap control. The same properties of UriImageProvider do not restrict panning region. For more information you can take a look at the following documentation topic:
    http://www.telerik.com/help/silverlight/radmap-howto-limit-panning-zooming-region.html

    Kind regards,
    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top