We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Zoom to Coordinates

Thread ID:

Created:

Updated:

Platform:

Replies:

129997 Apr 13,2017 01:56 PM UTC Apr 14,2017 08:06 PM UTC WPF 1
loading
Tags: SfMaps
Rutger van Kempen
Asked On April 13, 2017 01:56 PM UTC

Hello,

I have an application which has a Window with a sfmap in which I have a few coordinates marked.
for this I am using this code:

        <syncfusion:SfMap x:Name="Map" ZoomLevel="1" MaxZoom="19" HorizontalAlignment="Left" Height="500" VerticalAlignment="Center" Width="1000"                BorderBrush="Black" BorderThickness="1">
            <syncfusion:SfMap.Layers>
                <syncfusion:ImageryLayer Markers="{Binding Coordinates}" LayerType="OSM">
                    <syncfusion:ImageryLayer.MarkerTemplate>
                        <DataTemplate>
                            <Ellipse Height="10" Width="10" Stroke="White" Fill="Red"/>

What I am trying to accomplish is to when I start the application directly zoom to a coordinate on a zoomlevel of 9.
I have tried everything I could think of but couldn't find an answer to the question how this is possible.

Is there someone who has a sample code on how I can achieve this?

Kind Regards,
Rutger van Kempen



Ashwin Kumaravel [Syncfusion]
Replied On April 14, 2017 08:06 PM UTC

Hi Rutger,

Thanks for contacting Syncfusion Support.

We have validated your query and currently we do not have support to Zoom the map based on marker coordinates. We have logged feature request on " Need to Zoom Map on marker coordinates based on Zoom Level ". A support incident to track the status of this defect has been created under your account. 

Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents/   

Regards,
Ashwin.k 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;