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

Radmap GeoBounds Accuracy Issue

3 Answers 41 Views
Map
This is a migrated thread and some comments may be shown as answers.
Vincent
Top achievements
Rank 1
Vincent asked on 09 Nov 2015, 09:58 AM

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!

3 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 11 Nov 2015, 09:55 AM
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
0
Vincent
Top achievements
Rank 1
answered on 17 Dec 2015, 06:38 AM

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?

0
Accepted
Martin Ivanov
Telerik team
answered on 21 Dec 2015, 08:57 AM
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
Tags
Map
Asked by
Vincent
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Vincent
Top achievements
Rank 1
Share this question
or