Radmap GeoBounds Accuracy Issue

4 posts, 1 answers
  1. Vincent
    Vincent avatar
    7 posts
    Member since:
    Apr 2015

    Posted 09 Nov 2015 Link to this post

    Hi,

     For my map display, I am suppose to show a custom image that represents a 15m x 10m area from a geo point.

     

    <Window x:Class="telerikMapSample.MainWindow"
            Title="MainWindow" HorizontalAlignment="Center" VerticalAlignment="Center" Height="564.851" Width="805.313">
        <Grid>
            <Grid x:Name="LayoutRoot" Width="784" Height="484">
                <Grid.RowDefinitions>
                    <RowDefinition Height="450"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
     
                <telerik:RadMap x:Name="RadMap1" Grid.Row="0"
                            ZoomLevel="24"
                            MinZoomLevel="24"
                            MaxZoomLevel="24"
                            
                            Center="1.352083, 103.819836"
                            NavigationVisibility="Collapsed"
                            ZoomBarVisibility="Collapsed"
                            CommandBarVisibility="Collapsed"
                            MiniMapExpanderVisibility="Collapsed"
                                 
                            MouseMove="RadMap1_MouseMove">
                    <telerik:RadMap.Provider>
                        <telerik:UriImageProvider GeoBounds="1.352083, 103.819836, 0.0001, 0.00015" Uri="/telerikMapSample;component/Resources/osm_12.png" />
                    </telerik:RadMap.Provider>
                </telerik:RadMap>
                     
                <Grid x:Name="Row2" Grid.Row="1">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition/>
                        <ColumnDefinition/>
                        <ColumnDefinition/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <Label Grid.Column="0" FontSize="20">Latitiude: </Label>
                    <Label Grid.Column="2" FontSize="20" >Longitude: </Label>
                    <TextBlock x:Name="LatValue" FontSize="20" Grid.Column="1"/>
                    <TextBlock x:Name="LongValue" FontSize="20" Grid.Column="3"/>
                </Grid>
            </Grid>
        </Grid>
    </Window>

    The problem now that I am facing is that after measuring the latitude and longitude at each end of the boundary, I am getting

    around 0.00004deg and 0.00007deg respectively instead of the 0.00001deg and 0.00015deg. How can I fix this accuracy problem?

    I appreciate the technical support!

  2. Martin
    Admin
    Martin avatar
    1099 posts

    Posted 11 Nov 2015 Link to this post

    Hi Vincent,

    Thank you for the code snippet.

    Can you tell me what you mean by saying that you are measuring the latitude and longitude of each end of the boundary? What boundary? And how are measuring the coordinates? This will help me in better understanding your case and assist you further. Any other information which you might find helpful will be appreciated.

    As a side note, keep in mind that a distance of 15 meters will have different degrees size on the different locations on the map.

    Regards,
    Martin
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Vincent
    Vincent avatar
    7 posts
    Member since:
    Apr 2015

    Posted 17 Dec 2015 in reply to Martin Link to this post

    Hi Martin,

     Thanks for your support, Lets presume that the 15 meters of distance will have a different degrees size on different locations on the map. My OSM tiles have levels until 19. Imagine now I have a small toy car that is moving within this field of 15m x 15m dimension on the map. However the max zoom level is until 19 which is too small to see the toy car path which I am tracing. I have tried to set the zoom level 24 and the helps a bit, the zoom projection to the tile level is still not enough to see the toy car path.

    How can I force the radmap to zoom even more?

  5. Answer
    Martin
    Admin
    Martin avatar
    1099 posts

    Posted 21 Dec 2015 Link to this post

    Hello Vincent,

    You can define the allowed zoom range of RadMap using its MinZoomLevel and MaxZoomLevel properties. The default MaxZoomLevel is 20. To reach deeper zoom you can set the max property to a bigger value.

    Regards,
    Martin
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top